.profile-account-messages {
  position: relative;
}
.profile-account-message-dot {
  position: absolute;
  top: 10px;
  left: 28px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c83b4f;
  box-shadow: 0 0 0 2px var(--bg), 0 0 10px rgba(200,59,79,.68);
  animation: mingNotifDotGlow 1.8s ease-in-out infinite;
}
.profile-account-message-dot[hidden] {
  display: none;
}

  /*============================
     STYLE.CSS
  ============================*/
/* Temporary authentication visibility fix */
#auth-screen {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#app[hidden] {
  display: none !important;
}



  /* ============================================================
   Tweaklr — People. Moments. Possibilities.
   style.css
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #F7F2EC;
  --bg-deep: #EFE6DB;
  --surface: #FFFDF9;
  --surface-2: #F4EDE4;
  --coffee: #493224;
  --coffee-dark: #493224;
  --coffee-light: #927258;
  --text: #2B211B;
  --muted: #8A7B70;
  --border: rgba(73, 50, 36, .10);
  --border-strong: rgba(73, 50, 36, .18);
  --champagne: #E6D3BA;
  --burgundy: #7C3341;
  --sage: #5C7A63;
  --amber: #C08A3E;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(73, 50, 36, .06);
  --shadow-sm: 0 2px 4px rgba(73, 50, 36, .05), 0 10px 22px -16px rgba(73, 50, 36, .35);
  --shadow-md: 0 4px 10px -4px rgba(73, 50, 36, .12), 0 18px 40px -22px rgba(73, 50, 36, .45);
  --shadow-lg: 0 24px 60px -24px rgba(73, 50, 36, .45);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms;
  --t: 240ms;
  --t-slow: 300ms;

  --nav-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --font: "Manrope", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ---------- 1b. Dark theme — "Tweaklr after midnight" ----------
   A variable remap, not a second stylesheet: every component below
   already reads --bg/--surface/--text/--coffee*, so redefining the
   tokens under [data-theme="dark"] carries almost the whole app.
   Two things a plain remap can't fix, handled just below this block:
   1) --coffee-dark plays two roles in the light theme — solid button
      fill (paired with a hardcoded cream label) and plain ink/text.
      Those diverge once the surface goes dark, so it keeps the fill
      role here and the handful of ink usages get a targeted override.
   2) A few decorative bits (permission glyph, map pins, invite code
      card) use a literal near-white gradient rather than a token;
      those get their own dark equivalents further down. */
:root[data-theme="dark"] {
  --bg: #100D0B;
  --bg-deep: #0B0908;
  --surface: rgba(255, 255, 255, .055);
  --surface-2: rgba(255, 255, 255, .075);
  --coffee: #C9A574;
  --coffee-dark: #6B4A30;
  --coffee-light: #B7A38C;
  --text: #F5EEE7;
  --muted: #A99E95;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .17);
  --champagne: rgba(255, 255, 255, .09);
  --burgundy: #D98FA0;
  --sage: #8FBBA0;
  --amber: #D9A75C;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .4), 0 12px 28px -16px rgba(0, 0, 0, .65);
  --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, .5), 0 22px 46px -22px rgba(0, 0, 0, .75);
  --shadow-lg: 0 28px 68px -24px rgba(0, 0, 0, .8);
}

/* ink-role uses of --coffee-dark: these must lighten in the dark
   theme even though the variable itself stays deep (for button fills
   under a hardcoded cream label, e.g. .btn--primary, .chip.is-on) */
[data-theme="dark"] .brand,
[data-theme="dark"] .icon-btn,
[data-theme="dark"] .back-btn,
[data-theme="dark"] .chip,
[data-theme="dark"] .nav button.is-on,
[data-theme="dark"] .round,
[data-theme="dark"] .tag-pill,
[data-theme="dark"] .btn--quiet {
  color: var(--text);
}
[data-theme="dark"] .btn--quiet { background: rgba(255, 255, 255, .08); }

/* press/active overlays were a dark tint on a light surface;
   on a dark surface the same rgba is nearly invisible, so these
   get a light tint instead, consolidated in one place */
[data-theme="dark"] .icon-btn:active,
[data-theme="dark"] .prow:active,
[data-theme="dark"] .opt:active,
[data-theme="dark"] .stats button:active,
[data-theme="dark"] .menu-item:active,
[data-theme="dark"] .notif:active,
[data-theme="dark"] .convo:active {
  background: rgba(255, 255, 255, .06);
}

/* decorative near-white gradients that aren't token-driven */
[data-theme="dark"] .perm .glyph {
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
}
[data-theme="dark"] .pin .bubble,
[data-theme="dark"] .pin .tip {
  background: var(--surface);
}
[data-theme="dark"] .map-float { background: rgba(20, 17, 15, .78); color: var(--text); }
[data-theme="dark"] .ocard { background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
[data-theme="dark"] .req { background: linear-gradient(150deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
[data-theme="dark"] .now { background: linear-gradient(140deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); }
[data-theme="dark"] .map {
  background:
    radial-gradient(120px 90px at 22% 76%, rgba(143, 187, 160, .12), transparent 70%),
    radial-gradient(150px 110px at 84% 22%, rgba(143, 187, 160, .09), transparent 70%),
    radial-gradient(200px 160px at 50% 50%, rgba(255, 255, 255, .05), transparent 75%),
    #17130F;
}
[data-theme="dark"] .map .road { background: rgba(255, 255, 255, .06); box-shadow: none; }
[data-theme="dark"] .map .blk { background: rgba(255, 255, 255, .05); }
[data-theme="dark"] .map .water { background: rgba(217, 167, 92, .1); }
[data-theme="dark"] .me { border-color: #100D0B; }
[data-theme="dark"] input[type="range"]::-webkit-slider-thumb,
[data-theme="dark"] input[type="range"]::-moz-range-thumb { border-color: var(--bg); }

/* the brief, warm daylight this app is named after should still feel
   like daylight in the sheets and toasts that were designed for it —
   these two stay fixed by design in both themes */
.toast, .scrim { color-scheme: dark; }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.006em;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--coffee);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- 3. App shell ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* Profile editing: preserve the app's original height while the mobile keyboard overlays it. */
.app.profile-edit-nav-lock {
  height: var(--profile-edit-shell-height) !important;
}

/* My Space note composer: preserve the shell height while the Android keyboard opens. */
.app.my-space-note-nav-lock {
  height: var(--my-space-note-shell-height) !important;
}

@media (min-width: 900px) {
  body {
    display: grid;
    place-items: center;
    background:
      radial-gradient(1200px 700px at 20% 0%, #F3EAE0 0%, transparent 60%),
      radial-gradient(900px 600px at 90% 100%, #E7DACB 0%, transparent 55%),
      #E4D8CA;
  }
  .app {
    height: min(884px, calc(100dvh - 48px));
    border-radius: 42px;
    box-shadow:
      0 0 0 10px #241811,
      0 0 0 11px rgba(255, 255, 255, .08),
      var(--shadow-lg);
  }
  .desk-mark {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    font-size: 12px;
    color: rgba(73, 50, 36, .45);
    letter-spacing: .12em;
  }
}
.desk-mark { display: none; }
@media (min-width: 900px) { .desk-mark { display: block; } }

/* ---------- 4. Screens ---------- */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: scale(.985);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
  z-index: 1;
}
.screen.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.screen--stack {
  transform: translateX(6%);
  z-index: 40;
  box-shadow: -20px 0 50px -30px rgba(73, 50, 36, .6);
}
.screen--stack.is-active { transform: none; }
.scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 34px);
  scroll-behavior: smooth;
}
.screen--stack .scroll { padding-bottom: calc(var(--safe-b) + 28px); }
.screen--stack.has-nav .scroll { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 28px); }

/* ---------- 5. Top bar ---------- */
.topbar {
  flex: 0 0 auto;
  padding: calc(var(--safe-t) + 14px) 18px 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), padding var(--t) var(--ease);
  z-index: 5;
}
.topbar.is-scrolled { border-bottom-color: var(--border); }

/* Compact only the Home header; keep all 44px action buttons unchanged. */
#screen-home > .topbar {
  padding-top: calc(var(--safe-t) + 19px);
  padding-bottom: 23px;
}

/* Apply the same compact header spacing to the other primary navigation screens. */
#screen-discover > .topbar,
#screen-tweak > .topbar,
#screen-moonflower > .topbar,
#screen-profile > .topbar {
  padding-top: calc(var(--safe-t) + 19px);
  padding-bottom: 23px;
}

/* Scale header contents to match the reduced header height. */
#screen-home > .topbar .topbar-row {
  gap: 11px;
}

#screen-discover > .topbar .topbar-row,
#screen-tweak > .topbar .topbar-row,
#screen-moonflower > .topbar .topbar-row,
#screen-profile > .topbar .topbar-row {
  gap: 11px;
}

#screen-home > .topbar .brand {
  font-size: 23px;
}

#screen-discover > .topbar .topbar-title,
#screen-tweak > .topbar .topbar-title,
#screen-moonflower > .topbar .topbar-title,
#screen-profile > .topbar .topbar-title {
  font-size: 23px;
}

#screen-discover > .topbar .topbar-sub {
  font-size: 12.5px;
}

#screen-home > .topbar 
/* Keep the Moonflower header action genuinely hidden outside My Journey. */
#moonroom-add[hidden] { display: none !important; }

.icon-btn {
  width: 44px;
  height: 44px;
}

#screen-discover > .topbar .icon-btn,
#screen-tweak > .topbar .icon-btn,
#screen-moonflower > .topbar .icon-btn,
#screen-profile > .topbar .icon-btn {
  width: 44px;
  height: 44px;
}

#screen-home > .topbar .icon-btn svg,
#screen-home > .topbar .theme-toggle .tt-icon {
  width: 21px;
  height: 21px;
}

#screen-discover > .topbar .icon-btn svg,
#screen-tweak > .topbar .icon-btn svg,
#screen-moonflower > .topbar .icon-btn svg,
#screen-profile > .topbar .icon-btn svg,
#screen-discover > .topbar .theme-toggle .tt-icon,
#screen-tweak > .topbar .theme-toggle .tt-icon,
#screen-moonflower > .topbar .theme-toggle .tt-icon,
#screen-profile > .topbar .theme-toggle .tt-icon {
  width: 21px;
  height: 21px;
}

#screen-home > .topbar .icon-btn .dot,
#screen-discover > .topbar .icon-btn .dot,
#screen-tweak > .topbar .icon-btn .dot,
#screen-moonflower > .topbar .icon-btn .dot,
#screen-profile > .topbar .icon-btn .dot {
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
}

#screen-home > .topbar .av-ring {
  padding: 2px;
}

#screen-home > .topbar .av-ring .av {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

#screen-home > .topbar .theme-toggle .tt-halo,
#screen-discover > .topbar .theme-toggle .tt-halo,
#screen-tweak > .topbar .theme-toggle .tt-halo,
#screen-moonflower > .topbar .theme-toggle .tt-halo,
#screen-profile > .topbar .theme-toggle .tt-halo {
  inset: -4px;
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title {
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -.02em;
}
.topbar-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 1px;
}

.brand {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.045em;
  color: var(--coffee-dark);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  color: var(--coffee-dark);
  position: relative;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  flex: 0 0 auto;
}
.icon-btn:active { transform: scale(.9); background: rgba(73, 50, 36, .07); }
.icon-btn svg { width: 21px; height: 21px; }

.icon-btn .dot {
  position: absolute;
  top: 9px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c83b4f;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(200,59,79,.10), 0 0 12px rgba(200,59,79,.72);
  animation: mingNotifDotGlow 1.8s ease-in-out infinite;
}
.icon-btn .dot[hidden] { display: none; }

.back-btn { margin-left: -10px; }

/* ---------- 6. Greeting block ---------- */
.greet {
  padding: 4px 18px 0;
}
.greet h1 {
  font-size: 26px;
  line-height: 1.16;
  font-weight: 660;
  letter-spacing: -.035em;
}
.greet .q {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--muted);
  letter-spacing: -.01em;
}

.locbar {
  margin: 14px 18px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}
.locbar svg { width: 16px; height: 16px; color: var(--coffee); flex: 0 0 auto; }
.locbar .txt { flex: 1 1 auto; font-size: 13.5px; }
.locbar .txt b { font-weight: 560; }
.locbar .txt span { color: var(--muted); }
.locbar button {
  font-size: 13px;
  font-weight: 560;
  color: var(--coffee);
  padding: 8px 4px 8px 10px;
}

.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage);
  position: relative;
  flex: 0 0 auto;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  opacity: .5;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: .55; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- 7. Sections ---------- */
.section { margin-top: 26px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 12px;
}
.section-head h2 {
  font-size: 16.5px;
  font-weight: 620;
  letter-spacing: -.024em;
}
.section-head .hint {
  font-size: 12.5px;
  color: var(--muted);
}
.section-head button {
  font-size: 13px;
  font-weight: 560;
  color: var(--coffee);
  padding: 6px 0;
}

/* ---------- 8. Rails ---------- */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 18px 6px;
}
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- 9. Avatars ---------- */
.av {
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: -.02em;
  flex: 0 0 auto;
  user-select: none;
}
.av--56 { width: 56px; height: 56px; font-size: 19px; }
.av--48 { width: 48px; height: 48px; font-size: 17px; }
.av--44 { width: 44px; height: 44px; font-size: 16px; }
.av--36 { width: 36px; height: 36px; font-size: 13.5px; }
.av--28 { width: 28px; height: 28px; font-size: 11px; }
.av--88 { width: 88px; height: 88px; font-size: 30px; }

/* Keep every uploaded profile photo fully inside its circular avatar. */
.av > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

.av .status {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  background: var(--muted);
}
.av--88 .status { width: 20px; height: 20px; border-width: 4px; right: 2px; bottom: 2px; }
.av .status.on { background: var(--sage); }
.av .status.away { background: var(--amber); }

.av-ring {
  padding: 2.5px;
  border-radius: 50%;
  background: transparent;
  display: inline-block;
}
.av-ring.live {
  background: conic-gradient(from 140deg, var(--coffee), var(--champagne), var(--burgundy), var(--coffee));
}
.av-ring.live .av { box-shadow: 0 0 0 2.5px var(--bg); }
.settings-section-title {
  margin: 18px 16px 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-control {
  margin: 0 16px 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.settings-control-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-control-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 570;
}

.settings-control-sub {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.settings-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}

.settings-status-dot.on {
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(102, 150, 91, .12);
}

.settings-switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  transition: background 160ms ease, border-color 160ms ease;
}

.settings-switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 1px 3px rgba(0,0,0,.14);
  transition: transform 160ms ease, background 160ms ease;
}

.settings-switch.on {
  background: rgba(102, 150, 91, .18);
  border-color: rgba(102, 150, 91, .35);
}

.settings-switch.on span {
  background: var(--sage);
  transform: translateX(18px);
}

.settings-info {
  margin: 0 16px;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-bottom: 1px solid var(--border);
}

.settings-info-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--coffee);
}

.settings-info-icon svg {
  width: 16px;
  height: 16px;
}

.settings-info-title {
  font-size: 13.5px;
  font-weight: 550;
}

.settings-info-sub {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}


/* ---------- 10. Person card (rail) ---------- */
.pcard {
  width: 118px;
  padding: 14px 12px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.pcard:active { transform: translateY(-3px) scale(.985); box-shadow: var(--shadow-sm); }
.pcard .name {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 580;
  letter-spacing: -.015em;
}
.pcard .tag {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard .dist {
  margin-top: 9px;
  display: inline-block;
  font-size: 11px;
  font-weight: 540;
  color: var(--coffee);
  background: rgba(111, 78, 55, .08);
  padding: 4px 9px;
  border-radius: var(--r-full);
}

/* ---------- 11. Person row ---------- */
.prow {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 18px;
  text-align: left;
  transition: background var(--t-fast) var(--ease);
}
.prow:active { background: rgba(73, 50, 36, .05); }
.prow .meta { flex: 1 1 auto; min-width: 0; }
.prow .meta .n { font-size: 15px; font-weight: 570; letter-spacing: -.015em; }
.prow .meta .s {
  font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prow .right { text-align: right; flex: 0 0 auto; }
.prow .right .d { font-size: 12px; color: var(--coffee); font-weight: 540; }
.prow .right .t { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 12. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 570;
  letter-spacing: -.012em;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), opacity var(--t-fast);
}
.btn:active { transform: scale(.965); }
.btn svg { width: 17px; height: 17px; }

.btn--primary { background: var(--coffee-dark); color: #FBF6F0; }
.btn--primary:active { background: #3B281D; }
.btn--soft { background: var(--surface-2); color: var(--coffee-dark); border: 1px solid var(--border); }
.btn--ghost { color: var(--coffee); }
.btn--quiet { background: rgba(73, 50, 36, .06); color: var(--coffee-dark); }
.btn--danger { color: var(--burgundy); background: rgba(124, 51, 65, .08); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 38px; font-size: 13.5px; padding: 0 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--done { background: rgba(92, 122, 99, .12); color: var(--sage); }

/* ---------- 13. Chips ---------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 18px 4px;
}
.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 520;
  color: var(--coffee-dark);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast);
}
.chip:active { transform: scale(.95); }
.chip.is-on { background: var(--coffee-dark); color: #FBF6F0; border-color: transparent; }

/* ---------- 14. Update card ---------- */
.upd {
  margin: 0 18px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 15px 16px 12px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  animation: cardIn var(--t-slow) var(--ease-out) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.upd-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}
.upd-top .who { flex: 1 1 auto; min-width: 0; }
.upd-top .who .n { font-size: 14px; font-weight: 570; }
.upd-top .who .m { font-size: 11.5px; color: var(--muted); }

.kind {
  font-size: 11px;
  font-weight: 580;
  letter-spacing: .01em;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: rgba(111, 78, 55, .09);
  color: var(--coffee);
  white-space: nowrap;
}
.kind.k-hiring { background: rgba(192, 138, 62, .13); color: #8C5F1E; }
.kind.k-alert { background: rgba(124, 51, 65, .11); color: var(--burgundy); }
.kind.k-sale { background: rgba(92, 122, 99, .13); color: #3F5C46; }
.kind.k-talk { background: rgba(120, 98, 140, .13); color: #5D4A70; }
.kind.k-visitor { background: rgba(70, 106, 130, .12); color: #3B5E75; }
.kind.k-activity { background: rgba(192, 138, 62, .13); color: #8C5F1E; }

.upd h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.3;
}
.upd p {
  margin-top: 6px;
  font-size: 14px;
  color: #4A3B32;
  line-height: 1.52;
}

.upd-foot {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.upd-foot .act {
  flex: 0 0 auto;
}
.upd-foot .expiry {
  margin-left: auto;
  flex: 1 1 150px;
  min-width: 150px;
  justify-content: flex-end;
  white-space: normal;
  text-align: right;
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 540;
  color: var(--muted);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.act:active { transform: scale(.92); }
.act svg { width: 17px; height: 17px; }
.act.is-on { color: var(--burgundy); }
.act.is-on svg { fill: var(--burgundy); stroke: var(--burgundy); }
.act.bump { animation: bump 320ms var(--ease-out); }
@keyframes bump {
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.expiry {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.life {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: rgba(73, 50, 36, .12);
  overflow: hidden;
}
.life i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--coffee-light);
}
.life.low i { background: var(--burgundy); }

/* ---------- 15. Opportunity / tile cards ---------- */
.ocard {
  position: relative;
  width: 262px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #FFFDF9, #F6EEE4);
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast) var(--ease);
}
.ocard:active { transform: translateY(-3px) scale(.99); }
.ocard > .post-type-card {
  position: absolute;
  top: 10px;
  right: 10px;
}
.ocard .k { font-size: 11.5px; font-weight: 560; color: var(--coffee-light); }
.ocard h3 { margin-top: 7px; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.32; }
.ocard p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ocard .f { margin-top: 13px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--coffee); font-weight: 540; }

.mcard {
  width: 172px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast) var(--ease);
}
.mcard:active { transform: translateY(-3px) scale(.99); }
.mcard .art {
  height: 108px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.mcard .art .who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 253, 249, .88);
  border-radius: var(--r-full);
  padding: 4px 10px 4px 4px;
  font-size: 11.5px;
  font-weight: 550;
  backdrop-filter: blur(6px);
}
.mcard .body { padding: 11px 12px 13px; }
.mcard .body p { font-size: 13px; line-height: 1.42; letter-spacing: -.012em; }
.mcard .body .m { margin-top: 8px; font-size: 11.5px; color: var(--muted); }

.plcard {
  width: 196px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow-xs);
}
.plcard:active { transform: translateY(-3px) scale(.99); }
.plcard .art { height: 96px; }
.plcard .body { padding: 11px 13px 14px; }
.plcard .body .n { font-size: 14.5px; font-weight: 580; letter-spacing: -.018em; }
.plcard .body .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.plcard .body .d { font-size: 11.5px; color: var(--coffee); margin-top: 8px; font-weight: 540; }

.acard {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  margin: 0 18px 10px;
  width: calc(100% - 36px);
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--ease);
}
.acard:active { transform: scale(.985); }
.acard .when {
  width: 52px;
  flex: 0 0 auto;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 12px;
}
.acard .when .h { font-size: 15px; font-weight: 620; letter-spacing: -.02em; }
.acard .when .d { font-size: 11px; color: var(--muted); }
.acard .info { flex: 1 1 auto; min-width: 0; }
.acard .info .t { font-size: 14.5px; font-weight: 560; letter-spacing: -.015em; }
.acard .info .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.acard .go { color: var(--coffee-light); }

/* ---------- 16. Nearby map ---------- */
.mapwrap {
  margin: 0 18px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  background: #EFE7DB;
}
.map {
  position: relative;
  height: 330px;
  background:
    linear-gradient(115deg, rgba(146, 114, 88, .07) 0 8px, transparent 8px 60px),
    linear-gradient(205deg, rgba(146, 114, 88, .07) 0 6px, transparent 6px 48px),
    radial-gradient(120px 90px at 22% 76%, rgba(92, 122, 99, .22), transparent 70%),
    radial-gradient(150px 110px at 84% 22%, rgba(92, 122, 99, .16), transparent 70%),
    radial-gradient(200px 160px at 50% 50%, #FBF6EF, transparent 75%),
    #F0E7DB;
}
.map .road {
  position: absolute;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 0 0 1px rgba(73, 50, 36, .05);
}
.map .road.h { height: 12px; left: -10%; width: 120%; border-radius: 6px; }
.map .road.v { width: 10px; top: -10%; height: 120%; border-radius: 6px; }
.map .blk {
  position: absolute;
  background: rgba(146, 114, 88, .09);
  border-radius: 5px;
}
.map .water {
  position: absolute;
  inset: auto -8% -14% 46%;
  height: 120px;
  background: rgba(70, 106, 130, .16);
  border-radius: 60% 40% 0 0 / 70% 50% 0 0;
}

.me {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--coffee-dark);
  border: 3px solid #FFFDF9;
  box-shadow: 0 4px 12px rgba(73, 50, 36, .4);
  z-index: 4;
}
.ring {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(111, 78, 55, .22);
  background: radial-gradient(circle, rgba(111, 78, 55, .07), rgba(111, 78, 55, .02));
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ring.r1 { width: 120px; height: 120px; }
.ring.r2 { width: 216px; height: 216px; border-style: dashed; }
.ring.r3 { width: 320px; height: 320px; border-color: rgba(111, 78, 55, .14); background: none; }
.ring.sweep { animation: sweep 4.5s var(--ease) infinite; }
@keyframes sweep {
  0% { transform: translate(-50%, -50%) scale(.5); opacity: .55; }
  80% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 5;
  transition: transform var(--t-fast) var(--ease);
  animation: pinIn 380ms var(--ease-out) both;
}
.pin:active { transform: translate(-50%, -100%) scale(.9); }
@keyframes pinIn {
  from { opacity: 0; transform: translate(-50%, -80%) scale(.6); }
  to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}
.pin .bubble {
  padding: 3px;
  background: #FFFDF9;
  border-radius: var(--r-full);
  box-shadow: 0 6px 16px -6px rgba(73, 50, 36, .5);
  display: block;
}
.pin .tip {
  width: 8px; height: 8px;
  background: #FFFDF9;
  transform: rotate(45deg);
  margin: -5px auto 0;
  border-radius: 1px;
}
.pin.activity .bubble {
  background: var(--coffee-dark);
  color: #FBF6F0;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
}
.pin.activity .tip { background: var(--coffee-dark); }

.map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.map-legend svg { width: 15px; height: 15px; color: var(--coffee); }
.map-legend b { color: var(--text); font-weight: 550; }

.map-float {
  position: absolute;
  left: 12px; top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 540;
  box-shadow: var(--shadow-xs);
}

.radius-ctl {
  margin: 14px 18px 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.radius-ctl .lbl {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
}
.radius-ctl .lbl b { font-weight: 560; }
.radius-ctl .lbl span { color: var(--coffee); font-weight: 560; }
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(73, 50, 36, .14);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--coffee-dark);
  border: 3px solid #FFFDF9;
  box-shadow: var(--shadow-xs);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(73, 50, 36, .14); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--coffee-dark); border: 3px solid #FFFDF9;
}

.privacy-note {
  margin: 14px 18px 0;
  display: flex;
  gap: 11px;
  padding: 13px 15px;
  background: rgba(92, 122, 99, .08);
  border: 1px solid rgba(92, 122, 99, .16);
  border-radius: var(--r-md);
}
.privacy-note svg { width: 17px; height: 17px; color: var(--sage); flex: 0 0 auto; margin-top: 1px; }
.privacy-note p { font-size: 12.5px; color: #47533F; line-height: 1.45; }
.privacy-note p b { font-weight: 570; }

/* ---------- 17. Permission card ---------- */
.perm {
  margin: 0 18px;
  padding: 26px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
}
.perm .glyph {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #F6E9DA, #EADBC8);
  color: var(--coffee);
}
.perm .glyph svg { width: 30px; height: 30px; }
.perm h3 { font-size: 18px; font-weight: 620; letter-spacing: -.025em; }
.perm p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.perm .btn { margin-top: 18px; }
.perm .fine { margin-top: 12px; font-size: 11.5px; color: var(--muted); }

/* ---------- 18. Bottom nav ---------- */
.nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  padding: 6px 6px calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--border);
  transition: transform var(--t) var(--ease);
}
.nav.hidden { display: none !important; transform: translateY(calc(100% + 4px)); }

.nav button {
  flex: 1 1 0;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav button:active { transform: scale(.92); }
.nav button svg { width: 22px; height: 22px; }
.nav button .lb { font-size: 10px; font-weight: 540; letter-spacing: -.005em; }
.nav button.is-on { color: var(--coffee-dark); }
.nav button.is-on svg { stroke-width: 2.1; }
.nav button.is-on .lb { font-weight: 600; }

/* ---------- 19. FAB ---------- */
.fab {
  position: absolute;
  right: 18px;
  bottom: calc(var(--nav-h) + var(--safe-b) + 18px);
  width: 56px; height: 56px;
  border-radius: 20px;
  background: var(--coffee-dark);
  color: #FBF6F0;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -8px rgba(73, 50, 36, .7);
  z-index: 55;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.fab svg { width: 24px; height: 24px; }
.fab:active { transform: scale(.9) rotate(45deg); }
.fab.hidden { transform: scale(.4) translateY(20px); opacity: 0; pointer-events: none; }

/* ---------- 20. Sheets & modals ---------- */
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(43, 33, 27, .38);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
  z-index: 80;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 0 calc(16px + var(--safe-b));
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease-out);
  max-height: 88%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 50px -30px rgba(73, 50, 36, .6);
}
.sheet:not(.is-open) { display: none !important; }
.sheet.is-open { display: flex; transform: none; }
/* Activity discussion: keep the composer in the sheet footer, above the keyboard. */
.sheet.sheet--activity-keyboard { max-height: 88%; transition: none; }
.sheet.sheet--activity-keyboard .sheet-body { min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet.sheet--activity-keyboard .sheet-foot { padding-top: 10px; padding-bottom: 8px; flex: 0 0 auto; }
.sheet.sheet--activity-keyboard .activity-comment-composer { width: 100%; margin-bottom: 10px; }
.sheet.sheet--activity-keyboard .sheet-foot > div:last-child { padding-bottom: 4px; }
.sheet.sheet--activity-keyboard .sheet-body { flex: 1 1 0; }
.sheet.sheet--activity-keyboard #activity-comment-input { min-height: 48px; max-height: 120px; line-height: 1.4; }
.sheet .grab {
  width: 38px; height: 4px;
  border-radius: 2px;
  background: rgba(73, 50, 36, .16);
  margin: 0 auto 10px;
  flex: 0 0 auto;
}
.sheet-head {
  padding: 4px 20px 12px;
  flex: 0 0 auto;
}
.sheet-head h2 { font-size: 18px; font-weight: 620; letter-spacing: -.026em; }
.sheet-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.sheet-body { overflow-y: auto; padding: 0 20px; flex: 1 1 auto; }
.sheet-foot { padding: 14px 20px 0; flex: 0 0 auto; }

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 4px;
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast);
}
.opt:active { background: rgba(73, 50, 36, .05); transform: scale(.99); }
.opt + .opt { border-top: 1px solid var(--border); }
.opt .ic {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--coffee);
  flex: 0 0 auto;
}
.opt .ic svg { width: 20px; height: 20px; }
.opt .tx { flex: 1 1 auto; }
.opt .tx .t { font-size: 15px; font-weight: 570; letter-spacing: -.015em; }
.opt .tx .s { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.opt .go { color: var(--coffee-light); }

/* Keep profile pictures compact only in the Share Update recipient list. */
.share-update-recipients .opt > .av {
  width: 32px !important;
  height: 32px !important;
  font-size: 12px !important;
}
.share-update-recipients .opt > .av img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
}


.modal {
  position: absolute;
  left: 16px; right: 16px;
  top: 50%;
  z-index: 90;
  transform: translateY(-50%) scale(.94);
  opacity: 0;
  visibility: hidden;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 22px 20px;
  box-shadow: var(--shadow-lg);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out), visibility var(--t);
  max-height: 84%;
  overflow-y: auto;
}
.modal.is-open { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
/* The Connect Request note modal uses fixed positioning while the Android keyboard is open. */
.modal.modal--connect-note { scroll-behavior: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal.modal--connect-note.is-open { transform: none; }
/* Keep primary navigation out of the Android keyboard area while editing
   Moonflower goals and reminders. */
body:has(#modal.modal--moon-entry.is-open) #nav {
  display: none !important;
}
.modal h2 { font-size: 18px; font-weight: 620; letter-spacing: -.026em; }
.modal p.lede { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.modal .row { display: flex; gap: 10px; margin-top: 20px; }
.modal .row .btn { flex: 1 1 0; }

/* ---------- 21. Forms ---------- */
.field { margin-top: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input[type="text"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 14px;
  font-size: 15px;
  resize: none;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast);
}
.field textarea { min-height: 92px; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coffee-light);
  background: var(--surface);
}
.field .count { text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  font-weight: 520;
  transition: all var(--t-fast) var(--ease);
}
.pick button[aria-pressed="true"] { background: var(--coffee-dark); color: #FBF6F0; border-color: transparent; }

.ephemeral-note {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.ephemeral-note svg { width: 16px; height: 16px; color: var(--coffee-light); flex: 0 0 auto; margin-top: 1px; }

/* ---------- 22. Search ---------- */
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14.5px;
  text-align: left;
  box-shadow: var(--shadow-xs);
}
.searchbar svg { width: 18px; height: 18px; flex: 0 0 auto; }
.searchbar input {
  flex: 1 1 auto;
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  min-width: 0;
}
.searchbar input::placeholder { color: var(--muted); }

.res-group { margin-top: 20px; }
.res-group .gh {
  padding: 0 18px 8px;
  font-size: 12.5px;
  font-weight: 560;
  color: var(--muted);
}

/* ---------- 23. Messaging ---------- */
/* Messages search: compact, theme-aware people and sent-message results. */
.messages-search-box {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 16px 10px; padding: 0 12px;
  min-height: 48px; border: 1px solid var(--border);
  border-radius: var(--r-lg); background: var(--surface);
  color: var(--muted);
}
.messages-search-box > svg { width: 19px; height: 19px; flex: 0 0 auto; }
.messages-search-box input {
  min-width: 0; flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 14px;
}
.messages-search-box input::placeholder { color: var(--muted); }
.messages-search-box button { display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); }
.messages-search-box button svg { width: 17px; height: 17px; }
.messages-search-results { padding: 0 16px 18px; }
.messages-search-section { margin-top: 12px; }
.messages-search-heading {
  padding: 8px 2px; color: var(--muted); font-size: 11px;
  font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
}
.messages-search-person, .messages-search-message {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 2px; text-align: left; border-bottom: 1px solid var(--border);
}
.messages-search-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.messages-search-copy strong { color: var(--text); font-size: 14px; font-weight: 620; }
.messages-search-copy small, .messages-search-time { color: var(--muted); font-size: 11px; }
.messages-search-snippet {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; color: var(--text); font-size: 13px; line-height: 1.4;
}
.messages-search-open { color: var(--muted); font-size: 11px; white-space: nowrap; }
.messages-search-time { white-space: nowrap; align-self: flex-start; padding-top: 3px; }
.messages-search-empty { padding: 24px 8px; color: var(--muted); font-size: 13px; text-align: center; }
.chat-message-search-match .chat-bubble {
  outline: 2px solid var(--coffee-light);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--coffee-light) 16%, transparent);
}
.convo {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 13px 18px;
  transition: background var(--t-fast);
}
.convo:active { background: rgba(73, 50, 36, .05); }
.convo .c { flex: 1 1 auto; min-width: 0; }
.convo .c .top { display: flex; align-items: baseline; gap: 8px; }
.convo .c .top .n { font-size: 15px; font-weight: 565; flex: 1 1 auto; }
.convo .c .top .t { font-size: 11.5px; color: var(--muted); }
.convo .c .p {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.convo.unread .c .p { color: var(--text); font-weight: 520; }
.convo .badge {
  min-width: 20px; height: 20px;
  border-radius: var(--r-full);
  background: var(--coffee-dark);
  color: #FBF6F0;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  padding: 0 6px;
}

.thread {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
}

/* Tweaklr chat layout: each message owns a complete row.
   Sender and receiver use the same bubble design; only the side changes. */
.chat-message-row {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  box-sizing: border-box;
}

.chat-message-row--incoming {
  justify-content: flex-start;
}

.chat-message-row--outgoing {
  justify-content: flex-end;
}

.chat-bubble {
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  width: fit-content;
  max-width: min(78%, 520px);
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 9px 12px 8px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  box-sizing: border-box;
  transform: none;
  animation: bubIn 220ms var(--ease-out) both;
  box-shadow: 0 5px 18px rgba(45, 28, 18, .10);
}

.chat-message-row--incoming .chat-bubble {
  background: #2A211D;
  color: #F9F3ED;
  border-color: rgba(255, 255, 255, .06);
  border-bottom-left-radius: 5px;
  box-shadow: 0 5px 18px rgba(20, 14, 10, .14);
}

.chat-message-row--outgoing .chat-bubble {
  background: linear-gradient(135deg, #8B5A3C 0%, #6F432C 100%);
  color: #FFF8F1;
  border-color: rgba(241, 210, 174, .18);
  border-bottom-right-radius: 5px;
  box-shadow: 0 7px 22px rgba(111, 67, 44, .22);
}

.chat-message-row--incoming .chat-bubble::after,
.chat-message-row--outgoing .chat-bubble::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 10px;
  height: 10px;
  background: inherit;
}

.chat-message-row--incoming .chat-bubble::after {
  left: -5px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.chat-message-row--outgoing .chat-bubble::after {
  right: -5px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.chat-bubble__text {
  display: inline;
  width: auto;
  min-width: 0;
  max-width: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-bubble__time {
  display: inline;
  margin-left: 8px;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.2;
  opacity: .58;
  vertical-align: baseline;
}

@keyframes bubIn {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.day-sep { text-align: center; font-size: 11.5px; color: var(--muted); margin: 8px 0; }

.typing-state {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px 2px;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 2px;
}
.typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  animation: chatTypingDot 1.1s infinite ease-in-out;
}
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chatTypingDot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: .9; transform: translateY(-2px); }
}

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typ 1.2s infinite var(--ease);
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-call-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   TWEAKLR CALL OVERLAY
------------------------------------------------------------ */
body.call-open { overflow: hidden; }

.ming-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 10, 8, .92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.ming-call-overlay[hidden] { display: none; }

.ming-call-stage {
  position: relative;
  width: min(100%, 520px);
  min-height: min(760px, calc(100dvh - 36px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 22px 24px;
  border: 1px solid rgba(241,210,174,.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 32%, rgba(139,90,60,.24), transparent 36%),
    linear-gradient(160deg, rgba(42,33,29,.98), rgba(15,10,8,.99));
  box-shadow: 0 30px 100px rgba(0,0,0,.42);
  color: #fff8f1;
}

.ming-call-top { text-align: center; }
.ming-call-eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
}
.ming-call-name {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 650;
}
.ming-call-status {
  min-height: 18px;
  margin-top: 5px;
  font-size: 12px;
  opacity: .62;
}

.ming-call-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  display: grid;
  place-items: center;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 24px;
}

.ming-call-avatar {
  display: grid;
  place-items: center;
}
.ming-call-avatar .av {
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

.ming-call-remote-video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 24px;
  background: #090706;
}
.ming-call-local-video {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 118px;
  height: 166px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: #090706;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.ming-call-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

/* The native [hidden] attribute must always win over the flex layout.
   Without this, caller and receiver control groups can appear together. */
.ming-call-actions[hidden] {
  display: none !important;
}
.ming-call-action {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.ming-call-action svg { width: 25px; height: 25px; }
.ming-call-action span { font-size: 10px; }
.ming-call-action--accept { background: #587b4d; }
.ming-call-action--decline { background: #8b3543; }
.ming-call-action--accept svg { transform: rotate(0deg); }

.ming-call-control {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.09);
  color: #fff8f1;
  cursor: pointer;
}
.ming-call-control svg { width: 20px; height: 20px; }
.ming-call-control.is-off {
  background: rgba(255,255,255,.18);
}
.ming-call-control--end {
  background: #8b3543;
  border-color: transparent;
}
.chat-call-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
}
.chat-call-btn:hover {
  color: var(--text);
  background: var(--surface);
}
.chat-call-btn svg {
  width: 19px;
  height: 19px;
}

.composer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.composer textarea {
  flex: 1 1 auto;
  max-height: 110px;
  min-height: 44px;
  padding: 11px 15px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.4;
  resize: none;
  outline: none;
}
.composer textarea:focus { border-color: var(--coffee-light); }
.send {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coffee-dark);
  color: #FBF6F0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.send svg { width: 19px; height: 19px; }
.send:active { transform: scale(.88); }
.send[disabled] { opacity: .35; }

/* ---------- 24. Connections ---------- */
.req {
  margin: 0 18px 12px;
  padding: 14px 15px;
  background: linear-gradient(150deg, #FFFDF9, #F7EFE5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.req .top { display: flex; align-items: center; gap: 12px; }
.req .top .m { flex: 1 1 auto; min-width: 0; }
.req .top .m .n { font-size: 15px; font-weight: 570; }
.req .top .m .s { font-size: 12.5px; color: var(--muted); }
.req .msg {
  margin-top: 11px;
  font-size: 13.5px;
  color: #4A3B32;
  line-height: 1.45;
  padding-left: 13px;
  border-left: 2px solid var(--champagne);
}
.req .row { display: flex; gap: 9px; margin-top: 13px; }
.req .row .btn { flex: 1 1 0; }

.conn-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
  width: 100%;
  text-align: left;
}
.conn-card .m { flex: 1 1 auto; min-width: 0; }
.conn-card .m .n { font-size: 15px; font-weight: 565; }
.conn-card .m .s { font-size: 12.5px; color: var(--muted); }
.conn-card .m .w { font-size: 11.5px; color: var(--coffee-light); margin-top: 2px; }
.conn-card .acts { display: flex; gap: 6px; }
.round {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--coffee-dark);
  transition: transform var(--t-fast) var(--ease);
}
.round:active { transform: scale(.88); }
.round svg { width: 18px; height: 18px; }

/* ---------- 25. Profile ---------- */
.phead {
  padding: 4px 18px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}
.phead .who { flex: 1 1 auto; min-width: 0; }
.phead .who h1 { font-size: 22px; font-weight: 640; letter-spacing: -.032em; line-height: 1.2; }
.phead .who .u { font-size: 13px; color: var(--muted); margin-top: 2px; }

.pmeta { padding: 16px 18px 0; }
.pmeta .bio { font-size: 14.5px; line-height: 1.55; color: #43352C; }
.pmeta .line {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
}
.pmeta .line span { display: inline-flex; align-items: center; gap: 6px; }
.pmeta .line svg { width: 15px; height: 15px; color: var(--coffee-light); }

.stats {
  margin: 16px 18px 0;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats button {
  flex: 1 1 0;
  padding: 13px 6px;
  text-align: center;
  transition: background var(--t-fast);
}
.stats button:active { background: rgba(73, 50, 36, .05); }
.stats button + button { border-left: 1px solid var(--border); }
.stats .v { font-size: 17px; font-weight: 620; letter-spacing: -.025em; }
.stats .l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.now {
  margin: 16px 18px 0;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #F3E9DC, #EFE2D2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.now .lbl { font-size: 11.5px; color: var(--coffee-light); font-weight: 550; }
.now .val { font-size: 14.5px; font-weight: 560; letter-spacing: -.015em; margin-top: 2px; }
.now .edit { margin-left: auto; font-size: 12.5px; color: var(--coffee); font-weight: 550; padding: 10px 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px; }
.tag-pill {
  padding: 7px 13px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--coffee-dark);
}

.menu-list { margin: 0 18px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.menu-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 15px;
  text-align: left;
  transition: background var(--t-fast);
}
.menu-item:active { background: rgba(73, 50, 36, .05); }
.menu-item + .menu-item { border-top: 1px solid var(--border); }
.menu-item .t { flex: 1 1 auto; font-size: 14.5px; font-weight: 530; }
.menu-item svg { width: 19px; height: 19px; color: var(--coffee-light); }
.menu-item .go { color: var(--coffee-light); }  /* was a hardcoded literal that never adapted to dark mode */

/* ---------- 26. Moonflower ---------- */
.moon {
  --bg: #F2EFF5;
  --surface: #FBF9FD;
  --surface-2: #EDE8F2;
  --text: #2A2433;
  --muted: #837A93;
  --border: rgba(60, 48, 78, .10);
  --coffee: #6A5B7B;
  --coffee-dark: #3E3450;
  --coffee-light: #8B7DA0;
  background:
    radial-gradient(520px 320px at 78% -6%, rgba(160, 148, 190, .30), transparent 68%),
    radial-gradient(420px 300px at 8% 104%, rgba(196, 176, 190, .32), transparent 66%),
    #F2EFF5;
  color: var(--text);
}
.moon .topbar { background: transparent; backdrop-filter: none; }
.moon .topbar.is-scrolled { border-bottom-color: var(--border); }

.moon-hero { padding: 10px 22px 4px; text-align: left; }
.moon-hero .mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFFFFF, #DCD2EA 60%, #BFB2D4);
  box-shadow: 0 8px 26px -10px rgba(78, 62, 104, .8);
  margin-bottom: 16px;
  position: relative;
}
.moon-hero .mark::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(110, 94, 140, .28);
  animation: breathe 6s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.1); opacity: .16; }
}
.moon-hero h1 {
  font-size: 27px;
  font-weight: 560;
  letter-spacing: -.03em;
  line-height: 1.18;
}
.moon-hero p {
  margin-top: 9px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 30ch;
}

.moon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 24px 18px 0;
}
.moon-tile {
  text-align: left;
  padding: 18px 16px 17px;
  border-radius: var(--r-lg);
  background: rgba(251, 249, 253, .8);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px -22px rgba(60, 48, 78, .7);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
  min-height: 132px;
  display: flex;
  flex-direction: column;
}
.moon-tile:active { transform: translateY(-3px) scale(.985); }
.moon-tile .ic { color: var(--coffee); margin-bottom: auto; }
.moon-tile .ic svg { width: 22px; height: 22px; }
.moon-tile .t { font-size: 15.5px; font-weight: 570; letter-spacing: -.02em; margin-top: 16px; }
.moon-tile .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.moon-tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; }
.moon-tile.wide .ic { margin: 0; }
.moon-tile.wide .t { margin-top: 0; }

.moon-quiet {
  margin: 22px 18px 0;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(110, 94, 140, .3);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.note {
  margin: 0 18px 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(251, 249, 253, .9);
  border: 1px solid var(--border);
  text-align: left;
  width: calc(100% - 36px);
  display: block;
}
.note .d { font-size: 11.5px; color: var(--muted); }
.note p { font-size: 14px; margin-top: 5px; line-height: 1.5; }

.goal {
  margin: 0 18px 10px;
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: rgba(251, 249, 253, .9);
  border: 1px solid var(--border);
}
.goal .t { font-size: 15px; font-weight: 560; letter-spacing: -.015em; }
.goal .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.goal .bar {
  margin-top: 11px;
  height: 5px;
  border-radius: 3px;
  background: rgba(60, 48, 78, .1);
  overflow: hidden;
}
.goal .bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #8B7DA0, #B9A9CE);
  transition: width var(--t-slow) var(--ease);
}
.goal .steps { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }

.check {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 9px 2px;
  min-height: 44px;
}
.check .box {
  width: 21px; height: 21px;
  border-radius: 7px;
  border: 1.5px solid rgba(60, 48, 78, .25);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast);
}
.check .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity var(--t-fast); }
.check[aria-pressed="true"] .box { background: var(--coffee); border-color: var(--coffee); }
.check[aria-pressed="true"] .box svg { opacity: 1; }
.check .lb { font-size: 14px; transition: color var(--t-fast), text-decoration var(--t-fast); }
.check[aria-pressed="true"] .lb { color: var(--muted); text-decoration: line-through; }
.check .when { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* ---------- 27. Notifications ---------- */
.notif {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 4px;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.notif + .notif { border-top: 1px solid var(--border); }
.notif:active { background: rgba(73, 50, 36, .05); }
.notif .ic {
  width: 38px; height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--coffee);
  flex: 0 0 auto;
}
.notif .ic svg { width: 17px; height: 17px; }
.notif .c { flex: 1 1 auto; }
.notif .c .t { font-size: 14px; line-height: 1.42; }
.notif .c .t b { font-weight: 585; }
.notif .c .ti { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.notif .unread-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--burgundy);
  margin-top: 8px;
  flex: 0 0 auto;
}

/* ---------- 28. Toast ---------- */
.toasts {
  position: absolute;
  left: 14px; right: 14px;
  bottom: calc(var(--nav-h) + var(--safe-b) + 84px);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(43, 33, 27, .94);
  color: #F7F0E8;
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: toastIn 260ms var(--ease-out) both;
}
.toast.out { animation: toastOut 220ms var(--ease) forwards; }
.toast svg { width: 17px; height: 17px; flex: 0 0 auto; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- 29. Empty & skeleton ---------- */
.empty {
  padding: 46px 34px;
  text-align: center;
}
.empty .mark {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  position: relative;
}
.empty .mark::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--surface-2);
}
.empty h3 { font-size: 16px; font-weight: 590; letter-spacing: -.022em; }
.empty p { margin-top: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.empty .btn { margin-top: 18px; }

.sk {
  background: linear-gradient(100deg, rgba(73, 50, 36, .06) 30%, rgba(73, 50, 36, .12) 48%, rgba(73, 50, 36, .06) 66%);
  background-size: 260% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -160% 0; } }
.sk-card {
  margin: 0 18px 12px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.sk-row { display: flex; align-items: center; gap: 11px; }
.sk-line { height: 11px; }
.sk-circle { border-radius: 50%; }

/* ---------- 30. Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 18px 18px; }
.center-note { padding: 18px 24px 4px; text-align: center; font-size: 12px; color: var(--muted); }
.spacer { height: 10px; }

.badge-count {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--burgundy);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}

.wordmark-foot {
  text-align: center;
  padding: 30px 0 8px;
  font-size: 12px;
  color: rgba(138, 123, 112, .8);
  letter-spacing: .02em;
}
.wordmark-foot b { font-weight: 560; letter-spacing: -.04em; color: var(--coffee-light); }

/* ---------- 31. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 33b. Navigation chevron — one size, everywhere ----------
   Audit finding: icon('chev') is wrapped in a `.go` span at every call
   site, but no rule ever gave that svg a width/height. A bare <svg>
   with no explicit size and no CSS falls back to the UA default box
   (300×150), which is what was rendering as an oversized ">" on cards
   like Daily Update / Activity / Need Help. This is the actual fix —
   a size, not a redesign. The touch target (the parent button/row)
   is untouched; only the glyph itself shrinks to something proportional. */
.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.go svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 360px) {
  .go svg { width: 16px; height: 16px; }
}

/* ---------- 32. Small phones ---------- */
@media (max-width: 360px) {
  .greet h1 { font-size: 23px; }
  .pcard { width: 108px; }
  .ocard { width: 236px; }
  .nav button .lb { font-size: 9.5px; }
  .moon-grid { gap: 10px; }
}

/* ---------- 33. Theme toggle — sun ⇄ moon ----------
   One control, reused: sized and positioned exactly like the other
   .icon-btn instances in each tab's topbar (not a floating extra). */
.theme-toggle {
  overflow: visible;
}
.theme-toggle .tt-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 167, 92, .55), transparent 70%);
  opacity: 0;
  transform: scale(.6);
  pointer-events: none;
}
[data-theme="dark"] .theme-toggle .tt-halo {
  background: radial-gradient(circle, rgba(223, 228, 238, .5), transparent 70%);
}
.theme-toggle.is-pulsing .tt-halo {
  animation: ttHalo 700ms var(--ease-out);
}
@keyframes ttHalo {
  0% { opacity: 0; transform: scale(.5); }
  35% { opacity: .9; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.5); }
}

.theme-toggle .tt-icon {
  position: relative;
  width: 21px;
  height: 21px;
  overflow: visible;
}
.theme-toggle .tt-sun,
.theme-toggle .tt-moon {
  transform-origin: 12px 12px;
  transition: opacity 500ms var(--ease), transform 600ms var(--ease-out);
}
.theme-toggle .tt-sun {
  fill: none;
  stroke: currentColor;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle .tt-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(.55);
  transition-delay: 60ms;
}
.theme-toggle .tt-moon-body {
  fill: rgba(223, 229, 240, .82);
  stroke: rgba(255, 255, 255, .35);
  stroke-width: .6;
}
.theme-toggle .tt-crater { fill: rgba(24, 28, 42, .22); }

[data-theme="dark"] .theme-toggle .tt-sun {
  opacity: 0;
  transform: rotate(80deg) scale(.55);
  transition-delay: 0ms;
}
[data-theme="dark"] .theme-toggle .tt-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  transition-delay: 90ms;
  filter: drop-shadow(0 0 3px rgba(223, 229, 240, .55));
}

.theme-toggle:hover .tt-icon { transform: rotate(8deg) scale(1.06); }
.theme-toggle:hover .tt-halo { opacity: .35; transform: scale(1); }
.theme-toggle:active .tt-icon { transform: scale(.88); }
.theme-toggle .tt-icon { transition: transform var(--t-fast) var(--ease); }

/* full-screen dusk/dawn sweep, one instance shared by every toggle */
.theme-sweep {
  position: absolute;
  inset: 0;
  z-index: 65;
  pointer-events: none;
  opacity: 0;
}
.theme-sweep.to-dark {
  background: radial-gradient(circle at var(--sweep-x, 84%) var(--sweep-y, 6%),
    rgba(16, 13, 11, .95) 0%, rgba(16, 13, 11, .6) 40%, rgba(16, 13, 11, 0) 74%);
}
.theme-sweep.to-light {
  background: radial-gradient(circle at var(--sweep-x, 84%) var(--sweep-y, 6%),
    rgba(247, 242, 236, .95) 0%, rgba(247, 242, 236, .6) 40%, rgba(247, 242, 236, 0) 74%);
}
.theme-sweep.is-sweeping { animation: ttSweep 820ms cubic-bezier(.22, .61, .36, 1); }
@keyframes ttSweep {
  0% { opacity: 0; }
  38% { opacity: 1; }
  100% { opacity: 0; }
}

/* brief, explicit tween window so existing surfaces cross-fade instead
   of snapping when the variables above change; removed right after */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 480ms ease, border-color 480ms ease,
              color 480ms ease, box-shadow 480ms ease, fill 480ms ease !important;
}

























/*=======================================
   SPACES.CSS
=======================================*/
/* ============================================================
   Tweaklr — Spaces
   spaces.css
   Six natures, six environments. Tokens are overridden per
   nature, but so are header, card, motion and type treatment.
   Loaded after style.css; adds only, overrides nothing global.
   ============================================================ */

/* ---------- 1. Spaces index ---------- */
.sp-tile {
  display: block;
  width: calc(100% - 36px);
  margin: 0 18px 12px;
  text-align: left;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast) var(--ease);
}
.sp-tile:active { transform: scale(.985); }
.sp-tile .cover { height: 74px; position: relative; }
.sp-tile .cover .nature {
  position: absolute;
  left: 12px; bottom: 10px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(6px);
  color: #2B211B;
}
.sp-tile .info { padding: 13px 15px 15px; }
.sp-tile .info .n { font-size: 16px; font-weight: 600; letter-spacing: -.024em; }
.sp-tile .info .d { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.sp-tile .info .f { margin-top: 11px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.stack-avs { display: inline-flex; }
.stack-avs .av { margin-left: -9px; box-shadow: 0 0 0 2px var(--surface); }
.stack-avs .av:first-child { margin-left: 0; }

/* ---------- 2. Create wizard ---------- */
.wz-progress {
  display: flex;
  gap: 4px;
  padding: 0 18px 14px;
}
.wz-progress i {
  flex: 1 1 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(73, 50, 36, .12);
  overflow: hidden;
}
.wz-progress i.on { background: var(--coffee-dark); }
.wz-step { padding: 6px 18px 0; animation: wzIn 260ms var(--ease-out) both; }
@keyframes wzIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wz-step.back { animation-name: wzInBack; }
@keyframes wzInBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.wz-step h2 { font-size: 23px; font-weight: 640; letter-spacing: -.032em; line-height: 1.2; }
.wz-step .lede { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.5; max-width: 34ch; }
.wz-foot {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(14px + var(--safe-b));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.wz-foot .btn { flex: 1 1 0; }
.wz-foot .btn--back { flex: 0 0 auto; width: 52px; padding: 0; }

.nature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 20px; }
.nature-card {
  position: relative;
  text-align: left;
  padding: 15px 14px 16px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  background: var(--surface);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast);
}
.nature-card:active { transform: scale(.975); }
.nature-card[aria-pressed="true"] { border-color: var(--coffee-dark); }
.nature-card .swatch {
  height: 42px;
  margin: -15px -14px 12px;
  border-bottom: 1px solid var(--border);
}
.nature-card .t { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.nature-card .s { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.nature-card .tick {
  position: absolute; right: 10px; top: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--coffee-dark); color: #fff;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.6);
  transition: all var(--t-fast) var(--ease-out);
}
.nature-card .tick svg { width: 12px; height: 12px; }
.nature-card[aria-pressed="true"] .tick { opacity: 1; transform: none; }

.choice {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; text-align: left;
  padding: 14px 15px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  margin-bottom: 10px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast);
}
.choice:active { transform: scale(.99); }
.choice[aria-pressed="true"] { border-color: var(--coffee-dark); background: var(--surface); }
.choice .radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex: 0 0 auto; margin-top: 2px;
  display: grid; place-items: center;
}
.choice[aria-pressed="true"] .radio { border-color: var(--coffee-dark); }
.choice[aria-pressed="true"] .radio::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coffee-dark);
}
.choice .tx .t { font-size: 14.5px; font-weight: 560; }
.choice .tx .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

.toggle-row {
  display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
}
.toggle-row .tx { flex: 1 1 auto; }
.toggle-row .tx .t { font-size: 14.5px; font-weight: 540; }
.toggle-row .tx .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sw {
  width: 46px; height: 28px; border-radius: 14px;
  background: rgba(73, 50, 36, .16);
  position: relative; flex: 0 0 auto;
  transition: background var(--t-fast) var(--ease);
}
.sw::after {
  content: ""; position: absolute;
  top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t) var(--ease-out);
}
[aria-pressed="true"] > .sw { background: var(--coffee-dark); }
[aria-pressed="true"] > .sw::after { transform: translateX(18px); }

.review-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.review-row .k { color: var(--muted); }
.review-row .v { font-weight: 550; text-align: right; }

/* ---------- 3. Invitation ---------- */
.code-card {
  margin-top: 18px;
  padding: 22px 18px;
  border-radius: var(--r-xl);
  text-align: center;
  background: linear-gradient(160deg, #FFFDF9, #F2E9DE);
  border: 1px solid var(--border);
}
[data-theme="dark"] .code-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
}
.code-card .lbl { font-size: 12px; color: var(--muted); }
.code {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 620;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--coffee-dark);
}
.code-card .meta { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- 4. Space shell ---------- */
.sp {
  background: var(--bg);
  color: var(--text);
}
.sp .sp-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: calc(58px + var(--safe-b) + 24px);
}
.sp-head { flex: 0 0 auto; position: relative; }
.sp-bar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 12px) 14px 10px;
}
.sp-bar .back { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: inherit; }
.sp-bar .back:active { background: rgba(127, 127, 127, .14); }
.sp-bar .ttl { flex: 1 1 auto; min-width: 0; }
.sp-bar .ttl .n { font-size: 16.5px; font-weight: 600; letter-spacing: -.024em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-bar .ttl .m { font-size: 11.5px; opacity: .62; }
.sp-bar .ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: inherit; }
.sp-bar .ic svg { width: 20px; height: 20px; }
.sp-bar .ic:active { background: rgba(127, 127, 127, .14); }

.sp-tabs {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex;
  padding: 5px 6px calc(5px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 20;
}
.sp-tabs button {
  flex: 1 1 0; min-height: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10px; font-weight: 520;
  color: var(--muted);
  border-radius: 12px;
  transition: color var(--t-fast), transform var(--t-fast);
}
.sp-tabs button:active { transform: scale(.93); }
.sp-tabs button svg { width: 20px; height: 20px; }
.sp-tabs button.on { color: var(--text); font-weight: 620; }

.sp-sec { padding: 20px 16px 0; }
.sp-sec > h3 {
  font-size: 15px; font-weight: 600; letter-spacing: -.02em;
  margin-bottom: 11px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.sp-sec > h3 span { font-size: 12px; font-weight: 450; color: var(--muted); }
.sp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 15px;
  margin-bottom: 10px;
}
.sp-empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 22px 18px;
  text-align: center;
}
.sp-empty p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.sp-empty .btn { margin-top: 14px; }

.mrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.mrow .m { flex: 1 1 auto; min-width: 0; }
.mrow .m .n { font-size: 14.5px; font-weight: 545; }
.mrow .m .s { font-size: 12px; color: var(--muted); }
.role {
  font-size: 10.5px; font-weight: 620;
  padding: 4px 9px; border-radius: var(--r-full);
  background: rgba(127, 127, 127, .14);
}

/* ---------- 5. BUSINESS — dark, structured, restrained ---------- */
.sp[data-nature="business"] {
  --bg: #12151A;
  --surface: #1A1E25;
  --surface-2: #232830;
  --text: #E7EAEE;
  --muted: #8D97A5;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);
  --accent: #C5A572;
  background: linear-gradient(180deg, #171B21 0%, #12151A 220px);
}
.sp[data-nature="business"] .sp-head {
  border-bottom: 1px solid var(--border);
  background: rgba(20, 24, 30, .8);
  backdrop-filter: blur(16px);
}
.sp[data-nature="business"] .biz-metrics {
  display: flex;
  border-top: 1px solid var(--border);
}
.sp[data-nature="business"] .biz-metrics div {
  flex: 1 1 0; padding: 11px 14px;
}
.sp[data-nature="business"] .biz-metrics div + div { border-left: 1px solid var(--border); }
.sp[data-nature="business"] .biz-metrics .v {
  font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.sp[data-nature="business"] .biz-metrics .k { font-size: 11px; color: var(--muted); margin-top: 2px; }
.sp[data-nature="business"] .sp-card { border-radius: 10px; }
.sp[data-nature="business"] .sp-card.pinned { border-left: 2px solid var(--accent); }
.sp[data-nature="business"] .task {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  width: 100%; text-align: left;
}
.sp[data-nature="business"] .task .box {
  width: 18px; height: 18px; border-radius: 5px; margin-top: 2px;
  border: 1.5px solid var(--border-strong); flex: 0 0 auto;
  display: grid; place-items: center;
}
.sp[data-nature="business"] .task .box svg { width: 11px; height: 11px; opacity: 0; color: #12151A; }
.sp[data-nature="business"] .task[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.sp[data-nature="business"] .task[aria-pressed="true"] .box svg { opacity: 1; }
.sp[data-nature="business"] .task[aria-pressed="true"] .t { color: var(--muted); text-decoration: line-through; }
.sp[data-nature="business"] .task .t { font-size: 14px; }
.sp[data-nature="business"] .task .s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.sp[data-nature="business"] .role { background: rgba(197, 165, 114, .16); color: var(--accent); }
.sp[data-nature="business"] .btn--primary { background: var(--accent); color: #14171C; }
.sp[data-nature="business"] .btn--soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.sp[data-nature="business"] .audit {
  font-size: 12.5px; color: var(--muted);
  padding: 9px 0 9px 16px; position: relative;
  border-left: 1px solid var(--border); margin-left: 4px;
}
.sp[data-nature="business"] .audit::before {
  content: ""; position: absolute; left: -3.5px; top: 15px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong);
}
.sp[data-nature="business"] .audit b { color: var(--text); font-weight: 550; }

/* ---------- 6. FRIENDLY — warm, photographic, expressive ---------- */
.sp[data-nature="friendly"] {
  --accent: #B5644A;
  background: var(--bg);
}
.sp[data-nature="friendly"] .sp-cover {
  height: 132px; position: relative;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}
.sp[data-nature="friendly"] .sp-bar { position: absolute; inset: 0 0 auto 0; color: #FFF8F0; }
.sp[data-nature="friendly"] .sp-bar .ttl .m { opacity: .85; }
.sp[data-nature="friendly"] .friend-strip {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 16px 16px 4px;
}
.sp[data-nature="friendly"] .friend-strip button { flex: 0 0 auto; text-align: center; width: 66px; }
.sp[data-nature="friendly"] .friend-strip .nm { font-size: 11.5px; margin-top: 6px; }
.sp[data-nature="friendly"] .moment {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 12px;
}
.sp[data-nature="friendly"] .moment .art { height: 150px; display: flex; align-items: flex-end; padding: 12px; }
.sp[data-nature="friendly"] .moment .cap { padding: 12px 14px 14px; font-size: 14px; line-height: 1.45; }
.sp[data-nature="friendly"] .reacts { display: flex; gap: 7px; padding: 0 14px 13px; flex-wrap: wrap; }
.sp[data-nature="friendly"] .react {
  min-height: 34px; padding: 0 12px; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 540;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.sp[data-nature="friendly"] .react:active { transform: scale(.9); }
.sp[data-nature="friendly"] .react.on { background: var(--coffee-dark); color: #FBF6F0; border-color: transparent; }
.poll { margin-top: 4px; }
.poll button {
  display: block; width: 100%; text-align: left;
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px;
  font-size: 14px;
  background: var(--surface);
}
.poll button .fill {
  position: absolute; inset: 0 auto 0 0;
  background: rgba(127, 127, 127, .12);
  transition: width var(--t-slow) var(--ease-out);
}
.poll button .lb { position: relative; display: flex; justify-content: space-between; gap: 10px; }
.poll button.picked { border-color: var(--coffee-dark); font-weight: 560; }

/* ---------- 7. CASUAL — light, quick, location-aware ---------- */
.sp[data-nature="casual"] {
  --bg: #F6F8F7;
  --surface: #FFFFFF;
  --surface-2: #EDF2F0;
  --text: #17211D;
  --muted: #6F7D77;
  --border: rgba(23, 33, 29, .10);
  --border-strong: rgba(23, 33, 29, .2);
  --accent: #14785C;
}
.sp[data-nature="casual"] .sp-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.sp[data-nature="casual"] .live-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px 12px;
  font-size: 12.5px; color: var(--muted);
}
.sp[data-nature="casual"] .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(20, 120, 92, .5);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  70% { box-shadow: 0 0 0 9px rgba(20, 120, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 120, 92, 0); }
}
.sp[data-nature="casual"] .sp-card { border-radius: 14px; box-shadow: 0 1px 2px rgba(23, 33, 29, .05); }
.sp[data-nature="casual"] .ephem {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 550; color: var(--accent);
  background: rgba(20, 120, 92, .1);
  padding: 4px 9px; border-radius: var(--r-full);
}
.sp[data-nature="casual"] .dist-chip {
  font-size: 11.5px; color: var(--muted);
  background: var(--surface-2); padding: 4px 9px; border-radius: var(--r-full);
}
.sp[data-nature="casual"] .btn--primary { background: var(--accent); color: #fff; }
.sp[data-nature="casual"] .btn--soft { background: var(--surface-2); color: var(--text); border-color: transparent; }

/* ---------- 8. SILLY — off-grid, loud, deliberately odd ---------- */
.sp[data-nature="silly"] {
  --bg: #FFF7E8;
  --surface: #FFFFFF;
  --surface-2: #FFEFC9;
  --text: #211A12;
  --muted: #8A7A5E;
  --border: rgba(33, 26, 18, .16);
  --border-strong: rgba(33, 26, 18, .32);
  --accent: #FF5A36;
  background:
    radial-gradient(420px 260px at 88% -8%, rgba(255, 90, 54, .18), transparent 70%),
    radial-gradient(360px 240px at 0% 100%, rgba(86, 160, 255, .2), transparent 70%),
    #FFF7E8;
}
.sp[data-nature="silly"] .sp-bar .ttl .n {
  font-weight: 800; letter-spacing: -.045em; font-size: 18px;
}
.sp[data-nature="silly"] .prompt {
  margin: 4px 16px 0;
  border: 2.5px solid var(--text);
  border-radius: 18px;
  background: var(--surface);
  padding: 20px 18px;
  box-shadow: 6px 6px 0 var(--text);
  transform: rotate(-1.2deg);
}
.sp[data-nature="silly"] .prompt .k { font-size: 12px; font-weight: 700; color: var(--accent); }
.sp[data-nature="silly"] .prompt h4 {
  margin: 8px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15;
}
.sp[data-nature="silly"] .sp-card {
  border: 2px solid var(--text); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--text);
}
.sp[data-nature="silly"] .sp-card:nth-child(even) { transform: rotate(.8deg); }
.sp[data-nature="silly"] .sp-card:nth-child(odd) { transform: rotate(-.6deg); }
.sp[data-nature="silly"] .stickers { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 16px; }
.sp[data-nature="silly"] .sticker {
  width: 54px; height: 54px; border-radius: 16px;
  border: 2px solid var(--text);
  background: var(--surface);
  display: grid; place-items: center;
  font-size: 24px;
  box-shadow: 3px 3px 0 var(--text);
  transition: transform 140ms var(--ease);
}
.sp[data-nature="silly"] .sticker:active { transform: scale(1.18) rotate(-8deg); }
.sp[data-nature="silly"] .sticker.pop { animation: pop 420ms var(--ease-out); }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}
.sp[data-nature="silly"] .btn--primary { background: var(--accent); color: #fff; border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--text); }
.sp[data-nature="silly"] .btn--soft { background: var(--surface); border: 2px solid var(--text); color: var(--text); }
.sp[data-nature="silly"] .scoreline {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 9px 0;
  border-bottom: 2px dotted var(--border-strong);
}
.sp[data-nature="silly"] .scoreline b { font-weight: 800; }
.sp[data-nature="silly"] .sp-tabs { background: var(--surface); border-top: 2px solid var(--text); }

/* ---------- 9. ROMANTIC — dark, warm, quiet ---------- */
.sp[data-nature="romantic"] {
  --bg: #17100F;
  --surface: rgba(255, 246, 240, .045);
  --surface-2: rgba(255, 246, 240, .08);
  --text: #F2E3DA;
  --muted: #A38C81;
  --border: rgba(242, 227, 218, .11);
  --border-strong: rgba(242, 227, 218, .22);
  --accent: #C98B6B;
  background:
    radial-gradient(520px 340px at 50% -10%, rgba(180, 96, 72, .26), transparent 72%),
    radial-gradient(400px 300px at 10% 105%, rgba(112, 60, 76, .3), transparent 70%),
    #17100F;
}
.sp[data-nature="romantic"] .sp-head { background: transparent; }
.sp[data-nature="romantic"] .rom-hero { padding: 6px 24px 4px; text-align: center; }
.sp[data-nature="romantic"] .rom-hero h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 30px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2;
}
.sp[data-nature="romantic"] .rom-hero p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.sp[data-nature="romantic"] .sp-sec > h3 {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 400; font-size: 17px;
}
.sp[data-nature="romantic"] .sp-card {
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(4px);
  padding: 17px 18px;
}
.sp[data-nature="romantic"] .memory {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.sp[data-nature="romantic"] .memory .when {
  font-size: 11.5px; color: var(--muted); width: 56px; flex: 0 0 auto; padding-top: 2px;
}
.sp[data-nature="romantic"] .memory .tx { font-size: 14.5px; line-height: 1.55; }
.sp[data-nature="romantic"] .milestone {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 0; font-size: 14px;
}
.sp[data-nature="romantic"] .milestone .d {
  font-family: Georgia, serif; font-size: 20px; color: var(--accent); min-width: 42px;
}
.sp[data-nature="romantic"] .btn--primary { background: var(--accent); color: #1B1210; }
.sp[data-nature="romantic"] .btn--soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.sp[data-nature="romantic"] .sp-tabs { background: rgba(23, 16, 15, .86); }
.sp[data-nature="romantic"] .privacy-seal {
  margin: 18px 16px 0; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: 16px;
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.sp[data-nature="romantic"] .privacy-seal svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }

/* Romantic Space — polished love actions and sealed letters only. */
.sp[data-nature="romantic"] .rom-love-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 16px 20px;
}
.sp[data-nature="romantic"] .rom-love-actions .btn {
  min-height: 46px;
  border-radius: 15px;
  font-weight: 650;
  letter-spacing: .01em;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.sp[data-nature="romantic"] .rom-love-actions .btn--primary {
  background: linear-gradient(135deg, #F0B8C5, #C97991);
  color: #32151F;
  border: 1px solid rgba(255,225,232,.28);
}
.sp[data-nature="romantic"] .rom-love-actions .btn--soft {
  border-color: rgba(220,151,169,.26);
  background: linear-gradient(135deg, rgba(207,119,145,.14), rgba(255,238,230,.045));
}
.sp[data-nature="romantic"] .rom-letter {
  margin-bottom: 12px;
  padding: 20px;
  border: 1px solid rgba(219,151,169,.19);
  background: linear-gradient(145deg, rgba(209,119,146,.10), rgba(255,246,240,.035) 72%);
}
.sp[data-nature="romantic"] .rom-letter__eyebrow,
.sp[data-nature="romantic"] .rom-love-note > span {
  display: block;
  color: #D99AAA;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
  margin-bottom: 10px;
}
.sp[data-nature="romantic"] .rom-letter h4 {
  color: var(--text);
  font: 400 22px/1.25 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.sp[data-nature="romantic"] .rom-letter p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.75;
  color: #F2E3DA;
}
.sp[data-nature="romantic"] .rom-letter__foot {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  margin-top: 18px;
  padding-top: 12px;
}
.sp[data-nature="romantic"] .rom-love-note {
  margin-bottom: 10px;
  border-color: rgba(219,151,169,.2);
  background: linear-gradient(135deg, rgba(207,119,145,.12), rgba(255,246,240,.035));
}
.sp[data-nature="romantic"] .rom-love-note p {
  font: 400 20px/1.35 "Iowan Old Style", Palatino, Georgia, serif;
  margin: 0 0 8px;
}
.sp[data-nature="romantic"] .rom-love-note small {
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 380px) {
  .sp[data-nature="romantic"] .rom-love-actions { grid-template-columns: 1fr; }
}
 
/* ---------- 10. MARKETPLACE — clean, structured, trust-forward ---------- */
.sp[data-nature="marketplace"] {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #EDEFF2;
  --text: #16191D;
  --muted: #6C737D;
  --border: rgba(22, 25, 29, .10);
  --border-strong: rgba(22, 25, 29, .2);
  --accent: #1E5F44;
}
.sp[data-nature="marketplace"] .sp-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.sp[data-nature="marketplace"] .sp-card { border-radius: 12px; }
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 0 16px; }
.mk-prod {
  text-align: left; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform var(--t-fast) var(--ease);
}
.mk-prod:active { transform: scale(.98); }
.mk-prod .art { height: 110px; position: relative; }
.mk-prod .art .cond {
  position: absolute; left: 8px; top: 8px;
  font-size: 10.5px; font-weight: 600; padding: 3px 8px;
  border-radius: var(--r-full); background: rgba(255, 255, 255, .92);
}
.mk-prod .b { padding: 10px 11px 12px; }
.mk-prod .b .n { font-size: 13.5px; font-weight: 550; line-height: 1.3; }
.mk-prod .b .p { font-size: 15px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; }
.mk-prod .b .s { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.trust {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 550;
  padding: 3px 8px; border-radius: var(--r-full);
  background: rgba(30, 95, 68, .1); color: var(--accent);
}
.trust.warn { background: rgba(176, 106, 20, .12); color: #8A5310; }
.trust svg { width: 12px; height: 12px; }
.sp[data-nature="marketplace"] .btn--primary { background: var(--accent); color: #fff; }
.sp[data-nature="marketplace"] .btn--soft { background: var(--surface-2); color: var(--text); border-color: transparent; }

/* escrow timeline */
.flow { margin-top: 6px; }
.flow-step {
  display: flex; gap: 13px; align-items: flex-start;
  padding-bottom: 14px; position: relative;
}
.flow-step::before {
  content: ""; position: absolute;
  left: 8px; top: 20px; bottom: 0; width: 1px;
  background: var(--border-strong);
}
.flow-step:last-child::before { display: none; }
.flow-step .node {
  width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface); flex: 0 0 auto; z-index: 1;
  display: grid; place-items: center;
}
.flow-step .node svg { width: 9px; height: 9px; opacity: 0; color: #fff; }
.flow-step.done .node { background: var(--accent); border-color: var(--accent); }
.flow-step.done .node svg { opacity: 1; }
.flow-step.current .node { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30, 95, 68, .13); }
.flow-step .tx .t { font-size: 13.5px; font-weight: 545; }
.flow-step.pendingstep .tx .t { color: var(--muted); font-weight: 450; }
.flow-step .tx .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.state-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--text);
}
.state-pill.held { background: rgba(30, 95, 68, .12); color: var(--accent); }
.state-pill.disputed { background: rgba(150, 40, 50, .12); color: #962832; }
.state-pill.done { background: rgba(30, 95, 68, .16); color: var(--accent); }
.state-pill.cancelled { background: rgba(22, 25, 29, .08); color: var(--muted); }

/* ---------- 11. Wallet ---------- */
.wallet-shell {
  --bg: #101418;
  --surface: #191E24;
  --surface-2: #232A32;
  --text: #E9EDF1;
  --muted: #8A93A0;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, #161B21, #101418 260px);
  color: var(--text);
}
.wallet-shell .topbar { background: transparent; backdrop-filter: none; color: var(--text); }
.wallet-shell .topbar .icon-btn { color: var(--text); }
.dev-banner {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(214, 150, 40, .12);
  border: 1px solid rgba(214, 150, 40, .3);
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.5; color: #E6C384;
}
.dev-banner svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.asset {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.asset .sym {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: var(--surface-2);
  flex: 0 0 auto;
}
.asset .m { flex: 1 1 auto; }
.asset .m .n { font-size: 14.5px; font-weight: 560; }
.asset .m .s { font-size: 11.5px; color: var(--muted); }
.asset .amt { text-align: right; font-variant-numeric: tabular-nums; }
.asset .amt .v { font-size: 15px; font-weight: 600; }
.asset .amt .s { font-size: 11.5px; color: var(--muted); }
.ledger-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.ledger-row .m { flex: 1 1 auto; min-width: 0; }
.ledger-row .m .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ledger-row .v { font-variant-numeric: tabular-nums; font-weight: 560; }
.ledger-row .v.out { color: #D98A8A; }
.ledger-row .v.in { color: #7FC4A0; }

/* ---------- 12. Shared small parts ---------- */
.seg {
  display: flex; gap: 4px;
  background: var(--surface-2);
  padding: 4px; border-radius: var(--r-full);
  margin: 0 16px;
}
.seg button {
  flex: 1 1 0; min-height: 36px;
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 540;
  color: var(--muted);
}
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

.evidence-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.evidence-item .who { color: var(--muted); font-size: 11.5px; }

@media (prefers-reduced-motion: reduce) {
  .wz-step, .sp[data-nature="silly"] .sticker.pop { animation: none !important; }
}


























/*=======================================
   MOONFLOWER.CSS
=======================================*/
/* ============================================================
   Tweaklr — Moonflower
   moonflower.css  ·  the private lunar environment.
   Scoped entirely to `.moon` — nothing here touches Tweaklr proper.
   ============================================================ */

/* ---------- palette ----------
   .moon carries the light/day atmosphere by default — evolved from
   Tweaklr's own warm palette, per the brief, not a generic light theme.
   [data-theme="dark"] .moon carries the night/moon atmosphere.
   Both sides only ever redefine variables; every rule below reads
   through them, so nothing else in this file needs a dark variant. */
.moon {
  --m-space: #F7EEE0;
  --m-bg-rgb: 247, 238, 224;
  --m-ink-rgb: 176, 134, 72;    /* warm celestial gold, used at low alpha for glows/borders/tints */
  --m-ink2-rgb: 158, 112, 56;
  --m-grey: #A9977C;
  --m-light: #C9863E;
  --m-silver: #B79A6C;
  --m-oncolor: #3B2A1C;         /* ink placed on top of the bright accent */
  --bg: var(--m-space);
  --surface: rgba(var(--m-ink-rgb), .05);
  --surface-2: rgba(var(--m-ink-rgb), .09);
  --text: #3B2C1E;
  --muted: #8A7862;
  --border: rgba(var(--m-ink-rgb), .16);
  --coffee: #B08A4E;
  --coffee-dark: #6B4A2A;
  --coffee-light: #A9876A;
  background: var(--m-space) !important;
  color: var(--text);
  overflow: hidden;
}
[data-theme="dark"] .moon {
  --m-space: #02030A;
  --m-bg-rgb: 2, 3, 10;
  --m-ink-rgb: 221, 226, 234;
  --m-ink2-rgb: 191, 197, 208;
  --m-grey: #8F929B;
  --m-light: #DDE2EA;
  --m-silver: #BFC5D0;
  --m-oncolor: #10131C;
  --surface: rgba(var(--m-ink-rgb), .06);
  --surface-2: rgba(var(--m-ink-rgb), .1);
  --text: #EDEFF4;
  --muted: #9CA1AE;
  --border: rgba(var(--m-ink-rgb), .12);
  --coffee: #C7CCDA;
  --coffee-dark: #DDE2EA;
  --coffee-light: #8F929B;
}

/* the eclipse is a night-only event: a brief, warm-tinted hush over
   the glass surfaces at its peak, cleared automatically afterward */
.moon.is-eclipse .moon-glass,
.moon.is-eclipse .moon-tile,
.moon.is-eclipse .orbit-goal,
.moon.is-eclipse .log-composer,
.moon.is-eclipse .log-entry {
  transition: box-shadow 1.4s ease, border-color 1.4s ease;
  border-color: rgba(255, 246, 232, .22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 0 30px -10px rgba(255, 246, 232, .18);
}

.moon .msky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: mskyIn 900ms ease-out forwards;
}
@keyframes mskyIn { to { opacity: 1; } }

.moon .topbar,
.moon .scroll,
.moon .thread,
.moon .composer,
.moon .fab,
.moon .nav { position: relative; z-index: 1; }

.moon .topbar { background: transparent; backdrop-filter: none; border-bottom: none; }
.moon .topbar.is-scrolled { border-bottom-color: var(--border); background: rgba(var(--m-bg-rgb),.5); backdrop-filter: blur(10px); }
.moon .icon-btn { color: var(--text); }
.moon .icon-btn:active { background: rgba(var(--m-ink-rgb),.08); }
.moon .back-btn svg, .moon .topbar-title { color: var(--text); }

/* ---------- glass primitive ---------- */
.moon-glass {
  background: linear-gradient(155deg, rgba(var(--m-ink-rgb),.07), rgba(var(--m-ink-rgb),.03));
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -28px rgba(0,0,0,.7);
}

/* ---------- home ---------- */
.moon-hero { padding: 8px 22px 6px; text-align: left; position: relative; z-index: 1; }
.moon-hero .mark { display: none; } /* the real moon lives in the canvas now */
.moon-hero .eyebrow {
  font-size: 11px; letter-spacing: .1em; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.moon-hero .eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--m-light);
  box-shadow: 0 0 8px 1px rgba(var(--m-ink-rgb),.7);
  animation: mdotPulse 3.2s ease-in-out infinite;
}
@keyframes mdotPulse { 50% { opacity: .35; } }
.moon-hero h1 {
  margin-top: 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 28px; font-weight: 400; letter-spacing: -.01em; line-height: 1.22;
  color: var(--m-light);
}
.moon-hero p { margin-top: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 30ch; }

.moon-feel {
  margin: 18px 18px 0;
  display: block;
  width: calc(100% - 36px);
  text-align: left;
  padding: 15px 17px;
  position: relative; z-index: 1;
}
.moon-feel .q { font-size: 13px; color: var(--muted); }
.moon-feel .a {
  margin-top: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15.5px; font-weight: 500; color: var(--m-light);
}
.moon-feel .a svg { width: 17px; height: 17px; color: var(--muted); }

.moon-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 11px;
  padding: 22px 18px 0; position: relative; z-index: 1;
}
.moon-tile {
  text-align: left; padding: 17px 15px 16px;
  min-height: 118px; display: flex; flex-direction: column;
  transition: transform 200ms ease, background 200ms ease;
  position: relative; overflow: hidden;
}
.moon-tile:active { transform: translateY(-2px) scale(.98); background: rgba(var(--m-ink-rgb),.1); }
.moon-tile .ic { color: var(--m-silver); margin-bottom: auto; }
.moon-tile .ic svg { width: 20px; height: 20px; }
.moon-tile .t { font-size: 15px; font-weight: 540; letter-spacing: -.015em; margin-top: 14px; color: var(--text); }
.moon-tile .s { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.moon-tile::after {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--m-ink-rgb),.09), transparent 70%);
}

.moon-quiet {
  margin: 20px 18px 0; padding: 15px 17px;
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
  border: 1px dashed rgba(var(--m-ink-rgb),.16); border-radius: 16px;
  position: relative; z-index: 1;
}

/* ---------- room shell ---------- */
.moon #moonroom-scroll { position: relative; z-index: 1; }
.moon .center-note { color: var(--muted); }

/* ---------- talk ---------- */
/* ---------- talk: native intents, not a command menu ---------- */
.moon-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 14px 16px 4px; position: relative; z-index: 1;
}
.moon-chip {
  flex: 0 0 auto; min-height: 34px; padding: 0 13px;
  border-radius: 999px; font-size: 12.5px; font-weight: 540;
  color: var(--text);
  background: rgba(var(--m-ink-rgb), .07);
  border: 1px solid var(--border);
  transition: background 150ms ease, transform 150ms ease;
}
.moon-chip:active { transform: scale(.94); background: rgba(var(--m-ink-rgb), .14); }

.moon .bub.them {
  background: linear-gradient(155deg, rgba(var(--m-ink-rgb),.08), rgba(var(--m-ink-rgb),.03));
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(14px);
}
.moon .bub.me {
  background: linear-gradient(155deg, rgba(var(--m-ink-rgb),.92), rgba(var(--m-ink2-rgb),.86));
  color: var(--m-oncolor);
}
.moon .bub .time { opacity: .55; }
.moon .composer {
  background: rgba(var(--m-bg-rgb),.55);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.moon .composer textarea {
  background: rgba(var(--m-ink-rgb),.06);
  border-color: var(--border);
  color: var(--text);
}
.moon .composer textarea::placeholder { color: var(--muted); }
.moon .send { background: var(--m-light); color: var(--m-oncolor); }

/* ---------- my journey: orbital trajectories ---------- */
.orbit-goal {
  margin: 0 16px 14px; padding: 17px 17px 15px; position: relative; z-index: 1;
}
.orbit-goal .t { font-size: 15px; font-weight: 540; color: var(--text); }
.orbit-goal .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.orbit-goal svg.track { display: block; width: 100%; height: 56px; margin-top: 10px; overflow: visible; }
.orbit-goal .track-path { fill: none; stroke: rgba(var(--m-ink-rgb),.16); stroke-width: 1.5; stroke-dasharray: 3 5; }
.orbit-goal .track-fill { fill: none; stroke: var(--m-light); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(var(--m-ink-rgb),.5)); transition: stroke-dashoffset 700ms ease; }
.orbit-goal .track-node { fill: rgba(var(--m-ink-rgb),.35); }
.orbit-goal .track-cur {
  fill: var(--m-light);
  filter: drop-shadow(0 0 6px rgba(var(--m-ink-rgb),.9));
}
.orbit-goal .track-target { fill: none; stroke: var(--m-silver); stroke-width: 1.4; }
.orbit-goal .steps { margin-top: 6px; }

/* ---------- my space: personal constellation ---------- */
.constellation {
  position: relative; height: 128px; margin: 4px 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: radial-gradient(120px 90px at 70% 20%, rgba(var(--m-ink-rgb),.05), transparent 70%);
  overflow: hidden;
}
.constellation .cstar {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--m-light);
  box-shadow: 0 0 8px 2px rgba(var(--m-ink-rgb),.55);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
}
.constellation .cstar::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(var(--m-ink-rgb),.25); opacity: 0;
  transition: opacity 160ms ease;
}
.constellation .cstar:active::after { opacity: 1; }
.constellation .cempty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted); text-align: center; padding: 0 20px;
}

.log-composer { margin: 0 16px 8px; padding: 17px 17px 15px; position: relative; z-index: 1; }
.log-composer .date { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.log-composer h4 {
  margin-top: 6px; font-size: 15.5px; font-weight: 460; color: var(--m-light);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}
.log-composer textarea {
  width: 100%; margin-top: 12px; min-height: 72px; max-height: 160px;
  background: rgba(var(--m-ink-rgb),.05); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 13px; font-size: 14.5px; line-height: 1.55; color: var(--text); resize: none; outline: none;
}
.log-composer textarea::placeholder { color: var(--muted); }
.log-composer textarea:focus { border-color: rgba(var(--m-ink-rgb),.35); background: rgba(var(--m-ink-rgb),.08); }
.log-composer .row { display: flex; justify-content: flex-end; margin-top: 10px; }
.log-composer .row button {
  font-size: 13px; font-weight: 540; color: var(--m-light);
  padding: 9px 4px; opacity: .5; transition: opacity 150ms;
}
.log-composer .row button:not([disabled]) { opacity: 1; }

.log-entry { margin: 0 16px 10px; padding: 15px 16px; position: relative; z-index: 1; }
.log-entry .d { font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.log-entry p { margin-top: 7px; font-size: 14px; line-height: 1.6; color: var(--text); }
.log-entry .del { margin-top: 10px; }

/* ---------- reminders: orbit strip ---------- */
.orbit-strip {
  margin: 6px 16px 6px; height: 58px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.orbit-strip svg { width: 100%; height: 58px; overflow: visible; }
.orbit-strip .ring { fill: none; stroke: rgba(var(--m-ink-rgb),.14); stroke-width: 1; }
.orbit-strip .body { transition: opacity 200ms; }
.orbit-strip .body.done { opacity: .35; }
.orbit-strip .body circle { fill: var(--m-light); filter: drop-shadow(0 0 5px rgba(var(--m-ink-rgb),.6)); }
.orbit-strip .body.done circle { fill: var(--m-grey); filter: none; }

.moon .check { color: var(--text); }
.moon .check .box { border-color: rgba(var(--m-ink-rgb),.28); }
.moon .check[aria-pressed="true"] .box { background: var(--m-light); border-color: var(--m-light); }
.moon .check[aria-pressed="true"] .box svg { color: var(--m-oncolor); }
.moon .check .when { color: var(--muted); }
.moon .check[aria-pressed="true"] .lb { color: var(--muted); }

/* ---------- shared empty state on dark ---------- */
.moon .empty .mark { border-color: rgba(var(--m-ink-rgb),.2); }
.moon .empty .mark::after { background: rgba(var(--m-ink-rgb),.06); }
.moon .empty h3 { color: var(--text); }
.moon .empty p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .moon .msky { animation: none; opacity: 1; }
  .moon-hero .eyebrow .dot { animation: none; }
}


/* ============================================================
   TWEAKLR CHAT INTERACTIONS
============================================================ */
.chat-message-row {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 180ms ease;
}
.chat-message-row.is-swiping {
  transition: none;
}
.chat-message-row.is-replying {
  animation: chatReplyPulse 420ms ease;
}
.chat-message-row.is-replying .chat-bubble {
  animation: chatReplyGlow 1.2s ease-out;
}
.chat-bubble {
  cursor: pointer;
}
.chat-bubble__reply {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  border: 0;
  cursor: pointer;
  display: block;
  margin: -2px -2px 7px;
  padding: 6px 8px;
  border-left: 3px solid rgba(241,210,174,.65);
  border-radius: 8px;
  background: rgba(0,0,0,.13);
  font-size: 11px;
  line-height: 1.3;
  opacity: .85;
}
.chat-bubble__reply strong {
  display:block;
  font-size:10px;
  opacity:.72;
  margin-bottom:2px;
}
.chat-reactions {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:5px;
}
.chat-reaction {
  border:1px solid rgba(241,210,174,.22);
  background:rgba(255,255,255,.10);
  border-radius:999px;
  padding:2px 7px;
  font-size:12px;
  line-height:1.2;
}
.chat-reply-preview {
  margin:0 12px 6px;
  padding:8px 10px;
  border-left:3px solid var(--coffee-dark, #6f432c);
  border-radius:10px;
  background:rgba(111,67,44,.08);
  font-size:12px;
}
.chat-reply-preview strong { display:block; font-size:10px; opacity:.65; }
.chat-reply-preview button {
  float:right;
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
}
.chat-action-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.chat-action-grid button {
  min-height:58px;
  border:1px solid rgba(111,67,44,.12);
  border-radius:14px;
  background:rgba(111,67,44,.06);
  color:var(--coffee);
  cursor:pointer;
  font-size:12px;
}
.tw-action-edit::before {
  width:4px;height:15px;left:9px;top:3px;
  border:1.7px solid currentColor;border-radius:2px;
  transform:rotate(42deg);
}
.tw-action-edit::after {
  width:5px;height:5px;left:5px;top:15px;
  border-left:1.7px solid currentColor;border-bottom:1.7px solid currentColor;
  transform:rotate(-8deg);
}
.tw-action-select::before {
  width:15px;height:15px;left:3px;top:3px;
  border:1.7px solid currentColor;border-radius:3px;
}
.tw-action-select::after {
  width:8px;height:4px;left:7px;top:8px;
  border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;
  transform:rotate(-45deg);
}
.chat-emoji-grid {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:9px;
  margin-top:12px;
}
.chat-emoji-grid button.tweaklr-emoji-btn {
  position:relative;
  min-height:62px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:19px;
  padding:8px;
  cursor:pointer;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 32% 18%, rgba(255,255,255,.62), transparent 34%),
    radial-gradient(circle at 70% 85%, rgba(139,53,67,.12), transparent 52%),
    linear-gradient(145deg, rgba(255,255,255,.28), rgba(111,67,44,.065));
  color:var(--coffee);
  box-shadow:
    0 1px 0 rgba(255,255,255,.72) inset,
    0 9px 20px rgba(30,16,10,.075),
    0 0 0 1px rgba(139,53,67,.035);
  transition:transform 170ms cubic-bezier(.2,.9,.2,1), background 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}
.tweaklr-emoji-btn::before {
  content:"";
  position:absolute;
  width:38px;
  height:38px;
  border-radius:50%;
  top:-19px;
  right:-8px;
  background:rgba(255,255,255,.18);
  filter:blur(2px);
  pointer-events:none;
}
.tweaklr-emoji-btn:hover {
  transform:translateY(-3px) scale(1.035);
  border-color:rgba(139,53,67,.22);
  box-shadow:
    0 13px 26px rgba(30,16,10,.12),
    0 0 0 1px rgba(139,53,67,.055);
}
.chat-emoji-grid button.tweaklr-emoji-btn:active {
  transform:translateY(-1px) scale(.88);
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.32), transparent 42%),
    rgba(111,67,44,.105);
  box-shadow:0 5px 13px rgba(30,16,10,.14);
}
.tweaklr-emoji {
  width:38px;
  height:38px;
  min-width:38px;
  min-height:38px;
  display:grid;
  place-items:center;
  overflow:visible;
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;
  font-size:32px;
  line-height:.9;
  font-style:normal;
  filter:drop-shadow(0 3px 2px rgba(30,16,10,.12));
  transform-origin:center;
  animation:tweaklrEmojiFloat 2.8s ease-in-out infinite;
}
.tweaklr-emoji-btn:nth-child(1) { color:#F6D98B; }
.tweaklr-emoji-btn:nth-child(2) { color:#E8C37A; }
.tweaklr-emoji-btn:nth-child(3) { color:#DDE2EA; }
.tweaklr-emoji-btn:nth-child(4) { color:#BFC5D0; }
.tweaklr-emoji-btn:nth-child(5) { color:#C9863E; }
.tweaklr-emoji-btn:nth-child(6) { color:#F2E8D5; }
.tweaklr-emoji-btn:nth-child(1),
.tweaklr-emoji-btn:nth-child(2),
.tweaklr-emoji-btn:nth-child(3),
.tweaklr-emoji-btn:nth-child(4),
.tweaklr-emoji-btn:nth-child(5),
.tweaklr-emoji-btn:nth-child(6) {
  width:100%;
  height:100%;
  object-fit:contain;
  transform-origin:center;
}
.tweaklr-emoji-btn:nth-child(1) .tweaklr-emoji,
.tweaklr-emoji-btn:nth-child(2) .tweaklr-emoji,
.tweaklr-emoji-btn:nth-child(3) .tweaklr-emoji,
.tweaklr-emoji-btn:nth-child(4) .tweaklr-emoji,
.tweaklr-emoji-btn:nth-child(5) .tweaklr-emoji,
.tweaklr-emoji-btn:nth-child(6) .tweaklr-emoji {
  width:38px;
  height:38px;
  margin:auto;
}

.chat-reaction {
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:27px;
  padding:3px 8px;
  border:1px solid rgba(139,53,67,.10);
  border-radius:999px;
  background:linear-gradient(145deg, rgba(255,255,255,.22), rgba(111,67,44,.045));
  box-shadow:0 2px 7px rgba(30,16,10,.06);
}
.chat-reaction .tweaklr-emoji {
  width:19px;
  height:19px;
  stroke-width:1.25;
  animation:none;
}
.chat-reaction b {
  font-size:10px;
  line-height:1;
  font-weight:800;
  color:var(--muted);
}
@keyframes tweaklrEmojiFloat {
  0%,100% { transform:translateY(0) rotate(-1deg); }
  50% { transform:translateY(-2px) rotate(1deg); }
}
.chat-reaction b {
  font-size:10px;
  line-height:1;
  font-weight:700;
  color:var(--muted);
}
.tw-action-icon {
  display:inline-block;
  position:relative;
  width:22px;
  height:22px;
  vertical-align:middle;
  color:var(--coffee);
}
.tw-action-icon::before,
.tw-action-icon::after {
  content:"";
  position:absolute;
  box-sizing:border-box;
}
.tw-action-reply::before {
  width:15px;height:11px;left:4px;top:5px;
  border:1.7px solid currentColor;border-radius:5px;
}
.tw-action-reply::after {
  width:7px;height:7px;left:3px;top:9px;
  border-left:1.7px solid currentColor;border-bottom:1.7px solid currentColor;
  transform:skew(-18deg) rotate(45deg);
}
.tw-action-copy::before {
  width:12px;height:14px;left:6px;top:4px;
  border:1.7px solid currentColor;border-radius:3px;
}
.tw-action-copy::after {
  width:12px;height:14px;left:3px;top:7px;
  border:1.7px solid currentColor;border-radius:3px;
  background:var(--surface);
}
.tw-action-forward::before {
  width:13px;height:1.7px;left:3px;top:11px;
  background:currentColor;transform:rotate(-28deg);
}
.tw-action-forward::after {
  width:8px;height:8px;right:2px;top:7px;
  border-top:1.7px solid currentColor;border-right:1.7px solid currentColor;
  transform:rotate(45deg);
}
.tw-action-react::before {
  width:16px;height:16px;left:3px;top:3px;
  border:1.7px solid currentColor;border-radius:50%;
}
.tw-action-react::after {
  width:7px;height:3px;left:7px;top:12px;
  border-bottom:1.7px solid currentColor;border-radius:0 0 8px 8px;
}
.tw-action-delete::before {
  width:12px;height:13px;left:5px;top:7px;
  border:1.7px solid currentColor;border-top:0;border-radius:0 0 3px 3px;
}
.tw-action-delete::after {
  width:15px;height:1.7px;left:3.5px;top:4px;
  background:currentColor;box-shadow:4px -2.5px 0 -0.2px currentColor;
}
@keyframes voicePulse {
  0%,100% { box-shadow:0 0 0 0 rgba(139,53,67,.22); }
  50% { box-shadow:0 0 0 9px rgba(139,53,67,0); }
}
@keyframes chatReplyPulse {
  50% { transform:translateX(5px); }
}
@keyframes chatReplyGlow {
  0% { box-shadow: 0 0 0 0 rgba(241,210,174,0), 0 0 0 rgba(241,210,174,0); }
  22% { box-shadow: 0 0 0 2px rgba(241,210,174,.72), 0 0 18px rgba(241,210,174,.48); }
  100% { box-shadow: 0 0 0 0 rgba(241,210,174,0), 0 0 0 rgba(241,210,174,0); }
}


@keyframes mingNotifDotGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(200,59,79,.10), 0 0 9px rgba(200,59,79,.55); }
  50% { box-shadow: 0 0 0 3px rgba(200,59,79,.16), 0 0 16px rgba(200,59,79,.88); }
}

/* ------------------------------------------------------------
   TWEAKLR NOTIFICATION POPUPS
------------------------------------------------------------ */
.ming-notification-popups {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.ming-notification-popup {
  pointer-events: auto;
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(139, 53, 67, .18);
  border-radius: 18px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 18px 45px rgba(30, 16, 10, .18), 0 0 28px rgba(139, 53, 67, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
  cursor: pointer;
  animation: mingNotifIn .34s cubic-bezier(.2,.8,.2,1);
}

.ming-notification-popup.is-leaving {
  animation: mingNotifOut .22s ease forwards;
}

.ming-notification-popup__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--coffee);
  background: radial-gradient(circle at 35% 30%, rgba(241,210,174,.52), transparent 55%), rgba(111,67,44,.09);
}

.ming-notification-popup__icon svg {
  width: 19px;
  height: 19px;
}

.ming-notification-popup__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1.28;
}

.ming-notification-popup__copy strong {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--coffee);
}

.ming-notification-popup__copy span {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ming-notification-popup__close {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

@keyframes mingNotifIn {
  from { opacity: 0; transform: translate3d(18px,-8px,0) scale(.97); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}

@keyframes mingNotifOut {
  from { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  to { opacity: 0; transform: translate3d(18px,-8px,0) scale(.97); }
}

@media (max-width: 640px) {
  .ming-notification-popups {
    top: max(10px, env(safe-area-inset-top));
    right: 12px;
    width: calc(100vw - 24px);
  }
}

/* Unread message count on the profile Messages stat */
.profile-messages-stat {
  position: relative;
}
.profile-message-unread-badge {
  position: absolute;
  top: 6px;
  right: 9px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #c83b4f;
  color: #fff;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 0 8px rgba(200,59,79,.42);
}
.profile-message-unread-badge[hidden] {
  display: none;
}


.search-result-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:16px 18px 8px}
.search-result-query{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:var(--text)}
.search-result-count,.search-group-count{color:var(--muted);font-size:11px;font-weight:600}
.search-group-count{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;background:var(--surface-2)}
/* Search people use a 46px avatar; define the matching size so photos cannot expand to their intrinsic dimensions. */
.av--46{width:46px;height:46px;font-size:16px;}
.search-person-row .meta{min-width:0}
.search-person-row .meta .s{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* Tweaklr chat attachments */
.chat-attach-btn{width:38px;height:38px;min-width:38px;border-radius:13px;display:grid;place-items:center;border:1px solid var(--border);background:var(--surface-2);color:var(--coffee)}
.chat-attach-btn svg{width:18px;height:18px}
.chat-attachment-preview{padding:7px 12px;border-top:1px solid var(--border);background:var(--surface)}
.chat-attachment-preview__inner{display:flex;align-items:center;gap:10px;max-width:720px;margin:0 auto;padding:8px 10px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
.chat-attachment-preview__icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(111,67,44,.09);color:var(--coffee);flex:0 0 auto}
.chat-attachment-preview__icon svg{width:17px;height:17px}
.chat-attachment-preview__copy{min-width:0;display:grid;gap:2px;flex:1}
.chat-attachment-preview__copy strong{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-attachment-preview__copy small{font-size:10.5px;color:var(--muted)}
.chat-attachment-preview__remove{width:30px;height:30px;border:0;border-radius:9px;background:transparent;color:var(--muted)}
.chat-attachment--image{display:block;overflow:hidden;border-radius:15px;max-width:min(280px,70vw);background:var(--surface-2)}
/* Keep attachment media hidden until its signed URL has actually loaded. */
.chat-attachment--image img[hidden],
.chat-attachment--video video[hidden]{display:none !important}

.chat-attachment--image img{display:block;width:100%;max-height:320px;object-fit:cover}
.chat-attachment--video{display:block;overflow:hidden;border-radius:15px;max-width:min(360px,78vw);background:#000;padding:0}
.chat-attachment--video video{display:block;width:100%;max-height:360px;border-radius:15px;background:#000}
.chat-attachment-loading{display:block;padding:26px 22px;font-size:11.5px;color:var(--muted)}
.chat-attachment--file{min-width:210px;padding:10px;border:1px solid rgba(111,67,44,.12);border-radius:13px;background:rgba(111,67,44,.055)}
.chat-attachment-file-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(111,67,44,.10);color:var(--coffee);flex:0 0 auto}
.chat-attachment-file-icon svg{width:17px;height:17px}
.chat-attachment-file-copy{min-width:0;display:grid;gap:2px;flex:1}
.chat-attachment-file-copy strong{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-attachment-file-copy small{font-size:10.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-attachment .go svg{width:14px;height:14px}



/* Daily Update media collage — max four attachments */
.upd-media {
  margin: 12px 0 2px;
}

.upd-media--single {
  display: block;
}

.upd-media--single img,
.upd-media--single video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-2);
}

.upd-media--single img {
  cursor: zoom-in;
}

.upd-media--collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(120px, 1fr);
  gap: 3px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
  aspect-ratio: 1.18 / 1;
}

.upd-media__tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  cursor: pointer;
}

.upd-media__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 160ms ease;
  pointer-events: none;
}

.upd-media__tile:active::after {
  background: rgba(0,0,0,.12);
}

.upd-media__tile img,
.upd-media__tile video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  pointer-events: none;
  background: #000;
}

.upd-media--count-3 .upd-media__tile:first-child {
  grid-row: span 2;
}

.upd-media-viewer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.upd-media-viewer img,
.upd-media-viewer video {
  display: block;
  width: 100%;
  max-height: min(70vh, 620px);
  object-fit: contain;
  background: #000;
}


/* Refined New Space action — replaces the oversized cross with a compact Space mark */
.new-space-glyph {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(241,210,174,.34), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(111,67,44,.14));
  border: 1px solid rgba(241,210,174,.18);
  color: var(--coffee);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 8px 18px rgba(30,16,10,.10);
}
.new-space-glyph svg {
  width: 22px;
  height: 22px;
}


/* ============================================================
   AUTH SCREEN — refined, premium entry experience
   Scoped exclusively to #auth-screen; app screens are untouched.
============================================================ */
#auth-screen.auth-screen {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(28px, env(safe-area-inset-top, 0px)) 18px max(28px, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse at 12% 12%, rgba(124,51,65,.20), transparent 42%),
    radial-gradient(ellipse at 90% 88%, rgba(111,78,55,.22), transparent 38%),
    linear-gradient(145deg, #100c0a 0%, #1b120f 48%, #0d0a09 100%);
  color: #f6eee6;
  font-family: var(--font);
}
#auth-screen.auth-screen::before,
#auth-screen.auth-screen::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}
#auth-screen.auth-screen::before {
  width: min(74vw, 360px);
  aspect-ratio: 1;
  top: -150px;
  right: -110px;
  border: 1px solid rgba(241,210,174,.12);
  box-shadow: 0 0 0 28px rgba(241,210,174,.018), 0 0 0 58px rgba(241,210,174,.014);
}
#auth-screen.auth-screen::after {
  width: min(62vw, 280px);
  aspect-ratio: 1;
  bottom: -130px;
  left: -110px;
  border: 1px solid rgba(217,143,160,.12);
  box-shadow: 0 0 0 24px rgba(217,143,160,.018), 0 0 0 48px rgba(217,143,160,.012);
}
#auth-screen .auth-card {
  width: min(100%, 430px);
  margin: auto;
  padding: clamp(24px, 6vw, 38px);
  border: 1px solid rgba(241,210,174,.15);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255,255,255,.085), rgba(255,255,255,.035) 52%, rgba(124,51,65,.065));
  box-shadow: 0 28px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.09);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
#auth-screen .auth-brand {
  text-align: center;
  margin: 0 0 30px;
}
#auth-screen .auth-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border: 1px solid rgba(241,210,174,.34);
  border-radius: 25px;
  color: #f1d2ae;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,240,215,.19), transparent 42%),
    radial-gradient(circle at 76% 80%, rgba(124,51,65,.28), transparent 52%),
    linear-gradient(145deg, rgba(124,51,65,.38), rgba(111,78,55,.12));
  box-shadow: 0 14px 36px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.13);
  line-height: 1;
}
#auth-screen .auth-logo svg {
  display: block;
  width: 48px;
  height: 48px;
  overflow: visible;
  filter: drop-shadow(0 3px 8px rgba(241,210,174,.16));
}
#auth-screen .auth-moon-core {
  transform-origin: 42px 40px;
  animation: authMoonFloat 7s ease-in-out infinite;
}
#auth-screen .auth-moon-orbit {
  opacity: .72;
}
#auth-screen .auth-moon-orbit-dot {
  filter: drop-shadow(0 0 4px rgba(241,210,174,.55));
}
#auth-screen .auth-moon-star {
  transform-origin: 62px 20px;
  animation: authMoonTwinkle 4.5s ease-in-out infinite;
}
@keyframes authMoonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.8px); }
}
@keyframes authMoonTwinkle {
  0%, 100% { opacity: .82; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  #auth-screen .auth-moon-core,
  #auth-screen .auth-moon-star { animation: none !important; }
}
#auth-screen .auth-brand h1 {
  margin: 0;
  color: #fbf4ed;
  font-size: clamp(25px, 6vw, 31px);
  font-weight: 750;
  letter-spacing: -.8px;
  line-height: 1.2;
}
#auth-screen .auth-brand p {
  margin: 9px 0 0;
  color: rgba(246,238,230,.66);
  font-size: 13px;
  line-height: 1.55;
}
#auth-screen .auth-form h2 {
  margin: 0;
  color: #fbf4ed;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.35px;
}
#auth-screen .auth-subtitle {
  margin: 7px 0 24px;
  color: rgba(246,238,230,.62);
  font-size: 13px;
  line-height: 1.5;
}
#auth-screen .field {
  margin: 0 0 17px;
}
#auth-screen .field label {
  display: block;
  margin: 0 0 8px;
  color: rgba(246,238,230,.82);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .2px;
}
#auth-screen .field input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 51px;
  padding: 13px 15px;
  border: 1px solid rgba(241,210,174,.17);
  border-radius: 13px;
  outline: none;
  background: rgba(8,6,5,.34);
  color: #fff7ef;
  font: inherit;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
#auth-screen .field input::placeholder {
  color: rgba(246,238,230,.35);
}
#auth-screen .field input:focus {
  border-color: rgba(241,210,174,.72);
  background: rgba(8,6,5,.48);
  box-shadow: 0 0 0 3px rgba(241,210,174,.10);
}
#auth-screen .btn--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 51px;
  margin-top: 8px;
  border: 1px solid rgba(255,236,215,.22);
  border-radius: 14px;
  background: linear-gradient(105deg, #9a5a55, #7c3341 56%, #60303a);
  color: #fff8f0;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .15px;
  box-shadow: 0 12px 24px rgba(75,25,35,.26), inset 0 1px 0 rgba(255,255,255,.15);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}
#auth-screen .btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 15px 28px rgba(75,25,35,.32), inset 0 1px 0 rgba(255,255,255,.18);
}
#auth-screen .btn--primary:active {
  transform: translateY(1px) scale(.995);
}
#auth-screen .auth-message {
  margin: 12px 0 0;
  color: #f1d2ae;
  font-size: 12px;
  line-height: 1.5;
}
#auth-screen .auth-switch {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(241,210,174,.12);
  color: rgba(246,238,230,.62);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
#auth-screen .auth-switch button {
  display: inline;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: #f1d2ae;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
#auth-screen .auth-switch button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#auth-screen .auth-form[hidden] {
  display: none !important;
}
@media (max-width: 380px) {
  #auth-screen.auth-screen { padding-left: 13px; padding-right: 13px; }
  #auth-screen .auth-card { padding: 23px 19px; border-radius: 24px; }
  #auth-screen .auth-brand { margin-bottom: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  #auth-screen .field input,
  #auth-screen .btn--primary { transition: none; }
}

/* ============================================================
   Tweaklr — Pulse | Home design language
   Scoped to Pulse; uses the app-wide light/dark theme tokens and
   preserves the shared Tweaklr theme toggle.
   ============================================================ */
#screen-tweak {
  position:absolute;
  inset:0;
  min-height:0;
  isolation:isolate;
  overflow:hidden;
  background:var(--bg)!important;
  color:var(--text);
}
#screen-tweak .topbar,
#screen-tweak .scroll,
#screen-tweak .wordmark-foot {
  position:relative;
  z-index:1;
}
#screen-tweak .topbar {
  background:color-mix(in srgb,var(--bg) 88%,transparent);
  border-bottom:1px solid transparent;
  backdrop-filter:saturate(140%) blur(14px);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
}
#screen-tweak .topbar.is-scrolled {
  border-bottom-color:var(--border);
}
#screen-tweak .topbar-title,
#screen-tweak .icon-btn {
  color:var(--coffee-dark);
}
#screen-tweak .topbar-sub {
  color:var(--muted);
}
#screen-tweak .scroll {
  position:relative;
  flex:1 1 0%;
  min-height:0;
  min-width:0;
  height:0;
  max-height:100%;
  box-sizing:border-box;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
  background:var(--bg);
}
#screen-tweak #tweak-body {
  width:min(100%,980px);
  margin:0 auto;
  padding:8px 18px 34px;
  position:relative;
  z-index:1;
}

/* Home-style introduction: warm, clear and typography-led. */
#screen-tweak .pulse-hero {
  position:relative;
  min-height:0;
  padding:4px 0 22px;
  overflow:hidden;
}
#screen-tweak .pulse-hero-copy {
  position:relative;
  z-index:2;
  max-width:100%;
  padding-top:4px;
}
#screen-tweak .pulse-eyebrow {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--coffee-light);
  font-size:10px;
  font-weight:650;
  letter-spacing:.12em;
  text-transform:uppercase;
}
#screen-tweak .pulse-live-dot {
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:var(--sage);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--sage) 13%,transparent);
}
#screen-tweak .pulse-hero h1 {
  margin-top:10px;
  color:var(--text);
  font-family:var(--font);
  font-size:26px;
  line-height:1.16;
  font-weight:660;
  letter-spacing:-.035em;
}
#screen-tweak .pulse-hero p {
  max-width:42ch;
  margin-top:7px;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
#screen-tweak .pulse-planet-system {
  display:none!important;
}

/* Home-style surface cards and creator connection panel. */
#screen-tweak .pulse-glass {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
#screen-tweak .pulse-connect {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:78px;
  margin:0;
  padding:14px;
  text-align:left;
}
#screen-tweak .pulse-connect-icon {
  display:grid;
  flex:0 0 43px;
  width:43px;
  height:43px;
  place-items:center;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface-2);
  color:var(--coffee);
  font-size:21px;
  box-shadow:var(--shadow-xs);
}
#screen-tweak .pulse-connect-copy {
  display:grid;
  flex:1 1 auto;
  min-width:0;
  gap:3px;
}
#screen-tweak .pulse-connect-copy b {
  color:var(--text);
  font-size:14px;
  font-weight:600;
}
#screen-tweak .pulse-connect-copy span {
  color:var(--muted);
  font-size:11.5px;
  line-height:1.45;
}
#screen-tweak .pulse-connect-action {
  flex:0 0 auto;
  padding:9px 13px;
  border-radius:var(--r-full);
  background:var(--coffee-dark);
  color:#F7F2EC;
  font-size:12px;
  font-weight:650;
  box-shadow:var(--shadow-xs);
}
#screen-tweak .pulse-account-status {
  display:flex;
  align-items:center;
  gap:8px;
  margin:10px 5px 0;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.5;
}
#screen-tweak .pulse-account-status::before {
  content:"";
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:var(--sage);
}

/* Match Home section headings, spacing and compact information tiles. */
#screen-tweak .pulse-section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin:26px 0 12px;
}
#screen-tweak .pulse-section-head h2 {
  margin-top:5px;
  color:var(--text);
  font-family:var(--font);
  font-size:19px;
  font-weight:620;
  letter-spacing:-.025em;
}
#screen-tweak .pulse-section-head p {
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}
#screen-tweak .pulse-refresh {
  flex:0 0 auto;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:var(--r-full);
  color:var(--coffee);
  background:var(--surface);
  font-size:11.5px;
  font-weight:600;
}
#screen-tweak .pulse-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  margin-top:16px;
}
#screen-tweak .pulse-tile {
  position:relative;
  min-height:112px;
  padding:15px 14px;
  overflow:hidden;
  text-align:left;
}
#screen-tweak .pulse-tile .pulse-tile-icon {
  color:var(--coffee-light);
  font-size:20px;
}
#screen-tweak .pulse-tile b {
  display:block;
  margin-top:19px;
  color:var(--text);
  font-size:13px;
  font-weight:600;
}
#screen-tweak .pulse-tile span {
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

/* Creator video cards use the same Home surface, border and shadow. */
#screen-tweak .pulse-video-section {
  position:relative;
  z-index:1;
  margin-top:24px;
}
#screen-tweak .pulse-video-feed {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
#screen-tweak .tweak-video-message {
  grid-column:1/-1;
  padding:22px 17px;
  border:1px dashed var(--border-strong);
  border-radius:var(--r-lg);
  color:var(--muted);
  background:var(--surface);
  font-size:12px;
  line-height:1.65;
  text-align:center;
}
#screen-tweak .tweak-video-card {
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  background:var(--surface);
  box-shadow:var(--shadow-sm);
}
#screen-tweak .tweak-video-embed,
#screen-tweak .tweak-video-card iframe {
  display:block;
  width:100%;
  min-height:310px;
  border:0;
  background:var(--bg-deep);
}
#screen-tweak .tweak-video-cover {
  display:block;
  aspect-ratio:9/14;
  overflow:hidden;
  background:var(--surface-2);
}
#screen-tweak .tweak-video-cover img {
  width:100%;
  height:100%;
  object-fit:cover;
}
#screen-tweak .tweak-video-copy {
  padding:12px 13px 14px;
}
#screen-tweak .tweak-video-copy b {
  display:block;
  color:var(--text);
  font-size:12.5px;
  line-height:1.45;
}
#screen-tweak .tweak-video-copy p {
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}
#screen-tweak .tweak-video-copy a {
  display:inline-block;
  margin-top:9px;
  color:var(--coffee);
  font-size:11px;
  font-weight:650;
}
#screen-tweak .pulse-footnote {
  margin:18px 3px 0;
  padding:12px 0 3px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:10.5px;
  line-height:1.65;
}
@media(max-width:420px) {
  #screen-tweak .pulse-video-feed {grid-template-columns:1fr}
  #screen-tweak .tweak-video-embed,
  #screen-tweak .tweak-video-card iframe {min-height:390px}
}
@media(max-width:350px) {
  #screen-tweak #tweak-body {padding-left:14px;padding-right:14px}
  #screen-tweak .pulse-connect {gap:9px;padding:12px 10px}
  #screen-tweak .pulse-connect-icon {width:38px;height:38px;flex-basis:38px}
}
@media(prefers-reduced-motion:reduce) {
  #screen-tweak *,#screen-tweak *::before,#screen-tweak *::after {
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}

/* ---------- TWEAKLR SIGNATURE: SHARE UPDATE SHEET ---------- */
.sheet:has(.share-update-recipients) {
  background:
    radial-gradient(ellipse at 92% 0%, rgba(139, 53, 67, .10), transparent 38%),
    linear-gradient(160deg, var(--surface), var(--bg));
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -24px 70px -35px rgba(38, 22, 17, .42);
}
.sheet:has(.share-update-recipients) .grab {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--burgundy), var(--champagne));
}
.sheet:has(.share-update-recipients) .sheet-head {
  position: relative;
  padding: 8px 22px 17px;
  border-bottom: 1px solid var(--border);
}
.sheet:has(.share-update-recipients) .sheet-head::before {
  content: "T W E A K L R  /  PASS IT ON";
  display: block;
  margin-bottom: 8px;
  color: var(--burgundy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .19em;
}
.sheet:has(.share-update-recipients) .sheet-head h2 {
  font-size: 23px;
  font-weight: 740;
  letter-spacing: -.055em;
}
.sheet:has(.share-update-recipients) .sheet-head p {
  max-width: 300px;
  margin-top: 6px;
  line-height: 1.55;
}
.sheet:has(.share-update-recipients) .sheet-body {
  padding: 15px 18px 24px;
}
.sheet:has(.share-update-recipients) .chat-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px !important;
}
.sheet:has(.share-update-recipients) .chat-action-grid button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 68px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  color: var(--text);
  text-align: left;
  font-size: 13px;
  font-weight: 680;
  box-shadow: 0 5px 16px rgba(73, 50, 36, .045);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.sheet:has(.share-update-recipients) .chat-action-grid button span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--burgundy), var(--coffee-dark));
  color: #FFF8F0;
  font-size: 21px !important;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(73, 50, 36, .18);
}
.sheet:has(.share-update-recipients) .chat-action-grid button:active {
  transform: scale(.975);
  border-color: var(--coffee-light);
  box-shadow: 0 2px 8px rgba(73, 50, 36, .08);
}
.share-update-recipients {
  margin-top: 0;
}
.share-update-recipients .section-head {
  padding: 0 2px 10px;
  align-items: center;
}
.share-update-recipients .section-head h2 {
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.025em;
}
.share-update-recipients .section-head p {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.share-update-recipients .field {
  margin: 0 0 10px !important;
  padding: 0 !important;
}
.share-update-recipients #share-update-user-search {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 43px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background-color: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.share-update-recipients .field {
  position: relative;
}
.share-update-recipients .field::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 16px;
  width: 13px;
  height: 13px;
  border: 1.8px solid var(--coffee-light);
  border-radius: 50%;
  pointer-events: none;
}
.share-update-recipients .field::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 29px;
  width: 6px;
  height: 1.8px;
  background: var(--coffee-light);
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}
.share-update-recipients #share-update-user-search:focus {
  border-color: var(--coffee-light);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(139, 53, 67, .10);
}
.share-update-recipients #share-update-search-results {
  margin-bottom: 20px;
  border-radius: 17px;
}
.share-update-recipients #share-update-search-results:empty {
  display: none;
}
.share-update-recipients .opt {
  gap: 11px;
  min-height: 61px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.share-update-recipients .opt + .opt {
  border-top-color: transparent;
}
.share-update-recipients .opt:active {
  background: var(--surface-2);
  border-color: var(--border);
  transform: scale(.99);
}
.share-update-recipients .opt > .av {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.share-update-recipients .opt .tx .t {
  font-size: 13px;
  font-weight: 720;
}
.share-update-recipients .opt .tx .s {
  margin-top: 3px;
  font-size: 11.5px;
}
.share-update-recipients .opt .go {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--burgundy);
}
.share-update-recipients .opt .go svg {
  width: 16px;
  height: 16px;
}
.share-update-recipients .center-note {
  padding: 16px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 360px) {
  .sheet:has(.share-update-recipients) .sheet-body { padding-right: 13px; padding-left: 13px; }
  .sheet:has(.share-update-recipients) .chat-action-grid button { gap: 8px; padding: 10px; }
}


/* TWEAKLR SIGNATURE: CELESTIAL COFFEE-BROWN REACTION ORB */
.chat-celestial-reaction {
  --orb-espresso: #2b1711;
  --orb-roast: #513024;
  --orb-caramel: #a97853;
  --orb-cream: #f1d2ae;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 154px;
  margin: 0 0 15px;
  padding: 6px 8px 0;
  overflow: hidden;
  border: 1px solid rgba(169, 120, 83, .36);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(169,120,83,.20), transparent 43%),
    radial-gradient(ellipse at 50% 100%, rgba(81,48,36,.30), transparent 68%),
    linear-gradient(145deg, rgba(43,23,17,.96), rgba(20,13,11,.98));
  box-shadow: inset 0 1px 0 rgba(241,210,174,.08), 0 12px 28px rgba(20,10,6,.16);
  isolation: isolate;
}
.chat-celestial-reaction::before,
.chat-celestial-reaction::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(241,210,174,.10);
  border-radius: 50%;
  pointer-events: none;
}
.chat-celestial-reaction::before { transform: scaleX(1.55) rotate(-24deg); }
.chat-celestial-reaction::after { width: 124px; height: 124px; border-style: dashed; opacity: .65; }
.chat-reaction-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  padding: 0;
  border: 1px solid rgba(241,210,174,.72);
  border-radius: 50%;
  color: var(--orb-cream);
  background:
    radial-gradient(circle at 31% 24%, rgba(255,239,215,.30), transparent 24%),
    radial-gradient(circle at 50% 40%, #8b5a3c 0%, #573424 44%, #2b1711 78%);
  box-shadow: 0 0 0 5px rgba(169,120,83,.10), 0 0 25px rgba(169,120,83,.34), inset 0 2px 8px rgba(255,239,215,.20), inset 0 -7px 12px rgba(16,8,5,.40);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}
.chat-reaction-orb:active { transform: translate(-50%,-50%) scale(.94); }
.chat-orb-core {
  position: relative;
  z-index: 2;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(241,210,174,.65);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.chat-orb-halo {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(241,210,174,.42);
  border-radius: 50%;
  pointer-events: none;
}
.chat-orb-halo-one { transform: rotateX(64deg) rotate(-22deg); }
.chat-orb-halo-two { inset: -11px 3px; border-color: rgba(169,120,83,.55); transform: rotateX(64deg) rotate(48deg); }
.chat-orb-caption {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 120px;
  transform: translateX(-50%);
  color: var(--orb-cream);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
  white-space: nowrap;
}
.chat-orb-reactions {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  z-index: 2;
}
.chat-reaction-choice {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(241,210,174,.50);
  border-radius: 50%;
  color: #f7e8d6;
  background: radial-gradient(circle at 30% 22%, #76503a, #382117 76%);
  box-shadow: 0 5px 13px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,239,215,.16);
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(.25);
  transition: transform .34s cubic-bezier(.2,.85,.25,1.25), opacity .22s ease, border-color .22s ease, box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.chat-reaction-choice:nth-child(1) { --rx: -78px; --ry: -24px; --turn: -12deg; }
.chat-reaction-choice:nth-child(2) { --rx: -43px; --ry: -43px; --turn: -7deg; }
.chat-reaction-choice:nth-child(3) { --rx: 43px; --ry: -43px; --turn: 7deg; }
.chat-reaction-choice:nth-child(4) { --rx: 78px; --ry: -24px; --turn: 12deg; }
.chat-reaction-choice:nth-child(5) { --rx: 43px; --ry: 32px; --turn: 7deg; }
.chat-reaction-choice:nth-child(6) { --rx: -43px; --ry: 32px; --turn: -7deg; }
.chat-celestial-reaction.is-expanded .chat-reaction-choice {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) translate(var(--rx),var(--ry)) rotate(var(--turn)) scale(1);
}
.chat-celestial-reaction.is-expanded .chat-reaction-orb {
  box-shadow: 0 0 0 7px rgba(169,120,83,.14), 0 0 34px rgba(169,120,83,.52), inset 0 2px 8px rgba(255,239,215,.22), inset 0 -7px 12px rgba(16,8,5,.40);
}
.chat-celestial-reaction.is-expanded .chat-orb-core { transform: rotate(45deg) scale(1.08); }
.chat-reaction-choice:active { transform: translate(-50%,-50%) translate(var(--rx),var(--ry)) scale(.86) !important; }
.chat-reaction-choice:focus-visible,
.chat-reaction-orb:focus-visible { outline: 2px solid var(--orb-cream); outline-offset: 4px; }
.chat-orb-hint {
  position: absolute;
  right: 8px;
  bottom: 12px;
  left: 8px;
  margin: 0;
  color: rgba(241,210,174,.72);
  font-size: 10px;
  letter-spacing: .04em;
  text-align: center;
  transition: opacity .18s ease;
}
.chat-orb-hint.is-hidden { opacity: 0; }
@media (max-width: 380px) {
  .chat-celestial-reaction { min-height: 148px; padding-right: 4px; padding-left: 4px; }
  .chat-reaction-choice { width: 38px; height: 38px; font-size: 20px; }
  .chat-reaction-choice:nth-child(1) { --rx: -70px; }
  .chat-reaction-choice:nth-child(4) { --rx: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-reaction-choice, .chat-reaction-orb, .chat-orb-core, .chat-orb-hint { transition: none !important; }
}


/* TWEAKLR SIGNATURE: CELESTIAL RETURN TO LATEST CHAT */
.chat-return-latest {
  position: sticky;
  bottom: 12px;
  z-index: 8;
  align-self: flex-end;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin: -46px 2px 8px auto;
  padding: 5px 11px 5px 6px;
  border: 1px solid color-mix(in srgb, var(--accent, #d9b48b) 48%, transparent);
  border-radius: 999px;
  color: var(--text, #f5e8dc);
  background: color-mix(in srgb, var(--surface, #17110f) 88%, transparent);
  box-shadow: 0 7px 22px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(.96);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chat-return-latest.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.chat-return-latest svg {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}
.chat-return-latest:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  .chat-return-latest { transition: none; }
}
@media (max-width: 380px) {
  .chat-return-latest { min-height: 36px; padding-right: 9px; }
  .chat-return-latest svg { width: 26px; height: 26px; flex-basis: 26px; }
}


/* TWEAKLR SIGNATURE: CELESTIAL FORWARD SHEET */
.sheet:has(button[data-action^="forward-to:"]) .sheet-head {
  padding-bottom: 16px;
  background:
    radial-gradient(ellipse at 88% 0%, color-mix(in srgb, var(--coffee-light, #b68a70) 19%, transparent), transparent 56%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, var(--coffee-light, #b68a70)), var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, var(--coffee-light, #b68a70));
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-head h2 {
  font-size: clamp(21px, 5.5vw, 25px);
  font-weight: 760;
  letter-spacing: -.055em;
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-head h2::before {
  content: "✦";
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-right: 9px;
  border: 1px solid color-mix(in srgb, var(--coffee-light, #b68a70) 44%, transparent);
  border-radius: 10px;
  color: var(--coffee-light, #b68a70);
  background: color-mix(in srgb, var(--coffee-light, #b68a70) 12%, transparent);
  font-size: 15px;
  vertical-align: 2px;
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-head p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body {
  padding: 13px 17px 24px;
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--coffee-light, #b68a70) 7%, transparent), transparent 50%),
    var(--surface);
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt {
  position: relative;
  gap: 12px;
  min-height: 68px;
  margin: 5px 0;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface-2) 42%, transparent);
  box-shadow: 0 2px 8px rgba(42, 25, 18, .025);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt + .opt {
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  opacity: 0;
  background: linear-gradient(180deg, var(--coffee-light, #b68a70), var(--coffee, #8b3543));
  transition: opacity .18s ease;
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt:active {
  transform: scale(.985);
  border-color: color-mix(in srgb, var(--coffee-light, #b68a70) 48%, var(--border));
  background: color-mix(in srgb, var(--coffee-light, #b68a70) 9%, var(--surface));
}
@media (hover: hover) {
  .sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--coffee-light, #b68a70) 42%, var(--border));
    background: color-mix(in srgb, var(--coffee-light, #b68a70) 8%, var(--surface));
    box-shadow: 0 7px 18px rgba(42, 25, 18, .06);
  }
  .sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt:hover::after {
    opacity: 1;
  }
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt .tx .t {
  font-size: 14px;
  font-weight: 740;
  letter-spacing: -.025em;
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt .tx .s {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .015em;
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt .go {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid color-mix(in srgb, var(--coffee-light, #b68a70) 35%, var(--border));
  border-radius: 11px;
  color: var(--coffee, #8b3543);
  background: color-mix(in srgb, var(--coffee-light, #b68a70) 10%, var(--surface));
  font-size: 23px;
  line-height: 1;
  transition: transform .18s ease;
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt:active .go {
  transform: translateX(2px);
}
.sheet:has(button[data-action^="forward-to:"]) .sheet-body .center-note {
  padding: 25px 12px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 360px) {
  .sheet:has(button[data-action^="forward-to:"]) .sheet-body { padding-right: 12px; padding-left: 12px; }
  .sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt { gap: 9px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt,
  .sheet:has(button[data-action^="forward-to:"]) .sheet-body > .opt .go { transition: none; }
}


/* TWEAKLR SIGNATURE: PUBLIC PROFILE FROM CHAT HEADER */
#screen-chat .chat-profile-avatar { display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:50%; background:transparent; cursor:pointer; -webkit-tap-highlight-color:transparent; }
#screen-chat .chat-profile-avatar .av { box-shadow:0 0 0 2px color-mix(in srgb,var(--coffee-light,#b68a70) 45%,transparent); transition:transform .18s ease,box-shadow .18s ease; }
#screen-chat .chat-profile-name { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:2px 0; border:0; color:inherit; background:transparent; font:inherit; font-size:16px; font-weight:760; letter-spacing:-.035em; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; }
#screen-chat .chat-profile-name span { display:inline-grid; place-items:center; width:17px; height:17px; flex:0 0 17px; border:1px solid var(--border); border-radius:6px; color:var(--coffee-light,#b68a70); font-size:10px; line-height:1; opacity:.8; transition:transform .18s ease,opacity .18s ease; }
#screen-chat .chat-profile-name:focus-visible, #screen-chat .chat-profile-avatar:focus-visible { outline:2px solid var(--coffee-light,#b68a70); outline-offset:4px; }
@media (hover:hover) {
 #screen-chat .chat-profile-name:hover span { transform:translate(1px,-1px); opacity:1; }
 #screen-chat .chat-profile-avatar:hover .av { transform:scale(1.045); box-shadow:0 0 0 3px color-mix(in srgb,var(--coffee-light,#b68a70) 60%,transparent); }
}
#screen-chat .chat-profile-name:active { opacity:.72; }
#screen-person .public-profile-head .who { min-width:0; }
#screen-person .public-profile-username { margin-top:5px; color:var(--coffee-light,#b68a70); font-size:12px; font-weight:700; overflow-wrap:anywhere; }
#screen-person .public-profile-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:16px 16px 0; }
#screen-person .public-profile-stat { display:flex; min-width:0; min-height:72px; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:10px 5px; border:1px solid var(--border); border-radius:16px; background:radial-gradient(ellipse at 90% 0%,color-mix(in srgb,var(--coffee-light,#b68a70) 12%,transparent),transparent 62%),var(--surface); text-align:center; }
#screen-person .public-profile-stat strong { max-width:100%; color:var(--text); font-size:clamp(12px,3.6vw,17px); font-weight:800; line-height:1.2; overflow-wrap:anywhere; }
#screen-person .public-profile-stat span { color:var(--muted); font-size:10px; line-height:1.35; }
#screen-person button.public-profile-stat { width:100%; appearance:none; -webkit-appearance:none; color:inherit; font:inherit; cursor:pointer; transition:border-color .18s ease,transform .18s ease,background .18s ease; }
#screen-person button.public-profile-stat:active { transform:scale(.98); }
#screen-person button.public-profile-stat:focus-visible { outline:2px solid var(--coffee); outline-offset:3px; }
#screen-person .section[hidden] { display:none !important; }
@media (max-width:350px) { #screen-person .public-profile-stats { gap:5px; margin-right:12px; margin-left:12px; } #screen-person .public-profile-stat { padding:9px 3px; } #screen-person .public-profile-stat span { font-size:9px; } }
@media (prefers-reduced-motion:reduce) { #screen-chat .chat-profile-name span, #screen-chat .chat-profile-avatar .av { transition:none; } }


/* ---------- PROFILE PHOTO + ACTIVITY LAYOUT FIX ---------- */

/* Keep the profile photo in the View/Edit action menu circular and square-sized. */
#modal .profile-avatar-menu-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0;
  box-sizing: border-box;
}
#modal .profile-avatar-menu-preview .av-ring {
  display: block;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  box-sizing: border-box;
}
#modal .profile-avatar-menu-preview .av {
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-sizing: border-box;
}
#modal .profile-avatar-menu-preview .av > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

/* Restrict circular cropping to the dedicated profile-photo preview only.
   Other modal content (audio covers, media, etc.) must keep its normal shape. */
#modal .profile-photo-preview {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: min(76vw, 360px) !important;
  height: min(76vw, 360px) !important;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: none;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  isolation: isolate;
}
#modal .profile-photo-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit;
}

/* Keep activity content in normal document flow; don't clip the whole section
   or change the tab row's layout. */
#screen-profile #profile-body,
#screen-profile #my-updates,
#screen-profile #profile-content-list {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#screen-profile #profile-content-list .upd,
#screen-profile #profile-content-list .empty {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#screen-profile #profile-content-list .upd h3,
#screen-profile #profile-content-list .upd p {
  overflow-wrap: anywhere;
}




/* Keep the Profile body as the actual scroll container so activity cards
   cannot extend underneath the fixed bottom navigation. */
#screen-profile {
  min-height: 0;
}
#screen-profile > .scroll {
  position: relative;
  flex: 1 1 0%;
  min-height: 0;
  height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 56px);
  box-sizing: border-box;
  isolation: isolate;
}
#screen-profile #profile-body {
  min-height: 0;
  overflow: visible;
}
#screen-profile #my-updates,
#screen-profile #profile-content-list {
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}
#screen-profile #profile-content-list .upd {
  position: relative;
  z-index: 0;
}



/* Search screen: refined guidance card with balanced horizontal alignment. */
#screen-search #search-body > .section:first-child {
  margin: 14px 18px 0 !important;
  padding: 0;
  box-sizing: border-box;
}
#screen-search .search-guidance {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 22px;
  padding: 18px 18px 19px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, var(--coffee) 22%);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--coffee) 11%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 94%, var(--bg));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .005em;
  box-shadow: 0 8px 24px rgba(35, 20, 14, .045);
}
#screen-search .search-guidance strong {
  display: block;
  margin: 0 0 5px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: -.025em;
}
#screen-search #search-body > .section:first-child > .section-head,
#screen-search #search-body > .section:first-child > .chips {
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 480px) {
  #screen-search #search-body > .section:first-child {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
  #screen-search .search-guidance {
    padding: 16px;
  }
}

/* Tweaklr signature loading state — scoped to loading components only */
.tweaklr-loading {
  position: relative;
  display: flex;
  min-height: 250px;
  width: 100%;
  box-sizing: border-box;
  padding: 30px 18px 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  color: var(--text, #f5e8dc);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(139,53,67,.20), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(241,210,174,.08), transparent 48%);
  border-radius: 22px;
}
.tweaklr-loading::before,
.tweaklr-loading::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(241,210,174,.13);
  border-radius: 50%;
  animation: tweaklr-loader-drift 8s linear infinite;
}
.tweaklr-loading::after {
  width: 245px;
  height: 245px;
  border-style: dashed;
  border-color: rgba(139,53,67,.24);
  animation-duration: 14s;
  animation-direction: reverse;
}
.tweaklr-loading-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 4px;
  border: 1px solid rgba(241,210,174,.35);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(139,53,67,.22), inset 0 0 22px rgba(139,53,67,.13);
  animation: tweaklr-loader-breathe 2.1s ease-in-out infinite;
}
.tweaklr-loading-orbit::before,
.tweaklr-loading-orbit::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(241,210,174,.20);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: tweaklr-loader-spin 1.8s linear infinite;
}
.tweaklr-loading-orbit::after {
  inset: -14px;
  border-color: rgba(139,53,67,.30);
  border-right-color: transparent;
  animation-duration: 2.7s;
  animation-direction: reverse;
}
.tweaklr-loading-core {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 15px;
  color: #24120f;
  background: linear-gradient(145deg, #f1d2ae, #c17a79);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -2px;
  box-shadow: 0 5px 22px rgba(193,122,121,.3);
}
.tweaklr-loading-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f1d2ae;
  box-shadow: 0 0 12px rgba(241,210,174,.8);
}
.tweaklr-loading-dot--one { top: 2px; left: 12px; }
.tweaklr-loading-dot--two { right: -1px; bottom: 20px; background: #c17a79; }
.tweaklr-loading-dot--three { bottom: 3px; left: 17px; width: 5px; height: 5px; }
.tweaklr-loading-brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .035em;
}
.tweaklr-loading-pulse {
  display: inline-block;
  margin-left: 5px;
  color: #c17a79;
  animation: tweaklr-loader-twinkle 1.1s ease-in-out infinite alternate;
}
.tweaklr-loading-message {
  max-width: 270px;
  color: var(--muted, #a99a91);
  font-size: 13px;
  line-height: 1.5;
}
.tweaklr-loading-motto {
  margin-top: 3px;
  color: #c17a79;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .19em;
}
.tweaklr-loading-track {
  width: 104px;
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(139,53,67,.17);
}
.tweaklr-loading-track span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b3543, #f1d2ae);
  animation: tweaklr-loader-progress 1.35s ease-in-out infinite;
}
.chat-attachment-loading {
  display: grid;
  min-height: 76px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  color: var(--muted, #a99a91);
  font-size: 11px;
  background: radial-gradient(ellipse at center, rgba(139,53,67,.18), transparent 72%);
}
.chat-attachment-loading::before {
  content: "T";
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(241,210,174,.48);
  border-radius: 50%;
  color: #f1d2ae;
  font-weight: 800;
  animation: tweaklr-loader-breathe 1.4s ease-in-out infinite;
}
@keyframes tweaklr-loader-spin { to { transform: rotate(360deg); } }
@keyframes tweaklr-loader-drift { to { transform: rotate(360deg); } }
@keyframes tweaklr-loader-breathe { 50% { transform: scale(1.07); opacity: .78; } }
@keyframes tweaklr-loader-twinkle { to { transform: scale(1.24) rotate(14deg); opacity: .55; } }
@keyframes tweaklr-loader-progress { 0% { transform: translateX(-115%); } 100% { transform: translateX(255%); } }
@media (prefers-reduced-motion: reduce) {
  .tweaklr-loading::before, .tweaklr-loading::after, .tweaklr-loading-orbit,
  .tweaklr-loading-orbit::before, .tweaklr-loading-orbit::after,
  .tweaklr-loading-pulse, .tweaklr-loading-track span, .chat-attachment-loading::before {
    animation: none !important;
  }
}




/* ============================================================
   Tweaklr responsive expansion — tablet and desktop only
   The existing mobile layout and all mobile breakpoints above
   remain unchanged.
   ============================================================ */

/* Tablet landscape / compact laptop */
@media (min-width: 700px) and (max-width: 1099px) {
  body {
    display: block;
    min-height: 100dvh;
    background: var(--bg-deep);
  }

  .app {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 620px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .screen > .scroll {
    width: min(100%, 1040px);
    margin-inline: auto;
  }

  .screen > .topbar {
    padding-left: clamp(24px, 4vw, 48px);
    padding-right: clamp(24px, 4vw, 48px);
  }

  .greet {
    padding-left: clamp(24px, 4vw, 48px);
    padding-right: clamp(24px, 4vw, 48px);
  }

  .locbar {
    margin-left: clamp(24px, 4vw, 48px);
    margin-right: clamp(24px, 4vw, 48px);
  }

  .desk-mark { display: none; }
}

/* Desktop */
@media (min-width: 1100px) {
  body {
    display: block;
    min-height: 100dvh;
    background: var(--bg-deep);
  }

  .app {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 680px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Persistent desktop navigation rail */
  .app > .nav {
    position: absolute;
    inset: 0 auto 0 0;
    width: 244px;
    height: 100%;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    border-top: 0;
    border-right: 1px solid var(--border);
    background: var(--surface);
    overflow-y: auto;
    transform: none;
  }

  .app > .nav button {
    flex: 0 0 auto;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    border-radius: 14px;
  }

  .app > .nav button svg {
    width: 21px;
    height: 21px;
  }

  .app > .nav button .lb {
    font-size: 13px;
    letter-spacing: 0;
  }

  .app > .nav button.is-on {
    background: var(--surface-2);
  }

  .app > .screen {
    inset: 0 0 0 244px;
    width: auto;
    min-width: 0;
  }

  .app > .screen > .topbar {
    padding: 22px clamp(28px, 4vw, 64px) 16px;
  }

  .app > .screen > .scroll {
    width: min(100%, 1280px);
    margin-inline: auto;
    padding-left: clamp(20px, 3vw, 44px);
    padding-right: clamp(20px, 3vw, 44px);
    padding-bottom: 48px;
  }

  .app > .screen--stack {
    box-shadow: -20px 0 50px -30px rgba(73, 50, 36, .35);
  }

  .app .greet {
    padding: 14px clamp(28px, 4vw, 64px) 0;
  }

  .app .greet h1 {
    font-size: clamp(28px, 2.4vw, 38px);
  }

  .app .locbar {
    margin-left: clamp(28px, 4vw, 64px);
    margin-right: clamp(28px, 4vw, 64px);
  }

  .app .fab {
    right: 32px;
    bottom: 32px;
  }

  .desk-mark {
    display: none;
  }
}

/* Wide desktop displays */
@media (min-width: 1600px) {
  .app > .nav {
    width: 268px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .app > .screen {
    inset-inline-start: 268px;
  }

  .app > .screen > .scroll {
    width: min(100%, 1440px);
  }
}

/* Respect short desktop/tablet viewports without affecting phones */
@media (min-width: 700px) and (max-height: 700px) {
  .app {
    min-height: 0;
  }

  .app > .nav {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 4px;
  }

  .app > .nav button {
    min-height: 46px;
  }
}

/* Tweaklr private blocking control */
#screen-chat .chat-call-actions [data-action="block-current-chat"] { color:var(--coffee,#8b3543); }
#screen-chat .chat-call-actions [data-action="block-current-chat"] svg { width:19px;height:19px; }

.profile-ownership-credit {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .035em;
  opacity: .78;
}


/* Keep the message composer balanced on narrow screens. */
#chat-form{gap:7px;padding-inline:12px;min-width:0}
#chat-form .chat-attach-btn{flex:0 0 34px;width:34px;min-width:34px;height:38px}
#chat-form #chat-input{flex:1 1 0;width:0;min-width:0;padding-inline:11px}
#chat-form #chat-send{flex:0 0 40px;width:40px;height:40px}
@media(max-width:360px){
  #chat-form{gap:5px;padding-inline:8px}
  #chat-form .chat-attach-btn{flex-basis:32px;width:32px;min-width:32px}
    #chat-form #chat-send{flex-basis:38px;width:38px;height:38px}
  #chat-form #chat-input{padding-inline:8px;font-size:14px}
}



/* ============================================================
   TWEAKLR SIGNATURE AUTH EXPERIENCE
   Strictly scoped to the login/sign-up entry screen and intro.
============================================================ */
/* Legacy intro visibility gate removed: auth screen must remain visible. */
.auth-intro-loader {
  position:fixed; inset:0; z-index:99999; display:flex; flex-direction:column;
  align-items:center; justify-content:center; overflow:hidden;
  background:
    radial-gradient(ellipse at 50% 42%,rgba(139,53,67,.23),transparent 34%),
    radial-gradient(ellipse at 18% 82%,rgba(111,78,55,.17),transparent 40%),
    linear-gradient(145deg,#090706 0%,#160d0c 52%,#080706 100%);
  color:#f1d2ae; isolation:isolate;
  transition:opacity .38s ease,visibility .38s ease;
}
.auth-intro-loader::before,.auth-intro-loader::after {
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background-image:radial-gradient(1px 1px at 12% 21%,rgba(241,210,174,.8) 98%,transparent),
    radial-gradient(1px 1px at 78% 16%,rgba(241,210,174,.6) 98%,transparent),
    radial-gradient(1px 1px at 84% 73%,rgba(241,210,174,.7) 98%,transparent),
    radial-gradient(1px 1px at 24% 82%,rgba(241,210,174,.55) 98%,transparent),
    radial-gradient(1px 1px at 52% 11%,rgba(241,210,174,.5) 98%,transparent);
  opacity:.7;
}
.auth-intro-loader::after {background:radial-gradient(ellipse at center,transparent 20%,rgba(0,0,0,.48) 100%)}
.auth-intro-loader.is-leaving {opacity:0;visibility:hidden;pointer-events:none}
.auth-intro-mark {
  position:relative;display:grid;place-items:center;width:94px;height:94px;
  border:1px solid rgba(241,210,174,.46);border-radius:30px;
  background:radial-gradient(circle at 30% 20%,rgba(255,240,215,.18),transparent 42%),
    linear-gradient(145deg,rgba(139,53,67,.45),rgba(73,50,36,.2));
  box-shadow:0 0 0 10px rgba(241,210,174,.025),0 0 55px rgba(139,53,67,.28),
    inset 0 1px 0 rgba(255,255,255,.15);
  animation:authIntroRise .8s cubic-bezier(.2,.8,.2,1) both,authIntroPulse 2.4s ease-in-out .8s infinite;
}
.auth-intro-t {
  font-family:Georgia,serif;font-size:57px;font-weight:600;line-height:1;
  letter-spacing:-5px;padding-right:5px;color:#f4d9b9;
  text-shadow:0 0 22px rgba(241,210,174,.35);
}
.auth-intro-orbit {
  position:absolute;width:148px;height:148px;border:1px solid rgba(241,210,174,.17);
  border-radius:50%;transform:rotate(-28deg) scaleY(.48);
}
.auth-intro-orbit-a {animation:authIntroOrbit 5s linear infinite}
.auth-intro-orbit-b {width:174px;height:174px;border-color:rgba(139,53,67,.35);transform:rotate(48deg) scaleY(.42);animation:authIntroOrbit 7s linear infinite reverse}
.auth-intro-star {position:absolute;width:6px;height:6px;border-radius:50%;background:#f1d2ae;box-shadow:0 0 12px #f1d2ae}
.auth-intro-star-a {top:12px;right:11px}
.auth-intro-star-b {bottom:17px;left:13px;width:4px;height:4px;opacity:.7}
.auth-intro-wordmark {margin-top:31px;font-size:18px;font-weight:800;letter-spacing:.34em;padding-left:.34em;color:#fff2e3}
.auth-intro-motto {margin-top:9px;font-size:9px;font-weight:700;letter-spacing:.24em;padding-left:.24em;color:rgba(241,210,174,.72)}
.auth-intro-progress {width:142px;height:2px;margin-top:30px;overflow:hidden;border-radius:9px;background:rgba(241,210,174,.15)}
.auth-intro-progress span {display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7c3341,#f1d2ae);box-shadow:0 0 12px rgba(241,210,174,.65);animation:authIntroLoad 1.55s ease-in-out forwards}
.auth-intro-caption {margin-top:13px;color:rgba(246,238,230,.42);font-size:10px;letter-spacing:.08em}
@keyframes authIntroLoad {0%{transform:translateX(-110%);width:32%}65%{width:58%}100%{transform:translateX(180%);width:42%}}
@keyframes authIntroOrbit {to{rotate:360deg}}
@keyframes authIntroRise {from{opacity:0;transform:translateY(12px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes authIntroPulse {50%{box-shadow:0 0 0 14px rgba(241,210,174,.025),0 0 72px rgba(139,53,67,.38),inset 0 1px 0 rgba(255,255,255,.15)}}
#auth-screen.auth-screen {
  background:
    radial-gradient(ellipse at 14% 16%,rgba(139,53,67,.25),transparent 39%),
    radial-gradient(ellipse at 88% 82%,rgba(111,78,55,.25),transparent 37%),
    radial-gradient(ellipse at 50% 110%,rgba(139,53,67,.12),transparent 44%),
    linear-gradient(145deg,#090706 0%,#1a100e 48%,#0b0807 100%);
  padding:clamp(20px,4vh,42px) 18px;
}
#auth-screen.auth-screen::before {width:min(90vw,560px);top:-220px;right:-180px;border-color:rgba(241,210,174,.14);box-shadow:0 0 0 34px rgba(241,210,174,.018),0 0 0 72px rgba(241,210,174,.012)}
#auth-screen.auth-screen::after {width:min(70vw,390px);bottom:-190px;left:-170px;border-color:rgba(139,53,67,.22);box-shadow:0 0 0 30px rgba(139,53,67,.025),0 0 0 65px rgba(139,53,67,.015)}
#auth-screen .auth-card {
  width:min(100%,455px);padding:clamp(25px,6vw,42px);
  border:1px solid rgba(241,210,174,.2);border-radius:32px;
  background:linear-gradient(155deg,rgba(255,248,239,.105),rgba(255,255,255,.035) 48%,rgba(124,51,65,.09));
  box-shadow:0 34px 100px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.12),0 0 55px rgba(139,53,67,.08);
  -webkit-backdrop-filter:blur(26px);backdrop-filter:blur(26px);
}
#auth-screen .auth-brand {margin-bottom:30px}
#auth-screen .auth-logo {width:82px;height:82px;margin-bottom:20px;border-radius:28px;border-color:rgba(241,210,174,.42);box-shadow:0 15px 44px rgba(0,0,0,.35),0 0 35px rgba(139,53,67,.18),inset 0 1px 0 rgba(255,255,255,.17)}
#auth-screen .auth-logo svg {width:53px;height:53px}
#auth-screen .auth-kicker {display:block;margin:0 0 10px;color:rgba(241,210,174,.68);font-size:9px;font-weight:750;letter-spacing:.2em}
#auth-screen .auth-brand h1 {font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;font-size:clamp(28px,7vw,35px);font-weight:500;letter-spacing:-.7px}
#auth-screen .auth-brand p {margin-top:8px;font-size:13px;color:rgba(246,238,230,.72)}
#auth-screen .auth-trust-mark {display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:7px 11px;border:1px solid rgba(241,210,174,.13);border-radius:999px;background:rgba(10,7,6,.2);color:rgba(241,210,174,.72);font-size:10px;letter-spacing:.02em}
#auth-screen .auth-live-dot {width:6px;height:6px;border-radius:50%;background:#c58d76;box-shadow:0 0 9px rgba(197,141,118,.85);animation:authLivePulse 2s ease-in-out infinite}
@keyframes authLivePulse {50%{opacity:.35;transform:scale(.78)}}
#auth-screen .auth-form-heading {margin-bottom:24px}
#auth-screen .auth-form-eyebrow {display:block;margin-bottom:8px;color:rgba(241,210,174,.7);font-size:9px;font-weight:800;letter-spacing:.2em}
#auth-screen .auth-form h2 {font-family:"Iowan Old Style","Palatino Linotype",Georgia,serif;font-size:25px;font-weight:500;letter-spacing:-.35px}
#auth-screen .auth-subtitle {margin:8px 0 0;color:rgba(246,238,230,.62);font-size:12px;line-height:1.65}
#auth-screen .field {margin-bottom:18px}
#auth-screen .field label {margin-bottom:9px;color:rgba(246,238,230,.88);font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
#auth-screen .field input {
  min-height:54px;padding:14px 16px;border:1px solid rgba(241,210,174,.19);border-radius:15px;
  background:rgba(5,4,4,.42);color:#fff7ef;font-size:14px;
}
#auth-screen .field input:focus {border-color:rgba(241,210,174,.78);box-shadow:0 0 0 3px rgba(241,210,174,.11),0 0 24px rgba(139,53,67,.12)}
#auth-screen .field input:invalid:not(:placeholder-shown) {border-color:rgba(190,93,100,.72)}
#auth-screen .btn--primary {min-height:55px;margin-top:10px;border-radius:16px;background:linear-gradient(105deg,#a96b62 0%,#873c4a 54%,#60303a 100%);box-shadow:0 14px 30px rgba(75,25,35,.34),inset 0 1px 0 rgba(255,255,255,.18);letter-spacing:.06em;text-transform:uppercase}
#auth-screen .btn--primary:focus-visible,#auth-screen .auth-switch button:focus-visible {outline:2px solid #f1d2ae;outline-offset:4px}
#auth-screen .btn--primary:disabled {opacity:.62;filter:saturate(.7);cursor:wait}
#auth-screen .auth-message {min-height:16px;margin-top:13px;color:#f1d2ae}
#auth-screen .auth-switch {margin-top:22px;padding-top:19px;border-color:rgba(241,210,174,.16);font-size:12px}
#auth-screen .auth-switch button {color:#f3cba6}
#auth-screen .auth-form[hidden] {display:none!important}
@media(max-width:390px) {
  #auth-screen.auth-screen {padding-left:12px;padding-right:12px}
  #auth-screen .auth-card {padding:24px 19px;border-radius:26px}
  #auth-screen .auth-brand {margin-bottom:25px}
}
@media(prefers-reduced-motion:reduce) {
  .auth-intro-mark,.auth-intro-orbit,.auth-intro-progress span,#auth-screen .auth-live-dot {animation:none!important}
  .auth-intro-loader {transition:none}
}

/* Tweaklr main Daily Update comments */
.tw-comments-panel{padding:2px 0 10px}
.tw-comments-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 16px;border-bottom:1px solid var(--border)}
.tw-comments-toolbar>div{display:flex;flex-direction:column;gap:3px}
.tw-comments-kicker{font-size:9px;font-weight:800;letter-spacing:.17em;color:var(--coffee);text-transform:uppercase}
.tw-comments-toolbar strong{font-size:15px;font-weight:700;color:var(--text)}
.tw-comments-live{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:10px}
.tw-comments-live i{width:6px;height:6px;border-radius:50%;background:#5d9b72;box-shadow:0 0 0 3px rgba(93,155,114,.12)}
.tw-comments-list{padding:2px 0}
.tw-comment{padding:14px 0 3px}
.tw-comment-main{display:flex;align-items:flex-start;gap:9px}
.tw-comment-avatar,.tw-comment-compose-avatar{flex:0 0 auto}
.tw-comment-content{min-width:0;flex:1}
.tw-comment-bubble{display:inline-block;max-width:100%;padding:10px 13px;border:1px solid var(--border);border-radius:4px 17px 17px 17px;background:var(--surface,rgba(73,50,36,.055))}
.tw-comment-author{font-size:12px;font-weight:750;color:var(--text);margin-bottom:4px}
.tw-comment-text{font-size:13px;line-height:1.52;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
.tw-comment-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 3px 0;font-size:10px;color:var(--muted)}
.tw-comment-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tw-comment-actions button{display:inline-flex;align-items:center;gap:4px;border:0;padding:2px 0;background:transparent;color:var(--muted);font:inherit;font-weight:650;cursor:pointer}
.tw-comment-actions button svg{width:12px;height:12px}
.tw-comment-actions button.is-liked{color:var(--coffee)}
.tw-comment-actions button:disabled{opacity:.5;cursor:wait}
.tw-comment-replies{margin:7px 0 0 43px;padding-left:12px;border-left:1px solid var(--border)}
.tw-comment-replies .tw-comment{padding-top:9px}
.tw-comment-replies .tw-comment-bubble{background:transparent}
.tw-comment-edit-form{min-width:min(64vw,340px)}
.tw-comment-edit-form textarea{display:block;width:100%;min-height:68px;resize:vertical;border:1px solid var(--border);border-radius:11px;padding:9px;background:var(--bg);color:var(--text);font:inherit;font-size:13px}
.tw-comment-edit-form>div{display:flex;justify-content:flex-end;gap:8px;margin-top:7px}
.tw-comment-edit-form button{border:0;border-radius:9px;padding:6px 10px;background:var(--bg);color:var(--muted);font-size:11px;font-weight:700}
.tw-comment-edit-form button[type=submit]{background:var(--coffee);color:#fff}
.tw-comments-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:36px 15px 40px;color:var(--muted)}
.tw-comments-empty>span{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:rgba(73,50,36,.09);color:var(--coffee);margin-bottom:12px}
.tw-comments-empty>span svg{width:20px;height:20px}
.tw-comments-empty strong{font-size:14px;color:var(--text)}
.tw-comments-empty p{max-width:230px;margin:5px 0 0;font-size:12px;line-height:1.5}
.tw-comment-composer-wrap{padding:11px 0 2px;border-top:1px solid var(--border)}
.tw-comment-replying{display:flex;align-items:center;justify-content:space-between;margin:0 2px 9px;padding:7px 10px;border-radius:10px;background:rgba(73,50,36,.08);font-size:11px;color:var(--muted)}
.tw-comment-replying strong{color:var(--text)}
.tw-comment-replying button{display:grid;place-items:center;border:0;background:transparent;color:var(--muted);padding:2px}
.tw-comment-replying button svg{width:14px;height:14px}
.tw-comment-composer{display:flex;align-items:flex-end;gap:9px}
.tw-comment-composer textarea{flex:1;min-width:0;max-height:110px;min-height:42px;resize:none;border:1px solid var(--border);border-radius:17px;padding:11px 13px;background:var(--bg);color:var(--text);font:inherit;font-size:13px;line-height:1.4;outline:none}
.tw-comment-composer textarea:focus{border-color:var(--coffee);box-shadow:0 0 0 3px rgba(73,50,36,.09)}
.tw-comment-send{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:0;border-radius:14px;background:#493224;color:#fff;box-shadow:0 6px 16px rgba(73,50,36,.2)}
.tw-comment-send:disabled{opacity:.5}
.tw-comment-send svg{width:17px;height:17px}
.tw-comment-compose-hint{display:flex;justify-content:space-between;gap:8px;padding:6px 3px 0;color:var(--muted);font-size:9px}
@media(max-width:380px){.tw-comment-replies{margin-left:34px;padding-left:9px}.tw-comment-actions{gap:9px}.tw-comment-bubble{padding:9px 11px}}


/* Daily Update comment privacy controls */
.tw-comment-privacy-options{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 2px 46px}
.tw-comment-privacy-options label{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line,rgba(120,100,80,.2));border-radius:999px;font-size:11px;color:var(--muted,#8b8178);cursor:pointer}
.tw-comment-privacy-options input{accent-color:#493224}
.tw-comment-privacy-options label:has(input:checked){border-color:#493224;color:var(--text,#493224);background:rgba(73,50,36,.07)}
.tw-comment-privacy-options label:has(input:disabled){opacity:.65;cursor:default}
.tw-comment-privacy-options label span{display:inline-flex;align-items:center;gap:5px}
.tw-comment-privacy-options svg{width:13px;height:13px}
.tw-comment-privacy-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
.tw-comment-privacy{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;background:rgba(73,50,36,.07);font-size:10px;color:var(--muted,#76685e)}
.tw-comment-privacy svg{width:11px;height:11px}


/* Keep the signed-in profile photo compact in the Daily Update comment composer. */
.tw-comment-compose-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;overflow:hidden}
.tw-comment-compose-avatar .av{width:28px;height:28px;min-width:28px;max-width:28px;flex:0 0 28px}
.tw-comment-compose-avatar .av img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;border-radius:50%}


/* ============================================================
   TWEAKLR HOME — REFINED DAILY UPDATE COMMENTS
   Presentation-only layer. Keeps the existing comment, reply,
   privacy, edit, delete and like behaviour intact.
============================================================ */
#sheet-body:has(.tw-comments-panel) {
  padding: 0 18px 18px;
  background: var(--bg);
}
#sheet-body:has(.tw-comments-panel) .tw-comments-panel {
  padding: 0;
}
#sheet-body:has(.tw-comments-panel) .tw-comments-toolbar {
  position: relative;
  align-items: center;
  margin: 0 -2px 4px;
  padding: 15px 2px 14px;
  border-bottom: 1px solid var(--border);
}
#sheet-body:has(.tw-comments-panel) .tw-comments-toolbar > div {
  gap: 5px;
}
#sheet-body:has(.tw-comments-panel) .tw-comments-kicker {
  color: var(--sage);
  font-size: 9px;
  letter-spacing: .19em;
}
#sheet-body:has(.tw-comments-panel) .tw-comments-toolbar strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.035em;
}
#sheet-body:has(.tw-comments-panel) .tw-comments-live {
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
#sheet-body:has(.tw-comments-panel) .tw-comments-live i {
  width: 6px;
  height: 6px;
  background: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 15%, transparent);
}
#sheet-body:has(.tw-comments-panel) .tw-comments-list {
  padding: 5px 0 2px;
}
#sheet-body:has(.tw-comments-panel) .tw-comment {
  padding: 13px 0 5px;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-main {
  gap: 10px;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-xs);
}
#sheet-body:has(.tw-comments-panel) .tw-comment-avatar .av,
#sheet-body:has(.tw-comments-panel) .tw-comment-avatar img {
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-content {
  min-width: 0;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-bubble {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 11px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 5px 17px 17px 17px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(30, 22, 16, .035);
}
#sheet-body:has(.tw-comments-panel) .tw-comment-author {
  margin: 0 0 5px;
  color: var(--coffee);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: -.01em;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-text {
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
  letter-spacing: .002em;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-meta {
  justify-content: flex-start;
  gap: 13px;
  padding: 7px 3px 0;
  color: var(--muted);
  font-size: 10px;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-actions {
  gap: 13px;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-actions button {
  min-height: 24px;
  gap: 5px;
  padding: 2px 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  transition: color .18s ease, transform .18s ease;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-actions button:hover {
  color: var(--coffee);
}
#sheet-body:has(.tw-comments-panel) .tw-comment-actions button:active {
  transform: scale(.96);
}
#sheet-body:has(.tw-comments-panel) .tw-comment-actions button svg {
  width: 13px;
  height: 13px;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-actions button.is-liked {
  color: var(--burgundy);
}
#sheet-body:has(.tw-comments-panel) .tw-comment-replies {
  margin: 9px 0 0 45px;
  padding: 1px 0 1px 12px;
  border-left: 2px solid color-mix(in srgb, var(--sage) 28%, var(--border));
}
#sheet-body:has(.tw-comments-panel) .tw-comment-replies .tw-comment {
  padding: 8px 0 2px;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-replies .tw-comment-avatar {
  width: 29px;
  height: 29px;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-replies .tw-comment-bubble {
  padding: 9px 11px 10px;
  border-radius: 5px 14px 14px 14px;
  background: var(--surface-2);
  box-shadow: none;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-privacy-row {
  gap: 6px;
  margin: 6px 2px 0;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-privacy {
  padding: 4px 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}
#sheet-body:has(.tw-comments-panel) .tw-comment-edit-form textarea {
  min-height: 76px;
  border-color: var(--border-strong);
  border-radius: 13px;
  background: var(--bg);
  color: var(--text);
}
#sheet-body:has(.tw-comments-panel) .tw-comments-empty {
  margin: 15px 0 9px;
  padding: 34px 18px 36px;
  border: 1px dashed var(--border-strong);
  border-radius: 21px;
  background: var(--surface);
}
#sheet-body:has(.tw-comments-panel) .tw-comments-empty > span {
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-2);
  color: var(--sage);
}
#sheet-body:has(.tw-comments-panel) .tw-comments-empty strong {
  font-size: 14px;
  letter-spacing: -.02em;
}
#sheet-body:has(.tw-comments-panel) .tw-comments-empty p {
  max-width: 245px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
#sheet-foot:has(.tw-comment-composer-wrap) {
  padding: 12px 18px calc(13px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -10px 28px rgba(30, 22, 16, .045);
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-composer-wrap {
  padding: 0;
  border: 0;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-replying {
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-replying strong {
  color: var(--text);
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-composer {
  align-items: flex-end;
  gap: 9px;
  padding: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 21px;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(30, 22, 16, .025);
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-compose-avatar {
  align-self: flex-end;
  margin: 0 0 2px 2px;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-composer textarea {
  min-height: 40px;
  max-height: 112px;
  padding: 10px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: none;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-composer textarea::placeholder {
  color: var(--muted);
  opacity: .9;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-composer textarea:focus {
  border: 0;
  box-shadow: none;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-send {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0 0 1px;
  border: 0;
  border-radius: 14px;
  background: var(--coffee-dark);
  color: #fff8ef;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, opacity .18s ease;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-send:active {
  transform: scale(.94);
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-send svg {
  width: 17px;
  height: 17px;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-privacy-options {
  gap: 7px;
  margin: 10px 0 1px 2px;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-privacy-options label {
  gap: 6px;
  padding: 7px 10px;
  border-color: var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-privacy-options label:has(input:checked) {
  border-color: color-mix(in srgb, var(--sage) 48%, var(--border));
  background: color-mix(in srgb, var(--sage) 10%, var(--surface));
  color: var(--sage);
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-privacy-options input {
  width: 13px;
  height: 13px;
  accent-color: var(--sage);
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-privacy-options svg {
  width: 12px;
  height: 12px;
}
#sheet-foot:has(.tw-comment-composer-wrap) .tw-comment-compose-hint {
  padding: 8px 3px 0;
  color: var(--muted);
  font-size: 9px;
}
@media (max-width: 380px) {
  #sheet-body:has(.tw-comments-panel) { padding-inline: 13px; }
  #sheet-foot:has(.tw-comment-composer-wrap) { padding-inline: 13px; }
  #sheet-body:has(.tw-comments-panel) .tw-comment-replies { margin-left: 36px; padding-left: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  #sheet-body:has(.tw-comments-panel) *,
  #sheet-foot:has(.tw-comment-composer-wrap) * { transition: none !important; }
}



/* HOME DAILY UPDATE COMMENTS — dedicated styles for the current markup.
   Scoped to the Home comments sheet so legacy Space comments are untouched. */
.tw-home-comments-shell{width:100%;min-width:0;color:var(--text)}
.tw-home-comments-shell .biz-comments-intro{display:flex;align-items:flex-start;gap:13px;padding:17px 0 16px;border-bottom:1px solid var(--border)}
.tw-home-comments-shell .biz-comments-intro-mark{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--coffee)}
.tw-home-comments-shell .biz-comments-intro-mark svg{width:19px;height:19px}
.tw-home-comments-shell .biz-comments-intro>div:last-child{min-width:0}
.tw-home-comments-shell .biz-comments-eyebrow{display:block;color:var(--sage,var(--coffee));font-size:9px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}
.tw-home-comments-shell .biz-comments-intro h3{margin:4px 0 3px;color:var(--text);font-size:16px;font-weight:780;letter-spacing:-.025em;line-height:1.25}
.tw-home-comments-shell .biz-comments-intro p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.tw-home-comments-shell .biz-comments-list-head{display:flex;align-items:center;justify-content:space-between;padding:15px 1px 4px;color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.14em}
.tw-home-comments-shell .biz-comments-count{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font-size:10px;letter-spacing:0}
.tw-home-comments-shell .biz-comment-list{display:flex;flex-direction:column;gap:2px;min-width:0}
.tw-home-comments-shell .biz-comment-thread{min-width:0;padding:12px 0 3px}
.tw-home-comments-shell .biz-comment-card{display:flex;align-items:flex-start;gap:10px;min-width:0}
.tw-home-comments-shell .biz-comment-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;overflow:hidden;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--muted)}
.tw-home-comments-shell .biz-comment-avatar>.av,.tw-home-comments-shell .biz-comment-avatar>.av img{display:block;width:100%;height:100%;min-width:0;max-width:100%;object-fit:cover;border-radius:50%}
.tw-home-comments-shell .biz-comment-avatar svg{width:16px;height:16px}
.tw-home-comments-shell .biz-comment-avatar--anonymous{background:var(--surface-2);color:var(--coffee)}
.tw-home-comments-shell .biz-comment-content{flex:1;min-width:0}
.tw-home-comments-shell .biz-comment-heading{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;min-width:0;margin:1px 0 6px}
.tw-home-comments-shell .biz-comment-heading strong{color:var(--text);font-size:11px;font-weight:780}
.tw-home-comments-shell .biz-comment-time{color:var(--muted);font-size:9px}
.tw-home-comments-shell .biz-comment-tag{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:9px}
.tw-home-comments-shell .biz-comment-tag svg{width:10px;height:10px}
.tw-home-comments-shell .biz-comment-tag--private{color:var(--coffee);background:var(--surface)}
.tw-home-comments-shell .biz-comment-bubble{display:block;width:fit-content;max-width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:4px 15px 15px 15px;background:var(--surface);color:var(--text);font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
.tw-home-comments-shell .biz-comment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin-top:7px}
.tw-home-comments-shell .biz-comment-actions button{display:inline-flex;align-items:center;gap:4px;padding:3px 0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:10px;font-weight:700;cursor:pointer}
.tw-home-comments-shell .biz-comment-actions button svg{width:12px;height:12px}
.tw-home-comments-shell .biz-comment-actions button.is-liked{color:var(--coffee)}
.tw-home-comments-shell .biz-comment-actions button.is-delete{color:#b56b61}
.tw-home-comments-shell .biz-comment-replies{margin:9px 0 0 45px;padding-left:11px;border-left:1px solid var(--border)}
.tw-home-comments-shell .biz-comment-replies .biz-comment-thread{padding-top:8px}
.tw-home-comments-shell .biz-comment-empty{display:flex;flex-direction:column;align-items:center;padding:30px 12px 27px;text-align:center;color:var(--muted)}
.tw-home-comments-shell .biz-comment-empty>span{display:grid;place-items:center;width:42px;height:42px;margin-bottom:10px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--coffee)}
.tw-home-comments-shell .biz-comment-empty>span svg{width:18px;height:18px}
.tw-home-comments-shell .biz-comment-empty strong{color:var(--text);font-size:13px}
.tw-home-comments-shell .biz-comment-empty p{max-width:230px;margin:5px 0 0;font-size:11px;line-height:1.5}
.tw-home-comments-shell .biz-comment-voice,.tw-home-comments-shell .biz-comment-voice-once{display:flex;align-items:center;gap:9px;max-width:100%;margin-top:7px;padding:9px 11px;border:1px solid var(--border);border-radius:13px;background:var(--surface);color:var(--text);font-size:11px}
.tw-home-comments-shell .biz-comment-voice audio{width:min(100%,240px);height:34px}
.tw-home-comments-shell .biz-comment-voice-icon{color:var(--coffee)}
.tw-home-comments-shell .biz-comment-once-play{margin-left:auto;padding:7px 10px;border:0;border-radius:9px;background:var(--coffee);color:#fff;font-size:10px;font-weight:750}
.tw-home-comments-shell .biz-comment-voice-once small{display:block;margin-top:2px;color:var(--muted);font-size:9px}
#sheet-body:has(.tw-home-comments-shell){padding:0 18px 18px;background:var(--bg)}
#sheet-body:has(.tw-home-comments-shell) .tw-home-comments-shell{padding:0}
#sheet-foot:has(.biz-comment-composer){padding:0 18px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-composer{width:100%;padding:13px 0 0}
#sheet-foot:has(.biz-comment-composer) .tw-comment-replying{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;padding:8px 10px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2);color:var(--muted);font-size:10px}
#sheet-foot:has(.biz-comment-composer) .tw-comment-replying strong{color:var(--text)}
#sheet-foot:has(.biz-comment-composer) .tw-comment-replying button{border:0;background:transparent;color:var(--muted)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-compose-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-compose-heading>div{display:flex;flex-direction:column;gap:3px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-compose-heading strong{color:var(--text);font-size:12px;font-weight:750}
#sheet-foot:has(.biz-comment-composer) #biz-comment-char-count{color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums}
#sheet-foot:has(.biz-comment-composer) .biz-comment-input-wrap textarea{display:block;width:100%;min-height:44px;max-height:110px;resize:none;box-sizing:border-box;padding:11px 13px;border:1px solid var(--border);border-radius:15px;background:var(--bg);color:var(--text);font:inherit;font-size:12px;line-height:1.45;outline:none}
#sheet-foot:has(.biz-comment-composer) .biz-comment-input-wrap textarea:focus{border-color:var(--coffee);box-shadow:0 0 0 3px rgba(73,50,36,.09)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-compose-bottom{display:flex;align-items:center;gap:9px;margin-top:9px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-mic{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2);color:var(--coffee)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-mic svg{width:16px;height:16px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-record-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-record-copy strong{color:var(--text);font-size:10px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-record-copy span{color:var(--muted);font-size:9px;line-height:1.3}
#sheet-foot:has(.biz-comment-composer) .biz-comment-submit{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 12px;border:0;border-radius:12px;background:var(--coffee);color:#fff;font-size:10px;font-weight:750}
#sheet-foot:has(.biz-comment-composer) .biz-comment-submit:disabled{opacity:.45}
#sheet-foot:has(.biz-comment-composer) .biz-comment-submit svg{width:14px;height:14px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-privacy-note{display:flex;align-items:flex-start;gap:6px;margin:9px 1px 0;color:var(--muted);font-size:9px;line-height:1.4}
#sheet-foot:has(.biz-comment-composer) .biz-comment-privacy-note svg{flex:0 0 12px;width:12px;height:12px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-prompt{margin-top:11px;padding:11px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-heading{display:flex;flex-direction:column;gap:4px;margin-bottom:9px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-heading strong{color:var(--text);font-size:12px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-heading small{color:var(--muted);font-size:10px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-grid{display:grid;grid-template-columns:1fr;gap:6px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-choice{display:flex;align-items:center;gap:9px;min-width:0;padding:9px;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--text)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-choice input{position:absolute;opacity:0;pointer-events:none}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-choice.is-selected{border-color:var(--coffee);background:var(--surface-2)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-symbol{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:var(--bg);color:var(--coffee)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-symbol svg{width:14px;height:14px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-choice>span:nth-of-type(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-choice strong{font-size:10px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-choice small{color:var(--muted);font-size:9px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-choice>i{width:8px;height:8px;border:1px solid var(--border);border-radius:50%}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-choice.is-selected>i{border:3px solid var(--coffee);background:var(--surface)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-view-once{display:flex;align-items:center;gap:9px;margin-top:8px;padding:9px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-view-once-icon{color:var(--coffee)}
#sheet-foot:has(.biz-comment-composer) .biz-comment-view-once>span:nth-of-type(2){display:flex;flex:1;flex-direction:column;gap:2px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-view-once strong{font-size:10px}
#sheet-foot:has(.biz-comment-composer) .biz-comment-view-once small{color:var(--muted);font-size:9px}
@media(max-width:390px){.tw-home-comments-shell .biz-comment-replies{margin-left:35px;padding-left:9px}#sheet-foot:has(.biz-comment-composer){padding-left:13px;padding-right:13px}#sheet-foot:has(.biz-comment-composer) .biz-comment-record-copy span{font-size:8px}}

/* HOME COMMENTS — restore independent, touch-friendly scrolling in the sheet.
   Scoped to the Business-style Home comments markup only. */
#sheet:has(.biz-comments-shell) {
  height: min(88dvh, 760px);
  max-height: 88dvh;
  min-height: 0;
  overflow: hidden;
}
#sheet:has(.biz-comments-shell) .sheet-body {
  flex: 1 1 0%;
  min-height: 0;
  height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding-bottom: 18px;
}
#sheet:has(.biz-comments-shell) .sheet-head,
#sheet:has(.biz-comments-shell) .sheet-foot {
  flex: 0 0 auto;
}


/* Near-full-width chat bubbles, as requested. */
#chat-thread .chat-message-row{min-width:0;align-items:flex-start}
#chat-thread .chat-bubble{
  display:block!important;
  flex:0 1 92%!important;
  width:92%!important;
  min-width:0!important;
  max-width:92%!important;
  min-height:0!important;
  height:auto!important;
  padding:4px 10px 4px!important;
  box-sizing:border-box!important;
  font-size:14px!important;
  line-height:1.25!important;
}
#chat-thread .chat-bubble__text{
  display:inline;
  width:auto;
  max-width:100%;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:normal;
}
#chat-thread .chat-bubble__time{
  display:inline-block;
  margin:2px 0 0 5px;
  white-space:nowrap;
  vertical-align:baseline;
  font-size:9px;
  line-height:1.1;
}
#chat-thread .chat-bubble:has(.chat-attachment){
  width:92%!important;
  min-width:0!important;
  max-width:92%!important;
}
/* Public profile photo viewer — full photo with touch and control zoom. */
#modal .public-profile-photo-viewer{
  width:100%;
  height:min(62vh,520px);
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:18px;
  background:rgba(20,16,13,.96);
  touch-action:pan-x pan-y;
}
#modal .public-profile-photo-viewer img{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  transform:scale(1);
  transform-origin:center;
  cursor:zoom-in;
  user-select:none;
  -webkit-user-drag:none;
  transition:transform .12s ease-out;
  touch-action:none;
}
#modal .public-profile-photo-hint{
  margin:9px 0 0;
  color:var(--muted);
  font-size:11px;
  text-align:center;
}




/* Tweaklr cocoa / warm-black view-once voice-note player. */
.tw-vo-voice{
  --tw-vo-progress:0%;
  width:min(100%,330px);
  min-width:0;
  box-sizing:border-box;
  padding:11px 12px 9px;
  border:1px solid rgba(177,132,104,.28);
  border-radius:16px;
  color:#f1d2ae;
  background:linear-gradient(145deg,#241811 0%,#17110e 54%,#100d0b 100%);
  box-shadow:inset 0 1px 0 rgba(255,235,213,.045),0 5px 16px rgba(0,0,0,.12);
}
.tw-vo-head,.tw-vo-main,.tw-vo-foot{display:flex;align-items:center;min-width:0}
.tw-vo-head{justify-content:space-between;gap:10px;margin-bottom:8px}
.tw-vo-label{display:inline-flex;align-items:center;gap:6px;color:#d7ad89;font-size:9px;font-weight:850;letter-spacing:.13em}
.tw-vo-lock{display:grid;place-items:center;width:19px;height:19px;border:1px solid rgba(215,173,137,.42);border-radius:50%;color:#f1d2ae;font-size:8px;letter-spacing:-.04em}
.tw-vo-time{color:#e7c6a5;font-size:10px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.tw-vo-main{gap:10px}
.tw-vo-play-button{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:1px solid rgba(241,210,174,.2);border-radius:50%;color:#fff0dc;background:linear-gradient(145deg,#9b6748,#68412d);box-shadow:0 3px 10px rgba(0,0,0,.24);cursor:pointer}
.tw-vo-play-button:disabled{opacity:.55;cursor:wait}
.tw-vo-play-icon{font-size:13px;transform:translateX(1px)}
.tw-vo-pause{font-size:13px;font-weight:900;letter-spacing:-.12em}
.tw-vo-replay{font-size:20px;line-height:1}
.tw-vo-wave-wrap{position:relative;flex:1 1 auto;min-width:0;height:31px;display:flex;align-items:center}
.tw-vo-wave{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;gap:2px;overflow:hidden;pointer-events:none}
.tw-vo-wave i{display:block;flex:1 1 0;min-width:1px;max-width:4px;height:var(--tw-vo-bar-height);border-radius:4px;background:linear-gradient(90deg,#c38b64 0 var(--tw-vo-progress),rgba(241,210,174,.28) var(--tw-vo-progress) 100%);opacity:.95}
.tw-vo-seek{position:absolute;z-index:2;inset:0;width:100%;height:100%;margin:0;padding:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;touch-action:pan-y}
.tw-vo-seek::-webkit-slider-runnable-track{height:31px;background:transparent}
.tw-vo-seek::-moz-range-track{height:31px;background:transparent}
.tw-vo-seek::-webkit-slider-thumb{-webkit-appearance:none;width:10px;height:10px;margin-top:10px;border:2px solid #f7e2c9;border-radius:50%;background:#875638;box-shadow:0 0 0 2px rgba(135,86,56,.2)}
.tw-vo-seek::-moz-range-thumb{width:8px;height:8px;border:2px solid #f7e2c9;border-radius:50%;background:#875638;box-shadow:0 0 0 2px rgba(135,86,56,.2)}
.tw-vo-speed{flex:0 0 auto;min-width:35px;height:25px;padding:0 7px;border:1px solid rgba(215,173,137,.3);border-radius:999px;color:#f1d2ae;background:rgba(111,67,44,.22);font-size:10px;font-weight:800;cursor:pointer}
.tw-vo-speed-placeholder{flex:0 0 auto;color:rgba(241,210,174,.52);font-size:8px;font-weight:800;letter-spacing:.08em}
.tw-vo-foot{gap:6px;margin-top:8px;padding-top:7px;border-top:1px solid rgba(215,173,137,.12);color:rgba(241,210,174,.62);font-size:9px;line-height:1.35}
.tw-vo-foot-mark{color:#c38b64;font-size:10px}
.tw-vo-voice.is-playing .tw-vo-play-button{background:linear-gradient(145deg,#7b4d35,#4a2e21)}
.tw-vo-voice button:focus-visible,.tw-vo-seek:focus-visible{outline:2px solid #e5b98f;outline-offset:3px}
@media(max-width:420px){
  .tw-vo-voice{padding:10px 10px 8px;border-radius:14px}
  .tw-vo-main{gap:8px}
  .tw-vo-play-button{flex-basis:34px;width:34px;height:34px}
  .tw-vo-wave{gap:1.5px}
  .tw-vo-wave i{max-width:3px}
}


/* TWEAKLR SHARE EXPERIENCE — unified premium post-sharing surface */
.sheet:has(.tw-share-panel) {
  max-height: min(90dvh, 820px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 92% 0%, rgba(139,53,67,.13), transparent 38%),
    linear-gradient(160deg,var(--surface),var(--bg));
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -24px 70px -35px rgba(38,22,17,.46);
}
.sheet:has(.tw-share-panel) .grab {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg,var(--burgundy),var(--champagne));
}
.sheet:has(.tw-share-panel) .sheet-head {
  padding: 7px 20px 13px;
  border-bottom: 1px solid var(--border);
}
.sheet:has(.tw-share-panel) .sheet-head::before {
  content: "T W E A K L R  /  PASS IT ON";
  display: block;
  margin-bottom: 7px;
  color: var(--burgundy);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .19em;
}
.sheet:has(.tw-share-panel) .sheet-head h2 {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -.045em;
}
.sheet:has(.tw-share-panel) .sheet-head p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.45;
}
.sheet:has(.tw-share-panel) .sheet-body {
  padding: 13px 17px calc(20px + env(safe-area-inset-bottom,0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.tw-share-panel { display:grid; gap:15px; min-width:0; }
.tw-share-preview {
  display:flex;
  align-items:stretch;
  gap:12px;
  min-width:0;
  padding:10px;
  border:1px solid var(--border);
  border-radius:19px;
  background:linear-gradient(145deg,var(--surface-2),var(--surface));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 7px 20px rgba(35,22,15,.045);
}
.tw-share-preview__visual {
  flex:0 0 82px;
  width:82px;
  min-height:82px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:linear-gradient(145deg,rgba(139,53,67,.18),rgba(139,94,60,.16));
}
.tw-share-preview__image { display:block;width:100%;height:100%;min-height:82px;max-height:112px;object-fit:cover; }
.tw-share-preview__video,.tw-share-preview__placeholder {
  display:grid;place-items:center;align-content:center;gap:5px;
  width:100%;height:100%;min-height:82px;
  color:var(--burgundy);font-size:21px;
}
.tw-share-preview__video small { font-size:8px;font-weight:850;letter-spacing:.14em; }
.tw-share-preview__copy { display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;min-width:0;gap:4px; }
.tw-share-eyebrow { display:block;color:var(--burgundy);font-size:8px;font-weight:850;letter-spacing:.15em;line-height:1.4; }
.tw-share-preview__copy strong {
  display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  color:var(--text);font-size:13px;font-weight:780;line-height:1.35;letter-spacing:-.02em;
}
.tw-share-preview__copy p {
  display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  margin:0;color:var(--muted);font-size:10.5px;line-height:1.45;overflow-wrap:anywhere;
}
.tw-share-quick-actions {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
}
.tw-share-quick-actions button {
  display:flex;min-width:0;min-height:72px;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;
  padding:10px 11px;border:1px solid var(--border);border-radius:16px;
  background:linear-gradient(150deg,var(--surface-2),var(--surface));color:var(--text);text-align:left;
  transition:transform var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease);
}
.tw-share-quick-actions button:active { transform:scale(.975);border-color:var(--coffee-light); }
.tw-share-action-icon {
  display:grid;place-items:center;width:29px;height:29px;border-radius:10px;
  background:linear-gradient(145deg,var(--burgundy),var(--coffee-dark));color:#fff8f0;font-size:17px;
  box-shadow:0 4px 10px rgba(73,50,36,.15);
}
.tw-share-quick-actions b { display:block;font-size:10.5px;font-weight:760;line-height:1.25; }
.tw-share-quick-actions small { display:block;margin-top:2px;color:var(--muted);font-size:9px;line-height:1.3; }
.tw-share-section-head { display:flex;align-items:center;justify-content:space-between;margin:0 1px 9px; }
.tw-share-section-head h3 { margin:3px 0 0;color:var(--text);font-size:14px;font-weight:780;letter-spacing:-.025em; }
.tw-share-section-head p { margin:3px 0 0;color:var(--muted);font-size:10.5px;line-height:1.4; }
.tw-share-search {
  display:flex;align-items:center;gap:10px;min-height:48px;margin:0 0 11px;padding:0 13px;
  border:1px solid var(--border-strong);border-radius:15px;background:var(--surface-2);color:var(--coffee-light);
  transition:border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease);
}
.tw-share-search:focus-within { border-color:var(--coffee-light);box-shadow:0 0 0 3px rgba(139,53,67,.10); }
.tw-share-search > span { flex:0 0 auto;font-size:21px;line-height:1; }
.tw-share-search input {
  width:100%;min-width:0;min-height:44px;padding:0;border:0;outline:0;background:transparent;color:var(--text);
  font:inherit;font-size:12px;box-shadow:none;
}
.tw-share-search input:focus { border:0;outline:0;box-shadow:none; }
.tw-share-search input::placeholder { color:var(--muted);opacity:.9; }
.tw-share-connections-head { margin-top:14px; }
.tw-share-panel .share-update-recipients { margin:0;padding:0!important; }
.tw-share-panel .share-update-recipients .section-head { padding:0 1px 9px; }
.tw-share-panel .share-update-recipients .opt {
  min-height:58px;padding:8px 9px;border:1px solid transparent;border-radius:15px;
}
.tw-share-panel .share-update-recipients .opt:active { background:var(--surface-2);border-color:var(--border); }
.tw-share-panel .share-update-recipients .opt .go {
  display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:var(--surface-2);color:var(--burgundy);
}
.tw-share-panel .share-update-recipients .center-note {
  padding:13px 11px;border:1px dashed var(--border-strong);border-radius:14px;font-size:11px;line-height:1.5;
}
@media(max-width:380px) {
  .sheet:has(.tw-share-panel) .sheet-body { padding-right:13px;padding-left:13px; }
  .tw-share-preview { gap:9px;padding:8px; }
  .tw-share-preview__visual { flex-basis:70px;width:70px;min-height:74px; }
  .tw-share-quick-actions { gap:6px; }
  .tw-share-quick-actions button { min-height:68px;padding:8px; }
}
@media(prefers-reduced-motion:reduce) {
  .sheet:has(.tw-share-panel) *, .sheet:has(.tw-share-panel) *::before, .sheet:has(.tw-share-panel) *::after { transition:none!important;animation:none!important; }
}


/* Post like count: separate tap target from the like/unlike action */
.like-control {
  display:inline-flex;
  align-items:center;
  gap:2px;
  min-height:34px;
}
.like-control > .act {
  min-width:34px;
  min-height:34px;
}
.like-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:25px;
  min-height:34px;
  padding:0 5px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:12px;
  font-weight:750;
  font-variant-numeric:tabular-nums;
  cursor:pointer;
  transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease);
}
.like-count:active { background:var(--surface-2);color:var(--burgundy); }
.like-count:focus-visible { outline:2px solid var(--coffee-light);outline-offset:2px; }
.post-likers-list { display:grid;gap:3px;padding:2px 0 8px; }
.post-liker-row {
  display:flex;align-items:center;gap:12px;min-height:62px;padding:8px 10px;
  border:1px solid transparent;border-radius:15px;
  background:linear-gradient(110deg,var(--surface-2),transparent);
}
.post-liker-identity { display:flex;flex:1;min-width:0;flex-direction:column;gap:3px; }
.post-liker-identity b { overflow:hidden;color:var(--text);font-size:13px;font-weight:760;text-overflow:ellipsis;white-space:nowrap; }
.post-liker-identity small { overflow:hidden;color:var(--muted);font-size:10.5px;text-overflow:ellipsis;white-space:nowrap; }
.post-liker-heart { color:var(--burgundy);font-size:14px;opacity:.85; }
.post-likers-empty,.post-likers-loading {
  display:flex;min-height:150px;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  color:var(--muted);text-align:center;
}
.post-likers-empty > span { color:var(--burgundy);font-size:27px; }
.post-likers-empty b { color:var(--text);font-size:13px; }
.post-likers-empty small,.post-likers-loading p { margin:0;font-size:11px; }


/* ============================================================
   NAVIGATION CLEARANCE — GLOBAL BOTTOM-EDGE RULE
   Transient sheets are kept entirely above the persistent mobile
   navigation. Navigation changes also dismiss open sheets in JS.
   No screen content or sheet may occupy the navigation strip.
============================================================ */
@media (max-width: 899px) {
  .app > .nav {
    z-index: 100;
    bottom: 0;
  }
  .app > .screen {
    padding-bottom: 0;
  }
  .app > .sheet {
    bottom: calc(var(--nav-h) + var(--safe-b));
    max-height: calc(100% - var(--nav-h) - var(--safe-b));
    z-index: 90;
  }
  .app > .scrim {
    z-index: 80;
  }
}


/* ============================================================
   PERMANENT MOBILE NAVIGATION
   The five primary navigation buttons occupy one fixed bottom
   position at all times. Stack screens, sheets and scroll events
   cannot hide, slide, resize or reposition this navigation.
============================================================ */
@media (max-width: 899px) {
  .app > .nav,
  .app > .nav.hidden {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    height: var(--nav-h) !important;
    min-height: var(--nav-h) !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 100 !important;
    transition: none !important;
  }
  /* Search keyboard state is the one intentional exception to persistent nav. */
  .app > .nav.search-keyboard-hidden {
    display: none !important;
  }
}



/* Activity composer — theme-aware date and time control */
#nu-when {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #FFFDF9;
  color: #30251E;
  color-scheme: light;
  font: inherit;
  font-size: 15px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast);
}
#nu-when:focus {
  outline: none;
  border-color: var(--coffee-light);
}
[data-theme="dark"] #nu-when {
  background: #17120F;
  color: var(--text);
  border-color: var(--border-strong);
  color-scheme: dark;
}
[data-theme="dark"] #nu-when:focus {
  background: #1C1511;
  border-color: var(--coffee);
}


/* Edit Profile — compact avatar with presence anchored to its edge. */
#modal .ep-avatar-row { display:flex; align-items:center; gap:14px; min-width:0; }
#modal .ep-avatar-change { display:flex; flex:1 1 auto; align-self:stretch; align-items:center; justify-content:center; min-width:0; box-sizing:border-box; text-align:center; padding:0 12px; }
#modal .ep-avatar-change-text { display:grid; place-items:center; width:100%; min-height:100%; line-height:1.25; text-align:center; }
#modal .ep-avatar-preview { display:grid; place-items:center; flex:0 0 60px; width:60px; height:60px; }
#modal .ep-avatar-preview .av-ring { display:block; flex:0 0 60px; width:60px; height:60px; padding:2px; box-sizing:border-box; }
#modal .ep-avatar-preview .av { position:relative; display:grid; width:56px; height:56px; min-width:56px; min-height:56px; max-width:56px; max-height:56px; overflow:visible; box-sizing:border-box; }
#modal .ep-avatar-preview .av > img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
#modal .ep-avatar-preview .av .status { position:absolute; right:2px; bottom:2px; width:12px; height:12px; border:2px solid var(--surface); border-radius:50%; z-index:2; }

/* Composer back control — shared by every composer sheet. */
.sheet-head--with-back {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Keep the branded header ornament from pushing the back control out of place. */
.sheet-head--with-back::before {
  content: none;
  display: none;
}
.sheet-head--with-back .composer-back {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.sheet-head--with-back .composer-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sheet-head--with-back .composer-back:active {
  transform: scale(.94);
  background: var(--surface);
}
.sheet-head--with-back .composer-back:focus-visible {
  outline: 2px solid var(--coffee-light);
  outline-offset: 2px;
}
.sheet-head--with-back .sheet-head-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 1px;
}
@media (hover: hover) {
  .sheet-head--with-back .composer-back:hover {
    background: var(--surface);
    border-color: var(--coffee-light);
  }
}



/* Compact post-type cards shown at the top-right of post headers. */
.post-type-card {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.post-type-card .kind {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid rgba(139, 53, 67, .14);
  border-radius: 8px;
  background: rgba(139, 53, 67, .08);
  color: var(--burgundy, #8B3543);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .035em;
  line-height: 1;
  white-space: nowrap;
}
.acard { position: relative; }
.acard > .post-type-card {
  position: absolute;
  top: 10px;
  right: 10px;
}
.friend-post-type-card { align-self: flex-start; }


/* ============================================================
   PLACES DISCOVERY — global interest matching experience
============================================================ */
.places-header-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-xs);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.places-header-btn svg,
.places-back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.places-header-btn:active,
.places-add-btn:active { transform: scale(.97); }
.places-screen { background:
  radial-gradient(ellipse at 85% 4%, rgba(139,53,67,.13), transparent 38%),
  var(--bg);
}
.places-topbar { border-bottom: 1px solid var(--border); }
.places-back {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text); background: var(--surface);
}
.places-heading { flex: 1 1 auto; min-width: 0; }
.places-heading .topbar-title { line-height: 1.2; }
.places-heading .topbar-sub { font-size: 11px; }
.places-add-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; min-height: 38px; padding: 0 12px;
  border-radius: 999px; background: var(--coffee-dark); color: #F7EDE2;
  font-size: 12px; font-weight: 750; white-space: nowrap;
}
.places-add-btn span { font-size: 17px; line-height: 1; }
.places-intro { padding: 25px 20px 17px; }
.places-intro-kicker {
  color: var(--burgundy); font-size: 9px; font-weight: 850;
  letter-spacing: .19em; margin-bottom: 8px;
}
.places-intro h1 {
  margin: 0; max-width: 320px; font-size: clamp(25px,7vw,34px);
  line-height: 1.08; letter-spacing: -.045em; font-weight: 780;
}
.places-intro p {
  max-width: 340px; margin: 9px 0 0;
  color: var(--muted); font-size: 13px; line-height: 1.55;
}
.places-feed { padding: 0 16px 18px; display: grid; gap: 13px; }
.places-loading { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.place-post {
  position: relative; overflow: hidden; width: 100%; text-align: left;
  border: 1px solid var(--border); border-radius: 22px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--text); animation: placePostIn .32s var(--ease-out) both;
}
.place-post-art {
  height: 128px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(241,210,174,.42), transparent 22%),
    radial-gradient(ellipse at 25% 100%, rgba(139,53,67,.75), transparent 58%),
    linear-gradient(130deg,#20120F,#6D3440 55%,#1B1210);
}
.place-post-art:before,.place-post-art:after {
  content:""; position:absolute; border:1px solid rgba(241,210,174,.2);
  border-radius:50%; transform:rotate(-24deg);
}
.place-post-art:before { width:210px;height:90px;right:-34px;top:12px; }
.place-post-art:after { width:150px;height:64px;right:6px;top:26px; }
.place-post-art-label {
  position:absolute; left:14px; bottom:12px; z-index:1;
  color:#F7EBDD; font-size:9px; font-weight:850; letter-spacing:.16em;
  text-transform:uppercase;
}
.place-post-copy { padding:14px 15px 15px; }
.place-post-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.place-post-name { font-size:17px; line-height:1.2; font-weight:780; letter-spacing:-.025em; }
.place-post-kind { margin-top:4px; color:var(--muted); font-size:11px; }
.place-post-distance {
  flex:0 0 auto; padding:5px 8px; border-radius:999px;
  background:var(--surface-2); color:var(--muted); font-size:10px; font-weight:700;
}
.place-post-note { margin:10px 0 0; color:var(--text); opacity:.82; font-size:12px; line-height:1.55; }
.place-post-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
.place-post-tags span {
  padding:5px 8px; border:1px solid var(--border);
  border-radius:999px; color:var(--burgundy); font-size:10px; font-weight:700;
  background:rgba(139,53,67,.055);
}
.place-post-foot {
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-top:13px; padding-top:10px; border-top:1px solid var(--border);
  color:var(--muted); font-size:10px;
}
.place-post-foot b { color:var(--burgundy); font-weight:800; }
@keyframes placePostIn { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:none; } }
[data-theme="dark"] .place-post { background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025)); }
[data-theme="dark"] .place-post-tags span { background:rgba(217,143,160,.08); }
.place-composer-mode {
  display:flex; align-items:flex-start; gap:11px; padding:13px;
  border:1px solid var(--border); border-radius:15px;
  background:var(--surface); margin-top:9px;
}
.place-composer-mode input { accent-color:var(--burgundy); margin-top:3px; }
.place-composer-mode b { display:block; font-size:13px; }
.place-composer-mode small { display:block; margin-top:3px; color:var(--muted); font-size:11px; line-height:1.45; }
.place-hashtag-hint { margin-top:6px; color:var(--muted); font-size:11px; line-height:1.45; }
.place-tag-preview { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.place-tag-preview span {
  padding:5px 8px; border-radius:999px; color:var(--burgundy);
  border:1px solid var(--border-strong); font-size:11px; font-weight:750;
}
@media (prefers-reduced-motion: reduce) {
  .place-post { animation:none; }
  .places-header-btn:active,.places-add-btn:active { transform:none; }
}


/* Places image-led editorial cards */
.place-post-art {
  height: clamp(188px, 54vw, 248px);
  background:
    radial-gradient(circle at 78% 28%, rgba(241,210,174,.5), transparent 22%),
    radial-gradient(ellipse at 25% 100%, rgba(139,53,67,.82), transparent 58%),
    linear-gradient(130deg,#20120F,#6D3440 55%,#1B1210);
  isolation:isolate;
}
.place-post-art.has-image {
  background-image:linear-gradient(180deg,rgba(10,7,6,.05) 24%,rgba(10,7,6,.76) 100%),var(--place-image);
  background-size:cover;
  background-position:center;
}
.place-post-art.has-image:before,.place-post-art.has-image:after { display:none; }
.place-post-art-label { top:14px; bottom:auto; }
.place-post-art-label i { color:#D9A9A0; font-style:normal; padding:0 3px; }
.place-post-photo-mark {
  position:absolute;left:15px;bottom:14px;z-index:2;
  color:#fff7ed;font-size:9px;font-weight:850;letter-spacing:.18em;
  text-shadow:0 2px 12px rgba(0,0,0,.35);
}
.place-post-art-orbit {
  position:absolute;right:22px;top:50%;transform:translateY(-50%);
  display:grid;place-items:center;width:76px;height:76px;border-radius:50%;
  color:#F1D2AE;font-size:28px;
  border:1px solid rgba(241,210,174,.32);
  box-shadow:0 0 0 12px rgba(241,210,174,.045),0 0 44px rgba(241,210,174,.12);
}
.place-post-copy { padding:16px 16px 17px; }
.place-post-name { font-size:19px; }
.place-post-kind { letter-spacing:.045em; text-transform:uppercase; font-size:10px; font-weight:750; }
.place-post-distance { border:1px solid var(--border); }
.place-detail-hero {
  overflow:hidden;border-radius:19px;margin:3px 0 16px;
  aspect-ratio:16/10;background:var(--surface-2);
}
.place-detail-hero img { width:100%;height:100%;display:block;object-fit:cover; }
.place-detail-fallback {
  min-height:145px;border-radius:19px;margin:3px 0 16px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
  color:#F1D2AE;background:
    radial-gradient(circle at 70% 25%,rgba(241,210,174,.18),transparent 22%),
    radial-gradient(ellipse at 25% 100%,rgba(139,53,67,.68),transparent 58%),
    linear-gradient(130deg,#20120F,#6D3440 55%,#1B1210);
}
.place-detail-fallback span { font-size:34px; }
.place-detail-fallback b { font-size:9px;letter-spacing:.2em; }
.place-detail-note {font-size:14.5px;line-height:1.65;color:var(--text);margin:0 0 12px;}
.place-image-field { margin-bottom:16px; }
.place-image-picker {
  display:flex;align-items:center;gap:13px;padding:14px;
  border:1px dashed var(--border-strong);border-radius:17px;
  background:var(--surface-2);cursor:pointer;
}
.place-image-picker-icon {
  width:42px;height:42px;display:grid;place-items:center;border-radius:13px;
  color:var(--burgundy);background:rgba(139,53,67,.1);font-size:24px;
}
.place-image-picker b {display:block;font-size:13px;color:var(--text);}
.place-image-picker small {display:block;margin-top:3px;color:var(--muted);font-size:11px;}
.place-image-preview {position:relative;margin-top:10px;overflow:hidden;border-radius:16px;aspect-ratio:16/9;background:var(--surface-2);}
.place-image-preview[hidden] {display:none!important;}
.place-image-preview img {width:100%;height:100%;object-fit:cover;display:block;}
.place-image-remove {
  position:absolute;right:10px;top:10px;width:32px;height:32px;border:0;border-radius:50%;
  background:rgba(15,10,8,.78);color:#fff;font-size:22px;line-height:1;cursor:pointer;
}
[data-theme="dark"] .place-image-picker {background:rgba(255,255,255,.035);}
@media (min-width:620px) {
  .places-feed {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:17px;}
  .place-post-art {height:220px;}
}
@media (prefers-reduced-motion:reduce) {
  .place-post {animation:none;}
}


/* Places composer identity fields — theme-aware in both light and dark mode */
.place-identity-field {
  position:relative;
  margin-top:14px;
  padding:12px 13px 13px;
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(145deg,var(--surface-2),var(--surface));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  transition:border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease);
}
.place-identity-field:focus-within {
  border-color:var(--burgundy);
  background:var(--surface);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--burgundy) 13%,transparent);
}
.place-identity-field > label {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
  color:var(--text);
  font-size:12px;
  font-weight:700;
  letter-spacing:.015em;
}
.place-identity-label-mark {
  display:inline-grid;
  place-items:center;
  width:23px;
  height:20px;
  border-radius:7px;
  color:var(--burgundy);
  background:color-mix(in srgb,var(--burgundy) 12%,transparent);
  font-size:9px;
  font-weight:800;
  letter-spacing:.04em;
}
.place-identity-field .place-identity-input {
  display:block;
  width:100%;
  min-height:47px;
  padding:12px 13px;
  border:1px solid var(--border-strong);
  border-radius:11px;
  outline:none;
  color:var(--text);
  background:var(--bg);
  font:inherit;
  font-size:14px;
  line-height:1.35;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.035);
  transition:border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease);
}
.place-identity-field .place-identity-input::placeholder { color:var(--muted);opacity:.78; }
.place-identity-field .place-identity-input:focus {
  border-color:var(--burgundy);
  background:var(--surface-2);
}
:root[data-theme="dark"] .place-identity-field {
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
  border-color:rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
:root[data-theme="dark"] .place-identity-field .place-identity-input {
  background:rgba(8,6,5,.32);
  border-color:rgba(255,255,255,.14);
  box-shadow:inset 0 2px 5px rgba(0,0,0,.16);
}
:root[data-theme="dark"] .place-identity-field .place-identity-input:focus {
  background:rgba(255,255,255,.055);
}


/* Saved and archived Places sections */
.places-section-switch {
  display:flex;gap:7px;overflow-x:auto;padding:2px 0 4px;
  scrollbar-width:none;
}
.places-section-switch::-webkit-scrollbar { display:none; }
.places-section-switch button {
  flex:1 0 auto;min-height:42px;display:flex;align-items:center;justify-content:center;
  gap:7px;padding:0 12px;border:1px solid var(--border);border-radius:999px;
  background:var(--surface);color:var(--muted);font:inherit;font-size:11px;font-weight:750;
  white-space:nowrap;transition:background .18s,border-color .18s,color .18s;
}
.places-section-switch button b {
  min-width:19px;height:19px;padding:0 5px;border-radius:999px;display:grid;place-items:center;
  background:var(--surface-2);color:var(--muted);font-size:10px;font-weight:800;
}
.places-section-switch button.is-active {
  color:var(--text);border-color:var(--border-strong);
  background:linear-gradient(135deg,rgba(139,53,67,.14),rgba(241,210,174,.10));
}
.places-section-switch button.is-active b { background:var(--burgundy);color:#fff7ed; }
.places-section-empty { padding:8px 0 14px; }
.places-section-empty .empty-state { margin-top:0; }
[data-theme="dark"] .places-section-switch button { background:rgba(255,255,255,.035); }
[data-theme="dark"] .places-section-switch button.is-active { background:linear-gradient(135deg,rgba(139,53,67,.24),rgba(241,210,174,.07)); }


/* Places saved-member discussion */
.place-discussion{margin-top:22px;padding-top:18px;border-top:1px solid var(--line,rgba(128,96,80,.18))}
.place-discussion-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.place-discussion-head b{font-size:14px}
.place-discussion-head span{font-size:12px;color:var(--muted)}
.place-comment{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--line,rgba(128,96,80,.14))}
.place-comment-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;overflow:hidden;background:var(--surface-2,var(--surface,#eee));display:grid;place-items:center;font-size:12px;font-weight:700}
.place-comment-avatar img{width:100%;height:100%;object-fit:cover}
.place-comment-copy{min-width:0;flex:1}
.place-comment-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
.place-comment-meta b{font-weight:650}
.place-comment-meta span{color:var(--muted)}
.place-comment-copy p{margin:4px 0 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.place-discussion-empty{padding:15px 0;color:var(--muted);font-size:13px}
.place-comment-composer{display:flex;align-items:flex-end;gap:8px;margin-top:14px}
.place-comment-composer textarea{flex:1;min-width:0;min-height:42px;max-height:120px;resize:vertical;border:1px solid var(--line,#ddd);border-radius:14px;padding:11px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:13px}
.place-comment-composer .btn{min-height:42px}
.place-discussion-locked{display:flex;gap:12px;align-items:center;margin-top:20px;padding:14px;border:1px solid var(--line,rgba(128,96,80,.2));border-radius:16px;background:var(--surface-2,rgba(128,96,80,.06))}
.place-discussion-locked>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(139,53,67,.1);color:var(--accent,#8B3543)}
.place-discussion-locked b{font-size:13px}
.place-discussion-locked p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.45}


/* Places likes — independent from saving a place */
.place-sheet-actions{display:flex;align-items:stretch;gap:9px;width:100%}
.place-sheet-actions>.btn{flex:1;min-width:0;justify-content:center;white-space:normal}
.place-like-action{gap:7px}
.place-like-action>span:first-child{font-size:16px;line-height:1}
.place-like-count{font-size:11px;opacity:.82}
.place-post-stats{display:flex;align-items:center;gap:10px;white-space:nowrap}
.place-post-stats>span{font-size:11px;font-weight:750;color:var(--burgundy)}
.place-rail-likes{margin-top:3px;font-weight:750;color:var(--burgundy)!important}


/* People who liked a Places post */
.place-view-likers{display:block;width:100%;margin-top:9px;padding:10px 12px;border:1px solid var(--line,rgba(139,53,67,.2));border-radius:12px;background:transparent;color:var(--coffee);font:700 12px inherit;text-align:center;cursor:pointer}
.place-post-like-count{cursor:pointer;border-radius:8px;padding:3px 5px;touch-action:manipulation;color:#fff!important}.place-post-stats>.place-post-like-count.is-liked{color:#e34b5b!important}
.place-post-like-count:focus-visible,.place-view-likers:focus-visible,.place-liker-row:focus-visible{outline:2px solid var(--burgundy);outline-offset:2px}
.place-likers-list{display:flex;flex-direction:column;gap:2px;padding:4px 0}
.place-liker-row{display:flex;align-items:center;gap:12px;width:100%;padding:11px 8px;border:0;border-bottom:1px solid var(--line,rgba(139,53,67,.12));background:transparent;color:inherit;text-align:left;cursor:pointer}
.place-liker-avatar{width:42px;height:42px;flex:0 0 42px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;background:rgba(139,53,67,.13);color:var(--coffee);font-weight:800}
.place-liker-avatar img{width:100%;height:100%;object-fit:cover}
.place-liker-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.place-liker-copy b{font-size:13px;font-weight:750;color:var(--text,inherit)}
.place-liker-copy small{font-size:11px;color:var(--muted,#888)}
.place-liker-time{font-size:10px;color:var(--muted,#888);white-space:nowrap}
.place-likers-loading,.place-likers-empty,.place-likers-limit{padding:22px 12px;text-align:center;color:var(--muted,#888);font-size:12px;line-height:1.5}
.place-likers-limit{padding-top:8px;font-size:10px}


/* Private creator replies for Places and Activity discussions */
.post-discussion-comment{display:flex;gap:9px;padding:11px 0;border-bottom:1px solid var(--line,#eee);min-width:0}
.post-discussion-comment-copy{min-width:0;flex:1}
.post-discussion-comment-body{font-size:13.5px;line-height:1.5;margin:4px 0 0;overflow-wrap:anywhere}
.creator-private-reply{margin:9px 0 3px;padding:10px 12px;border:1px solid rgba(139,53,67,.22);border-radius:13px;background:rgba(139,53,67,.07)}
.creator-private-reply-label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--muted,#806f64)}
.creator-private-reply p{font-size:13px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}
.creator-private-reply-trigger{margin-top:8px;padding:5px 0;border:0;background:transparent;color:var(--accent,#8B3543);font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
.creator-private-reply-composer{display:grid;gap:8px;margin-top:8px}
.creator-private-reply-composer textarea{width:100%;min-height:68px;resize:vertical;box-sizing:border-box;border:1px solid var(--line,#ddd);border-radius:12px;padding:10px 12px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:13px}
.creator-private-reply-composer .btn{justify-self:end;min-height:36px;padding:7px 13px;font-size:12px}


/* Chat photo/video attachments fill the message bubble, leaving only a slim frame. */
#chat-thread .chat-bubble:has(.chat-attachment--image),
#chat-thread .chat-bubble:has(.chat-attachment--video){
  padding:7px!important;
  overflow:hidden;
}
#chat-thread .chat-attachment--image,
#chat-thread .chat-attachment--video{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:12px!important;
}
#chat-thread .chat-attachment--image img,
#chat-thread .chat-attachment--video video{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:min(70vh,640px)!important;
  margin:0!important;
  object-fit:cover!important;
  border-radius:inherit!important;
}


/* Message reporting */
.chat-report-form { display:flex; flex-direction:column; gap:10px; padding:2px 0 8px; }
.chat-report-form label { color:var(--text); font-size:13px; font-weight:700; }
.chat-report-form .input { width:100%; box-sizing:border-box; }
.chat-report-form textarea { resize:vertical; min-height:88px; }
.chat-report-note { margin:0 0 4px; color:var(--muted); font-size:12px; line-height:1.5; }
.chat-report-form .btn { width:100%; min-height:48px; }


/* Multi-select messages */
.chat-selection-toolbar{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:10px;padding:10px 12px;margin:0 0 10px;border:1px solid var(--border,rgba(255,255,255,.12));border-radius:14px;background:var(--surface,rgba(24,20,18,.96));backdrop-filter:blur(14px)}
.chat-selection-toolbar span{flex:1;font-size:13px;font-weight:700;color:var(--text)}
.chat-selection-toolbar button{border:0;border-radius:999px;padding:9px 13px;background:var(--accent,#8B3543);color:#fff;font:inherit;font-size:12px;font-weight:700}
.chat-selection-toolbar button:first-of-type{background:transparent;color:var(--muted)}
.chat-selection-toolbar button:disabled{opacity:.4;cursor:not-allowed}
.chat-message-row{position:relative}
.chat-message-row.is-selected .chat-bubble{outline:2px solid var(--accent,#8B3543);outline-offset:2px}
.chat-select-check{position:absolute;left:-4px;top:50%;transform:translateY(-50%);z-index:2;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:var(--accent,#8B3543);border:2px solid var(--surface,#171311);color:#fff;font-size:12px;font-weight:800}
.chat-message-row--outgoing .chat-select-check{left:auto;right:-4px}


/* Tweaklr signature conversation controls */
.tweaklr-chat-tools {
  position:relative;
  overflow:hidden;
  padding:19px 16px 15px;
  border:1px solid rgba(139,53,67,.20);
  border-radius:22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139,53,67,.16), transparent 42%),
    linear-gradient(145deg, var(--surface-2, #fffaf4), var(--surface, #f6eee5));
  box-shadow:0 12px 32px rgba(73,50,36,.08);
}
.tweaklr-chat-tools__eyebrow {
  color:var(--burgundy, #8b3543);
  font-size:9px;
  font-weight:850;
  letter-spacing:.19em;
}
.tweaklr-chat-tools__intro {
  margin:7px 0 15px;
  color:var(--text, #2e241f);
  font-size:17px;
  font-weight:760;
  letter-spacing:-.035em;
}
.tweaklr-chat-tool {
  width:100%;
  min-height:70px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 11px;
  border:1px solid var(--border, rgba(73,50,36,.12));
  border-radius:16px;
  background:rgba(255,255,255,.62);
  color:var(--text, #2e241f);
  text-align:left;
  cursor:pointer;
}
.tweaklr-chat-tool + .tweaklr-chat-tool { margin-top:9px; }
.tweaklr-chat-tool__icon {
  width:40px;height:40px;flex:0 0 40px;
  display:grid;place-items:center;
  border-radius:13px;
  background:linear-gradient(145deg, var(--burgundy, #8b3543), var(--coffee-dark, #493224));
  color:#fff8f1;
}
.tweaklr-chat-tool__icon svg { width:19px;height:19px; }
.tweaklr-chat-tool__copy { min-width:0;flex:1;display:flex;flex-direction:column;gap:4px; }
.tweaklr-chat-tool__copy strong { font-size:13px;font-weight:780; }
.tweaklr-chat-tool__copy small { color:var(--muted, #88796e);font-size:10.5px;line-height:1.35; }
.tweaklr-chat-tool__chevron { color:var(--muted, #88796e);font-size:24px;line-height:1; }
.tweaklr-chat-tool--clear .tweaklr-chat-tool__icon { background:linear-gradient(145deg,#9a4650,#71313c); }
.tweaklr-chat-tool--block .tweaklr-chat-tool__icon { background:linear-gradient(145deg,#665344,#392b24); }
[data-theme="dark"] .tweaklr-chat-tools { background:radial-gradient(circle at 100% 0%,rgba(139,53,67,.22),transparent 42%),linear-gradient(145deg,#29231f,#1b1715);border-color:rgba(241,210,174,.13); }
[data-theme="dark"] .tweaklr-chat-tools__intro { color:#f7eee5; }
[data-theme="dark"] .tweaklr-chat-tool { background:rgba(255,248,241,.045);border-color:rgba(241,210,174,.12);color:#f7eee5; }


/* ============================================================
   PULSE — compatibility assessment
   Uses the shared Home tokens so the global theme toggle applies.
   ============================================================ */
#screen-tweak .pulse-assessment {
  margin:22px 0 0;
  padding:18px;
  color:var(--text);
}
#screen-tweak .pulse-assessment-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
#screen-tweak .pulse-assessment-head h2,
#screen-tweak .pulse-assessment-complete h2 {
  margin-top:7px;
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.03em;
  font-weight:680;
}
#screen-tweak .pulse-assessment-head p,
#screen-tweak .pulse-assessment-complete p {
  margin-top:7px;
  max-width:42ch;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.55;
}
#screen-tweak .pulse-assessment-count {
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid var(--border);
  border-radius:var(--r-full);
  color:var(--coffee);
  background:var(--surface-2);
  font-size:11px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
#screen-tweak .pulse-progress {
  height:6px;
  margin-top:17px;
  overflow:hidden;
  border-radius:var(--r-full);
  background:var(--surface-2);
}
#screen-tweak .pulse-progress i {
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--sage);
  transition:width .2s ease;
}
#screen-tweak .pulse-progress-label {
  display:flex;
  justify-content:space-between;
  margin-top:7px;
  color:var(--muted);
  font-size:10.5px;
  font-variant-numeric:tabular-nums;
}
#screen-tweak .pulse-question { margin-top:22px; }
#screen-tweak .pulse-question-kicker {
  color:var(--coffee-light);
  font-size:10px;
  font-weight:750;
  letter-spacing:.11em;
}
#screen-tweak .pulse-question h3 {
  margin-top:8px;
  font-size:18px;
  line-height:1.34;
  letter-spacing:-.025em;
  font-weight:650;
}
#screen-tweak .pulse-question > p {
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
}
#screen-tweak .pulse-options {
  display:grid;
  gap:8px;
  margin-top:16px;
}
#screen-tweak .pulse-option {
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  min-height:49px;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface-2);
  color:var(--text);
  text-align:left;
  font-size:12.5px;
  line-height:1.4;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
#screen-tweak .pulse-option:active { transform:scale(.99); }
#screen-tweak .pulse-option.is-selected {
  border-color:var(--sage);
  background:color-mix(in srgb,var(--sage) 13%,var(--surface));
}
#screen-tweak .pulse-option-mark {
  display:grid;
  flex:0 0 19px;
  width:19px;
  height:19px;
  place-items:center;
  border:1.5px solid var(--border-strong);
  border-radius:50%;
  color:#fff;
  font-size:11px;
  font-weight:800;
}
#screen-tweak .pulse-option.is-selected .pulse-option-mark {
  border-color:var(--sage);
  background:var(--sage);
}
#screen-tweak .pulse-assessment-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  margin-top:19px;
}
#screen-tweak .pulse-nav-btn {
  min-height:40px;
  padding:9px 15px;
  border:1px solid var(--border);
  border-radius:var(--r-full);
  font-size:12px;
  font-weight:700;
}
#screen-tweak .pulse-nav-btn:disabled { opacity:.4; cursor:not-allowed; }
#screen-tweak .pulse-nav-primary {
  border-color:var(--coffee-dark);
  background:var(--coffee-dark);
  color:#F7F2EC;
}
#screen-tweak .pulse-nav-secondary {
  color:var(--text);
  background:var(--surface-2);
}
#screen-tweak .pulse-save-state {
  min-width:0;
  color:var(--muted);
  text-align:center;
  font-size:10px;
}
#screen-tweak .pulse-privacy-note {
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:10.5px;
  line-height:1.55;
}
#screen-tweak .pulse-assessment-complete {
  text-align:center;
  padding-top:24px;
  padding-bottom:24px;
}
#screen-tweak .pulse-complete-mark {
  display:grid;
  width:48px;
  height:48px;
  margin:0 auto 14px;
  place-items:center;
  border-radius:50%;
  background:color-mix(in srgb,var(--sage) 18%,var(--surface));
  color:var(--sage);
  font-size:23px;
  font-weight:800;
}
#screen-tweak .pulse-assessment-complete p { margin:9px auto 0; }
#screen-tweak .pulse-complete-stats {
  display:flex;
  justify-content:center;
  gap:24px;
  margin:18px 0;
}
#screen-tweak .pulse-complete-stats span {
  display:grid;
  gap:3px;
  color:var(--muted);
  font-size:10.5px;
}
#screen-tweak .pulse-complete-stats b {
  color:var(--text);
  font-size:18px;
  font-variant-numeric:tabular-nums;
}
#screen-tweak .pulse-assessment-complete .pulse-nav-btn { margin-top:4px; }
@media (max-width:360px) {
  #screen-tweak .pulse-assessment { padding:14px; }
  #screen-tweak .pulse-assessment-actions { flex-wrap:wrap; }
  #screen-tweak .pulse-save-state { order:3; width:100%; }
}


/* ============================================================
   PULSE — calm, focused self-discovery experience
   ============================================================ */
#screen-tweak .pulse-intro { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; min-height:226px; margin:0 0 25px; padding:27px 24px; border:1px solid color-mix(in srgb,var(--sage) 25%,var(--border)); border-radius:26px; background:radial-gradient(ellipse at 92% 8%,color-mix(in srgb,var(--sage) 24%,transparent),transparent 42%),linear-gradient(135deg,var(--surface),var(--surface-2)); color:var(--text); }
#screen-tweak .pulse-intro-copy { position:relative; z-index:2; max-width:510px; }
#screen-tweak .pulse-intro h1 { margin:13px 0 9px; font-size:clamp(29px,6vw,42px); line-height:1.04; letter-spacing:-.055em; font-weight:760; }
#screen-tweak .pulse-intro h1 em { color:var(--sage); font-style:normal; }
#screen-tweak .pulse-intro-copy > p { max-width:47ch; color:var(--muted); font-size:13px; line-height:1.65; }
#screen-tweak .pulse-intro-meta { display:flex; align-items:center; gap:13px; margin-top:19px; color:var(--muted); font-size:10.5px; }
#screen-tweak .pulse-intro-meta b { color:var(--text); font-size:11px; }
#screen-tweak .pulse-meta-divider { width:3px; height:3px; border-radius:50%; background:var(--sage); }
#screen-tweak .pulse-intro-orbit { position:absolute; z-index:1; width:205px; height:205px; right:5%; top:50%; transform:translateY(-50%); border:1px solid color-mix(in srgb,var(--sage) 32%,transparent); border-radius:50%; opacity:.75; }
#screen-tweak .pulse-intro-orbit:before,#screen-tweak .pulse-intro-orbit:after { content:""; position:absolute; inset:18px; border:1px solid color-mix(in srgb,var(--sage) 24%,transparent); border-radius:50%; }
#screen-tweak .pulse-intro-orbit:after { inset:43px; }
#screen-tweak .pulse-intro-orbit span { position:absolute; width:57px; height:57px; top:50%; left:50%; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle at 35% 30%,#d8e0c5,var(--sage) 55%,#63724e); box-shadow:0 0 42px color-mix(in srgb,var(--sage) 38%,transparent); }
#screen-tweak .pulse-intro-orbit i,#screen-tweak .pulse-intro-orbit b { position:absolute; width:8px; height:8px; border-radius:50%; background:var(--sage); }
#screen-tweak .pulse-intro-orbit i { top:24px; left:43px; }
#screen-tweak .pulse-intro-orbit b { right:12px; bottom:48px; width:5px; height:5px; }
#screen-tweak .pulse-journey-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 2px 12px; color:var(--text); }
#screen-tweak .pulse-journey-heading h2 { margin-top:5px; font-size:20px; letter-spacing:-.035em; }
#screen-tweak .pulse-journey-heading p { margin-top:4px; color:var(--muted); font-size:11.5px; }
#screen-tweak .pulse-journey-spark { color:var(--sage); font-size:27px; }
#screen-tweak .pulse-page-note { display:flex; align-items:flex-start; gap:8px; margin:15px 4px 24px; color:var(--muted); font-size:10.5px; line-height:1.55; }
#screen-tweak .pulse-page-note span { color:var(--sage); }
#screen-tweak .pulse-assessment { margin:0; padding:clamp(17px,4vw,25px); border-radius:23px; border:1px solid var(--border); background:var(--surface); box-shadow:0 12px 34px rgba(30,24,18,.045); animation:pulseRiseIn .34s ease both; }
#screen-tweak .pulse-assessment-head h2 { font-size:clamp(20px,4vw,24px); }
#screen-tweak .pulse-assessment-count { padding:7px 10px; border-radius:12px; background:var(--surface-2); }
#screen-tweak .pulse-progress { height:7px; margin-top:20px; }
#screen-tweak .pulse-progress i { background:linear-gradient(90deg,var(--sage),color-mix(in srgb,var(--sage) 55%,var(--coffee))); }
#screen-tweak .pulse-question { margin-top:25px; }
#screen-tweak .pulse-question-kicker { display:inline-flex; padding:6px 9px; border-radius:8px; background:var(--surface-2); }
#screen-tweak .pulse-question h3 { margin-top:13px; font-size:clamp(19px,4vw,23px); line-height:1.3; }
#screen-tweak .pulse-question > p { margin-top:8px; font-size:12.5px; line-height:1.55; }
#screen-tweak .pulse-options { gap:9px; margin-top:19px; }
#screen-tweak .pulse-option { min-height:54px; padding:12px 14px; border-radius:15px; background:var(--surface-2); font-size:12.5px; }
#screen-tweak .pulse-option:hover { border-color:color-mix(in srgb,var(--sage) 65%,var(--border)); }
#screen-tweak .pulse-option.is-selected { border-color:var(--sage); background:color-mix(in srgb,var(--sage) 14%,var(--surface)); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sage) 18%,transparent); }
#screen-tweak .pulse-assessment-actions { margin-top:23px; }
#screen-tweak .pulse-nav-btn { min-height:43px; padding:10px 17px; }
#screen-tweak .pulse-save-state { font-size:10.5px; }
#screen-tweak .pulse-privacy-note { margin-top:17px; }
#screen-tweak .pulse-assessment-complete { padding:30px 22px; }
@keyframes pulseRiseIn { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:600px) {
  #screen-tweak .pulse-intro { min-height:0; padding:23px 19px; border-radius:22px; }
  #screen-tweak .pulse-intro-copy { max-width:100%; padding-right:4px; }
  #screen-tweak .pulse-intro-copy > p { max-width:38ch; }
  #screen-tweak .pulse-intro-orbit { width:120px; height:120px; right:-49px; top:18px; transform:none; opacity:.28; }
  #screen-tweak .pulse-intro-orbit:before { inset:11px; }
  #screen-tweak .pulse-intro-orbit:after { inset:26px; }
  #screen-tweak .pulse-intro-orbit span { width:34px; height:34px; }
  #screen-tweak .pulse-intro-orbit i { top:14px; left:25px; }
  #screen-tweak .pulse-intro-orbit b { right:7px; bottom:28px; }
}
@media (prefers-reduced-motion:reduce) { #screen-tweak .pulse-assessment { animation:none; } #screen-tweak .pulse-option { transition:none; } }



/* ------------------------------------------------------------
   PULSE — minimal TikTok entry
------------------------------------------------------------ */
#screen-tweak #tweak-body{min-height:calc(100dvh - 150px);display:flex;align-items:center;justify-content:center}
#screen-tweak .pulse-login-screen{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:clamp(360px,62vh,620px);overflow:hidden;padding:28px 18px;isolation:isolate}
#screen-tweak .pulse-login-glow{position:absolute;z-index:-1;width:min(78vw,360px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#a3b18a32 0%,#49322417 42%,transparent 72%);filter:blur(12px);pointer-events:none}
#screen-tweak .pulse-login-tiktok{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:13px;min-width:min(310px,88vw);min-height:62px;padding:0 23px;border:1px solid #ffffff25;border-radius:19px;background:linear-gradient(115deg,#171717 0%,#292929 48%,#493224 100%);color:#fffaf4;box-shadow:0 12px 36px #17110e2b,0 0 0 1px #a3b18a16,inset 0 1px #ffffff22;font-family:inherit;font-size:1rem;font-weight:750;letter-spacing:-.015em;cursor:pointer;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
#screen-tweak .pulse-login-tiktok:before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:linear-gradient(120deg,#25f4ee99,#ffffff22 38%,#fe2c5599);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;opacity:.75}
#screen-tweak .pulse-login-tiktok:hover{transform:translateY(-2px);border-color:#ffffff50;box-shadow:0 17px 42px #17110e38,0 0 25px #25f4ee1a,0 0 24px #fe2c5515}
#screen-tweak .pulse-login-tiktok:active{transform:scale(.985)}
#screen-tweak .pulse-login-tiktok:focus-visible{outline:3px solid #a3b18a;outline-offset:5px}
#screen-tweak .pulse-login-tiktok:disabled{opacity:.78;cursor:wait;transform:none}
#screen-tweak .pulse-login-tiktok-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#ffffff12;color:#fff}
#screen-tweak .pulse-login-tiktok-icon svg{display:block;width:22px;height:22px}
#screen-tweak .pulse-login-tiktok-label{white-space:nowrap}
#screen-tweak .pulse-login-tiktok-arrow{margin-left:5px;color:#d5b18f;font-size:1.1rem;transition:transform .2s ease}
#screen-tweak .pulse-login-tiktok:hover .pulse-login-tiktok-arrow{transform:translate(2px,-2px)}
#screen-tweak .pulse-login-results{width:min(100%,760px);margin-top:24px}
#screen-tweak .pulse-login-results:empty{display:none}
#screen-tweak .pulse-login-results .pulse-creator-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
#screen-tweak .pulse-login-results .tweak-video-message{padding:16px;border:1px solid var(--border,#e6ded5);border-radius:16px;background:var(--surface,#fff);color:var(--muted,#887f76);text-align:center;font-size:.86rem;line-height:1.5}
@media(max-width:620px){#screen-tweak #tweak-body{min-height:calc(100dvh - 130px)}#screen-tweak .pulse-login-screen{min-height:clamp(340px,65vh,580px)}#screen-tweak .pulse-login-tiktok{min-height:60px;border-radius:17px}}
@media(prefers-reduced-motion:reduce){#screen-tweak .pulse-login-tiktok,#screen-tweak .pulse-login-tiktok-arrow{transition:none}}

#screen-tweak .pulse-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}


/* ============================================================
   MOONFLOWER TALK — ChatGPT-style focused conversation
   Scoped to the Talk room; other Moonflower rooms are untouched.
   ============================================================ */
#screen-moonroom.moon-talk-active {
  background: var(--bg);
  box-shadow: none;
}
#screen-moonroom.moon-talk-active > .topbar {
  padding: calc(var(--safe-t) + 9px) 14px 10px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom-color: var(--border);
}
#screen-moonroom.moon-talk-active .topbar-row { gap: 12px; }
#screen-moonroom.moon-talk-active .topbar-title {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -.025em;
}
#screen-moonroom.moon-talk-active .topbar-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}
#screen-moonroom.moon-talk-active #moonroom-scroll {
  padding: 0 0 10px;
  scrollbar-width: thin;
}
#screen-moonroom.moon-talk-active .msky {
  opacity: .09;
  pointer-events: none;
}
#screen-moonroom.moon-talk-active #moonroom-body {
  position: relative;
  z-index: 1;
  min-height: 100%;
}
.mf-thread {
  width: min(100%, 790px);
  min-height: 100%;
  margin: 0 auto;
  padding: 24px clamp(15px, 4vw, 30px) 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.mf-welcome {
  width: min(100%, 560px);
  margin: auto auto 22px;
  padding: 24px 0 12px;
  text-align: center;
}
.mf-welcome-mark,
.mf-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fffaf4;
  background: linear-gradient(145deg, #a3b18a, #65764f);
  box-shadow: 0 4px 14px rgba(83, 103, 61, .18);
  font-size: 19px;
  font-weight: 600;
}
.mf-welcome-mark { width: 49px; height: 49px; margin: 0 auto 17px; font-size: 25px; }
.mf-eyebrow {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
}
.mf-welcome h1 {
  margin-top: 9px;
  color: var(--text);
  font-size: clamp(25px, 6vw, 34px);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-weight: 720;
}
.mf-welcome-copy {
  max-width: 39ch;
  margin: 10px auto 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.mf-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  text-align: left;
}
.mf-suggestion {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.mf-suggestion:active { transform: scale(.985); }
.mf-suggestion b { display: block; font-size: 11.5px; line-height: 1.35; font-weight: 720; }
.mf-suggestion small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.mf-suggestion-arrow { flex: 0 0 auto; color: var(--muted); font-size: 16px; }
.mf-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  color: var(--text);
}
.mf-message--assistant { padding: 2px 0; }
.mf-message--assistant .mf-avatar { width: 29px; height: 29px; font-size: 17px; }
.mf-message-content {
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.72;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.mf-message--assistant .mf-message-content { flex: 1; padding-top: 2px; }
.mf-message--user { justify-content: flex-end; }
.mf-message--user .mf-message-content {
  max-width: min(84%, 560px);
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-2);
  line-height: 1.55;
}
.mf-message-tools {
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.mf-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.mf-thinking .mf-avatar { width: 28px; height: 28px; font-size: 16px; }
.mf-thinking-dots { display: flex; align-items: center; gap: 4px; }
.mf-thinking-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted);
  animation: mfThinking 1s ease-in-out infinite;
}
.mf-thinking-dots i:nth-child(2) { animation-delay: .14s; }
.mf-thinking-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes mfThinking { 0%, 65%, 100% { opacity: .35; transform: translateY(0); } 32% { opacity: 1; transform: translateY(-3px); } }
.mf-privacy {
  position: relative;
  z-index: 1;
  padding: 0 12px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
  line-height: 1.4;
}
#screen-moonroom.moon-talk-active #moon-form {
  position: relative;
  z-index: 2;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 10px 14px calc(10px + var(--safe-b));
  gap: 9px;
  align-items: flex-end;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#screen-moonroom.moon-talk-active #moon-input {
  min-height: 48px;
  max-height: 140px;
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 2px 12px rgba(35, 28, 21, .045);
}
#screen-moonroom.moon-talk-active #moon-input:focus {
  border-color: color-mix(in srgb, var(--sage, #a3b18a) 60%, var(--border));
}
#screen-moonroom.moon-talk-active #moon-send {
  width: 43px;
  height: 43px;
  background: var(--coffee-dark, #493224);
  color: #fffaf4;
}
#screen-moonroom.moon-talk-active #moon-send[disabled] { opacity: .38; }
[data-theme="dark"] #screen-moonroom.moon-talk-active .mf-message--user .mf-message-content {
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.09);
}
[data-theme="dark"] #screen-moonroom.moon-talk-active .mf-suggestion {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.10);
}
@media (max-width: 430px) {
  .mf-thread { padding: 19px 16px 16px; gap: 21px; }
  .mf-welcome { padding-top: 20px; }
  .mf-suggestions { gap: 7px; }
  .mf-suggestion { min-height: 78px; padding: 10px; }
  .mf-suggestion b { font-size: 10.8px; }
  .mf-suggestion small { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-thinking-dots i { animation: none; }
  .mf-suggestion { transition: none; }
}

#screen-moonroom.moon-talk-active #moon-form[hidden] { display: none !important; }


/* MOONFLOWER TALK — ChatGPT-inspired interface; isolated to Talk to Me. */
.moon.moon-talk-active{background:var(--m-bg)}
.moon.moon-talk-active .topbar{background:var(--m-bg);border-bottom:1px solid var(--border);box-shadow:none;z-index:5}
.moon.moon-talk-active .topbar-title{font-size:16px;font-weight:650;letter-spacing:-.025em}
.moon.moon-talk-active .topbar-sub{font-size:11px;opacity:.72}
.moon.moon-talk-active #moonroom-scroll{position:relative;z-index:1;display:flex;flex-direction:column;min-height:0;background:var(--m-bg)}
.moon.moon-talk-active #moonroom-body{width:100%;max-width:780px;min-height:100%;margin:0 auto;padding:24px 18px 30px;box-sizing:border-box}
.moon.moon-talk-active .mf-thread{display:flex;flex-direction:column;gap:27px}
.moon.moon-talk-active .mf-welcome{width:100%;max-width:610px;margin:auto;padding:clamp(38px,10vh,104px) 0 26px;text-align:center}
.moon.moon-talk-active .mf-welcome-mark,.moon.moon-talk-active .mf-avatar{display:inline-grid;place-items:center;color:var(--m-light);background:rgba(var(--m-ink-rgb),.09);border:1px solid var(--border)}
.moon.moon-talk-active .mf-welcome-mark{width:54px;height:54px;margin:0 auto 18px;border-radius:19px;font-size:28px;box-shadow:0 8px 28px rgba(0,0,0,.06)}
.moon.moon-talk-active .mf-eyebrow{margin:0 0 9px;color:var(--muted);font-size:10px;letter-spacing:.14em;font-weight:650}
.moon.moon-talk-active .mf-welcome h1{margin:0;color:var(--text);font-size:clamp(25px,5vw,32px);line-height:1.2;font-weight:620;letter-spacing:-.045em}
.moon.moon-talk-active .mf-welcome-copy{max-width:410px;margin:12px auto 27px;color:var(--muted);font-size:14px;line-height:1.65}
.moon.moon-talk-active .mf-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;text-align:left}
.moon.moon-talk-active .mf-suggestion{min-width:0;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--border);border-radius:15px;background:rgba(var(--m-ink-rgb),.035);color:var(--text);text-align:left;transition:background .16s ease,transform .16s ease}
.moon.moon-talk-active .mf-suggestion:active{transform:scale(.985);background:rgba(var(--m-ink-rgb),.09)}
.moon.moon-talk-active .mf-suggestion b{display:block;font-size:12.5px;font-weight:620}
.moon.moon-talk-active .mf-suggestion small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.45}
.moon.moon-talk-active .mf-suggestion-arrow{flex:0 0 auto;color:var(--muted);font-size:15px}
.moon.moon-talk-active .mf-message{display:flex;width:100%;gap:12px;align-items:flex-start}
.moon.moon-talk-active .mf-message--user{justify-content:flex-end}
.moon.moon-talk-active .mf-message--user .mf-message-content{max-width:min(82%,570px);padding:12px 16px;border-radius:21px;border-bottom-right-radius:7px;background:rgba(var(--m-ink-rgb),.10);color:var(--text);font-size:14.5px;line-height:1.65;overflow-wrap:anywhere}
.moon.moon-talk-active .mf-avatar{flex:0 0 30px;width:30px;height:30px;border-radius:11px;font-size:17px;margin-top:1px}
.moon.moon-talk-active .mf-message--assistant .mf-message-content{flex:1;min-width:0;padding:2px 0 5px;color:var(--text);font-size:14.5px;line-height:1.78;overflow-wrap:anywhere}
.moon.moon-talk-active .mf-message-tools{margin-top:9px;color:var(--muted);font-size:10.5px;opacity:.72}
.moon.moon-talk-active .mf-thinking{display:flex;align-items:center;gap:11px;color:var(--muted);font-size:11px}
.moon.moon-talk-active .mf-thinking-dots{display:flex;gap:5px;align-items:center}
.moon.moon-talk-active .mf-thinking-dots i{width:6px;height:6px;border-radius:50%;background:var(--m-light);animation:mfChatThinking 1.1s infinite ease-in-out}
.moon.moon-talk-active .mf-thinking-dots i:nth-child(2){animation-delay:.14s}
.moon.moon-talk-active .mf-thinking-dots i:nth-child(3){animation-delay:.28s}
@keyframes mfChatThinking{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}
.moon.moon-talk-active .mf-privacy{max-width:740px;margin:10px auto 0;padding:0 14px 8px;color:var(--muted);font-size:10px;text-align:center;opacity:.68}
.moon.moon-talk-active #moon-form.composer{position:relative;z-index:6;width:calc(100% - 28px);max-width:740px;margin:8px auto max(12px,env(safe-area-inset-bottom));padding:9px 10px 9px 17px;display:flex;align-items:flex-end;gap:10px;border:1px solid var(--border);border-radius:27px;background:var(--m-bg);box-shadow:0 5px 24px rgba(0,0,0,.08);backdrop-filter:blur(18px)}
.moon.moon-talk-active #moon-form textarea{flex:1;width:100%;min-width:0;min-height:27px;max-height:150px;padding:7px 0;border:0;outline:0;resize:none;box-shadow:none;background:transparent;color:var(--text);font:inherit;font-size:14px;line-height:1.5}
.moon.moon-talk-active #moon-form textarea::placeholder{color:var(--muted)}
.moon.moon-talk-active #moon-form .send{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;border:0;background:var(--m-light);color:var(--m-oncolor)}
.moon.moon-talk-active #moon-form .send:disabled{opacity:.35}
.moon.moon-talk-active #moon-form .send svg{width:17px;height:17px}
@media(max-width:420px){.moon.moon-talk-active #moonroom-body{padding-left:14px;padding-right:14px}.moon.moon-talk-active .mf-suggestion{padding:12px 11px}.moon.moon-talk-active .mf-message--user .mf-message-content{max-width:88%}}
@media(prefers-reduced-motion:reduce){.moon.moon-talk-active .mf-thinking-dots i{animation:none}}


/* MOONFLOWER TALK — ChatGPT-inspired conversation interface */
#screen-moonroom.is-moon-talk { background:var(--bg,#f7f2ec); }
#screen-moonroom.is-moon-talk .topbar { background:var(--bg,#f7f2ec); border-bottom:1px solid var(--border); backdrop-filter:blur(18px); }
#screen-moonroom.is-moon-talk .topbar-title { font-size:16px; font-weight:650; letter-spacing:-.025em; }
#screen-moonroom.is-moon-talk .topbar-sub { font-size:11px; opacity:.68; }
#screen-moonroom.is-moon-talk #moonroom-scroll { position:relative; z-index:1; padding:0; background:var(--bg,#f7f2ec); }
#screen-moonroom.is-moon-talk #moonroom-body { min-height:100%; display:flex; flex-direction:column; max-width:780px; width:100%; margin:0 auto; padding:22px 18px 26px; }
.mf-welcome { width:100%; max-width:560px; margin:auto; padding:30px 0 42px; text-align:center; }
.mf-welcome-mark,.mf-avatar { display:grid; place-items:center; flex:0 0 auto; border-radius:50%; color:var(--m-oncolor,#fff); background:var(--m-light,#493224); }
.mf-welcome-mark { width:54px; height:54px; margin:0 auto 22px; font-size:27px; box-shadow:0 8px 28px rgba(73,50,36,.16); }
.mf-welcome h2 { color:var(--text); font-size:clamp(25px,6vw,32px); font-weight:650; letter-spacing:-.045em; line-height:1.15; }
.mf-welcome>p { max-width:390px; margin:12px auto 26px; color:var(--muted); font-size:14px; line-height:1.65; }
.mf-suggestions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; text-align:left; }
.mf-suggestion { position:relative; min-height:82px; padding:14px 34px 13px 14px; border:1px solid var(--border); border-radius:17px; background:var(--surface,rgba(255,255,255,.62)); text-align:left; transition:background .16s ease,transform .16s ease; }
.mf-suggestion:active { transform:scale(.98); }
.mf-suggestion span { display:block; color:var(--text); font-size:13px; font-weight:650; }
.mf-suggestion small { display:block; margin-top:5px; color:var(--muted); font-size:11px; line-height:1.4; }
.mf-suggestion b { position:absolute; right:13px; top:13px; color:var(--muted); font-size:14px; font-weight:400; }
.mf-chat-thread { display:flex; flex-direction:column; gap:26px; width:100%; padding:8px 0 26px; }
.mf-message { display:flex; align-items:flex-start; gap:12px; width:100%; animation:mf-message-in .18s ease-out; }
.mf-message.is-user { justify-content:flex-end; }
.mf-avatar { width:30px; height:30px; font-size:17px; margin-top:2px; }
.mf-message-content { min-width:0; max-width:min(86%,620px); }
.mf-message.is-user .mf-message-content { padding:11px 16px; border-radius:21px; background:var(--surface,rgba(73,50,36,.09)); color:var(--text); }
.mf-message.is-assistant .mf-message-content { max-width:min(100%,650px); padding:2px 0; color:var(--text); }
.mf-message-text { font-size:15px; line-height:1.72; overflow-wrap:anywhere; white-space:normal; }
.mf-thinking { display:flex; align-items:center; gap:5px; padding:12px 2px; }
.mf-thinking i { width:6px; height:6px; border-radius:50%; background:var(--muted); opacity:.45; animation:mf-dot 1s infinite ease-in-out; }
.mf-thinking i:nth-child(2) { animation-delay:.15s; } .mf-thinking i:nth-child(3) { animation-delay:.3s; }
.mf-privacy { margin:auto 0 0; padding:16px 0 2px; text-align:center; color:var(--muted); font-size:10px; opacity:.75; }
#screen-moonroom.is-moon-talk #moon-form { position:relative; z-index:3; display:flex; align-items:flex-end; gap:10px; width:calc(100% - 28px); max-width:760px; margin:0 auto max(12px,env(safe-area-inset-bottom)); padding:10px 11px 10px 17px; border:1px solid var(--border); border-radius:27px; background:var(--surface,#fff); box-shadow:0 5px 24px rgba(30,24,19,.09); backdrop-filter:blur(18px); }
#screen-moonroom.is-moon-talk #moon-form textarea { flex:1; min-height:27px; max-height:150px; padding:4px 0; border:0; outline:0; resize:none; background:transparent; color:var(--text); font-size:15px; line-height:1.5; box-shadow:none; }
#screen-moonroom.is-moon-talk #moon-form textarea::placeholder { color:var(--muted); }
#screen-moonroom.is-moon-talk #moon-send { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:50%; background:var(--m-light,#493224); color:var(--m-oncolor,#fff); }
#screen-moonroom.is-moon-talk #moon-send:disabled { opacity:.38; }
#screen-moonroom.is-moon-talk #moon-send svg { width:18px; height:18px; }
@keyframes mf-dot { 0%,80%,100% { transform:translateY(0); opacity:.35; } 40% { transform:translateY(-4px); opacity:1; } }
@keyframes mf-message-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:420px) { #screen-moonroom.is-moon-talk #moonroom-body { padding:18px 15px 22px; } .mf-suggestions { gap:8px; } .mf-suggestion { min-height:78px; padding:12px 27px 11px 12px; } .mf-message { gap:9px; } .mf-message-text { font-size:14.5px; } }
[data-theme="dark"] #screen-moonroom.is-moon-talk .mf-suggestion { background:rgba(255,255,255,.045); }
[data-theme="dark"] #screen-moonroom.is-moon-talk #moon-form { background:rgba(34,29,25,.94); box-shadow:0 5px 24px rgba(0,0,0,.24); }


/* Current Moonflower Talk markup — ChatGPT-style layout. */
.moon.moon-talk-active .moon-chat-shell {
  width: 100%;
  max-width: 780px;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.moon.moon-talk-active .moon-chat-welcome {
  width: 100%;
  max-width: 610px;
  margin: auto;
  padding: clamp(38px, 10vh, 104px) 0 26px;
  text-align: center;
}
.moon.moon-talk-active .moon-chat-welcome-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 19px;
  color: var(--m-light);
  background: rgba(var(--m-ink-rgb), .09);
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}
.moon.moon-talk-active .moon-chat-welcome-mark svg { width: 27px; height: 27px; }
.moon.moon-talk-active .moon-chat-welcome h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 5vw, 32px);
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -.045em;
}
.moon.moon-talk-active .moon-chat-welcome p {
  max-width: 410px;
  margin: 12px auto 27px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.moon.moon-talk-active .moon-chat-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}
.moon.moon-talk-active .moon-chat-suggestion {
  min-width: 0;
  min-height: 58px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(var(--m-ink-rgb), .035);
  color: var(--text);
  text-align: left;
  font-size: 12.5px;
  font-weight: 620;
  transition: background .16s ease, transform .16s ease;
}
.moon.moon-talk-active .moon-chat-suggestion:active {
  transform: scale(.985);
  background: rgba(var(--m-ink-rgb), .09);
}
.moon.moon-talk-active .moon-chat-suggestion span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
}
.moon.moon-talk-active .moon-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 8px 0 16px;
}
.moon.moon-talk-active .moon-message-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.moon.moon-talk-active .moon-message-row--user { justify-content: flex-end; }
.moon.moon-talk-active .moon-assistant-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--m-light);
  background: rgba(var(--m-ink-rgb), .08);
}
.moon.moon-talk-active .moon-assistant-mark svg { width: 17px; height: 17px; }
.moon.moon-talk-active .moon-message {
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.78;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.moon.moon-talk-active .moon-message--assistant { flex: 1; padding: 2px 0 5px; }
.moon.moon-talk-active .moon-message--user {
  max-width: min(82%, 570px);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 21px 21px 7px 21px;
  background: rgba(var(--m-ink-rgb), .10);
  line-height: 1.65;
}
.moon.moon-talk-active .moon-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 2px;
}
.moon.moon-talk-active .moon-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m-light);
  animation: moonTalkTyping 1.1s ease-in-out infinite;
}
.moon.moon-talk-active .moon-typing i:nth-child(2) { animation-delay: .14s; }
.moon.moon-talk-active .moon-typing i:nth-child(3) { animation-delay: .28s; }
@keyframes moonTalkTyping {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.moon.moon-talk-active .moon-chat-privacy {
  max-width: 740px;
  margin: auto auto 0;
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  opacity: .68;
}
@media (max-width: 420px) {
  .moon.moon-talk-active #moonroom-body { padding-left: 14px; padding-right: 14px; }
  .moon.moon-talk-active .moon-chat-suggestion { padding: 12px 11px; font-size: 11.5px; }
  .moon.moon-talk-active .moon-message--user { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .moon.moon-talk-active .moon-typing i { animation: none; }
  .moon.moon-talk-active .moon-chat-suggestion { transition: none; }
}

/* Moonflower Talk — ChatGPT-inspired chat canvas (Talk room only). */
#screen-moonroom.moon.is-moon-talk{display:flex;flex-direction:column;min-height:0}
#screen-moonroom.moon.is-moon-talk .topbar{flex:0 0 auto;min-height:58px;padding-top:env(safe-area-inset-top,0px);background:var(--bg);border-bottom:1px solid var(--border);backdrop-filter:blur(16px)}
#screen-moonroom.moon.is-moon-talk #moonroom-title{font-size:16px;font-weight:650;letter-spacing:-.025em}
#screen-moonroom.moon.is-moon-talk #moonroom-sub{font-size:11px;opacity:.72}
#screen-moonroom.moon.is-moon-talk #moonroom-scroll{flex:1 1 auto;min-height:0;height:auto;overflow-y:auto;overscroll-behavior:contain;padding:0;background:var(--bg)}
#screen-moonroom.moon.is-moon-talk #moonroom-body{min-height:100%;display:flex;flex-direction:column}
#screen-moonroom.moon.is-moon-talk .moon-chips{order:2;display:grid;grid-template-columns:1fr 1fr;gap:9px;overflow:visible;max-width:760px;width:100%;margin:auto auto 18px;padding:20px 18px 8px}
#screen-moonroom.moon.is-moon-talk .moon-chip{min-height:58px;white-space:normal;text-align:left;padding:12px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--border);font-size:12.5px;line-height:1.35}
#screen-moonroom.moon.is-moon-talk #moonroom-body>div:not(.moon-chips){order:1;max-width:760px;width:100%;margin:0 auto;padding:24px 18px 20px!important;display:flex;flex-direction:column;gap:25px!important}
#screen-moonroom.moon.is-moon-talk .bub{max-width:min(88%,650px);width:fit-content;padding:0;border:0;border-radius:0;box-shadow:none;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
#screen-moonroom.moon.is-moon-talk .bub.them{align-self:flex-start;background:transparent;color:var(--text);backdrop-filter:none}
#screen-moonroom.moon.is-moon-talk .bub.them::before{content:"✦";display:grid;place-items:center;float:left;width:29px;height:29px;margin:0 12px 8px 0;border-radius:50%;background:var(--m-light);color:var(--m-oncolor);font-size:14px;font-weight:700}
#screen-moonroom.moon.is-moon-talk .bub.me{align-self:flex-end;max-width:min(86%,560px);padding:11px 15px;border-radius:21px;background:var(--surface-2);color:var(--text)}
#screen-moonroom.moon.is-moon-talk .bub .time{display:none}
#screen-moonroom.moon.is-moon-talk .center-note{display:none}
#screen-moonroom.moon.is-moon-talk #moon-form.composer{flex:0 0 auto;display:flex;align-items:flex-end;gap:9px;width:calc(100% - 24px);max-width:740px;margin:8px auto calc(10px + env(safe-area-inset-bottom,0px));padding:9px 10px 9px 16px;border:1px solid var(--border);border-radius:27px;background:var(--surface);box-shadow:0 5px 24px rgba(0,0,0,.07)}
#screen-moonroom.moon.is-moon-talk #moon-input{flex:1 1 auto;min-height:26px;max-height:150px;padding:5px 0;border:0;outline:0;resize:none;background:transparent;color:var(--text);font:inherit;font-size:14px;line-height:1.5}
#screen-moonroom.moon.is-moon-talk #moon-input::placeholder{color:var(--muted)}
#screen-moonroom.moon.is-moon-talk #moon-send{flex:0 0 36px;width:36px;height:36px;min-width:36px;border-radius:50%;background:var(--m-light);color:var(--m-oncolor)}
#screen-moonroom.moon.is-moon-talk #moon-send:disabled{opacity:.42}
@media(max-width:380px){#screen-moonroom.moon.is-moon-talk .moon-chips{grid-template-columns:1fr;padding-left:14px;padding-right:14px}#screen-moonroom.moon.is-moon-talk #moonroom-body>div:not(.moon-chips){padding-left:14px!important;padding-right:14px!important}}


/* ChatGPT-style rendering for the current Moonflower Talk transcript. */
.moon.moon-talk-active .mf-chat-thread {
  width: 100%;
  max-width: 780px;
  min-height: 100%;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 30px) 22px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.moon.moon-talk-active .mf-message {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
}
.moon.moon-talk-active .mf-message.is-user { justify-content: flex-end; }
.moon.moon-talk-active .mf-message.is-assistant { justify-content: flex-start; }
.moon.moon-talk-active .mf-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--m-light);
  background: rgba(var(--m-ink-rgb), .08);
}
.moon.moon-talk-active .mf-message-content {
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
.moon.moon-talk-active .mf-message.is-assistant .mf-message-content {
  flex: 1;
  padding: 2px 0 5px;
}
.moon.moon-talk-active .mf-message.is-user .mf-message-content {
  max-width: min(82%, 570px);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 21px 21px 7px 21px;
  background: rgba(var(--m-ink-rgb), .10);
  line-height: 1.65;
}
.moon.moon-talk-active .mf-message-text { white-space: normal; overflow-wrap: anywhere; }
.moon.moon-talk-active .mf-welcome {
  width: 100%;
  max-width: 610px;
  margin: auto;
  padding: clamp(38px, 10vh, 104px) 0 26px;
  text-align: center;
}
.moon.moon-talk-active .mf-welcome-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 19px;
  color: var(--m-light);
  background: rgba(var(--m-ink-rgb), .09);
}
.moon.moon-talk-active .mf-welcome h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 5vw, 32px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.045em;
}
.moon.moon-talk-active .mf-welcome > p {
  max-width: 410px;
  margin: 12px auto 27px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.moon.moon-talk-active .mf-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}
.moon.moon-talk-active .mf-suggestion {
  min-width: 0;
  min-height: 62px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(var(--m-ink-rgb), .035);
  color: var(--text);
  text-align: left;
  font-size: 12.5px;
  font-weight: 620;
}
.moon.moon-talk-active .mf-suggestion small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 450;
}
.moon.moon-talk-active .mf-suggestion b { flex: 0 0 auto; color: var(--muted); font-size: 15px; }
.moon.moon-talk-active .mf-thinking { display: flex; align-items: center; gap: 5px; padding: 12px 2px; }
.moon.moon-talk-active .mf-thinking i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--m-light);
  animation: mfTalkTyping 1.1s ease-in-out infinite;
}
.moon.moon-talk-active .mf-thinking i:nth-child(2) { animation-delay: .14s; }
.moon.moon-talk-active .mf-thinking i:nth-child(3) { animation-delay: .28s; }
@keyframes mfTalkTyping {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.moon.moon-talk-active .mf-privacy {
  max-width: 740px;
  margin: auto auto 0;
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  opacity: .68;
}
@media (max-width: 420px) {
  .moon.moon-talk-active .mf-chat-thread { padding: 18px 2px 14px; gap: 21px; }
  .moon.moon-talk-active .mf-suggestion { padding: 12px 10px; font-size: 11.5px; }
  .moon.moon-talk-active .mf-message.is-user .mf-message-content { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .moon.moon-talk-active .mf-thinking i { animation: none; }
}

#screen-moonroom.moon.is-moon-talk #moonroom-body:has(.bub) .moon-chips{display:none}


/* FINAL OVERRIDE — ChatGPT mobile conversation styling for Moonflower */
#screen-moonroom.moon-talk-active {
  background: var(--m-bg);
  display: flex;
  flex-direction: column;
}
#screen-moonroom.moon-talk-active > .topbar {
  flex: 0 0 auto;
  min-height: 54px;
  background: var(--m-bg);
  border: 0;
  box-shadow: none;
}
#screen-moonroom.moon-talk-active > .topbar .topbar-row {
  position: relative;
  min-height: 54px;
  justify-content: center;
  padding: 0 12px;
}
#screen-moonroom.moon-talk-active #moonroom-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}
#screen-moonroom.moon-talk-active #moonroom-sub,
#screen-moonroom.moon-talk-active #moonroom-action { display: none !important; }
#screen-moonroom.moon-talk-active > .topbar .back-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
#screen-moonroom.moon-talk-active #moonroom-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: var(--m-bg);
  padding: 0;
}
#screen-moonroom.moon-talk-active #moonroom-body {
  width: 100%;
  max-width: 790px;
  min-height: 100%;
  margin: 0 auto;
  padding: 24px 22px 32px;
  box-sizing: border-box;
}
#screen-moonroom.moon-talk-active .mf-welcome {
  min-height: min(58vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 20px;
  margin: 0 auto;
  text-align: center;
}
#screen-moonroom.moon-talk-active .mf-welcome h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 6vw, 31px);
  font-weight: 600;
  letter-spacing: -.045em;
}
#screen-moonroom.moon-talk-active .mf-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 8px 0 24px;
}
#screen-moonroom.moon-talk-active .mf-message {
  display: flex;
  width: 100%;
  margin: 0;
}
#screen-moonroom.moon-talk-active .mf-message.is-user {
  justify-content: flex-end;
}
#screen-moonroom.moon-talk-active .mf-message.is-user .mf-message-content {
  max-width: min(82%, 620px);
  padding: 11px 17px;
  border-radius: 22px;
  background: rgba(var(--m-ink-rgb), .085);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#screen-moonroom.moon-talk-active .mf-message.is-assistant {
  justify-content: flex-start;
}
#screen-moonroom.moon-talk-active .mf-message.is-assistant .mf-message-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
#screen-moonroom.moon-talk-active .mf-thinking {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
}
#screen-moonroom.moon-talk-active .mf-thinking i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: mfChatGPTPulse 1.05s infinite ease-in-out;
}
#screen-moonroom.moon-talk-active .mf-thinking i:nth-child(2) { animation-delay: .14s; }
#screen-moonroom.moon-talk-active .mf-thinking i:nth-child(3) { animation-delay: .28s; }
@keyframes mfChatGPTPulse {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
#screen-moonroom.moon-talk-active .mf-privacy { display: none; }
#screen-moonroom.moon-talk-active #moon-form.composer {
  flex: 0 0 auto;
  position: relative;
  z-index: 8;
  width: calc(100% - 28px);
  max-width: 790px;
  margin: 10px auto max(12px, env(safe-area-inset-bottom));
  padding: 9px 10px 9px 18px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid rgba(var(--m-ink-rgb), .16);
  border-radius: 28px;
  background: var(--m-bg);
  box-shadow: 0 2px 9px rgba(0,0,0,.06);
}
#screen-moonroom.moon-talk-active #moon-form textarea {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 28px;
  max-height: 150px;
  padding: 7px 0;
  margin: 0;
  border: 0 !important;
  outline: 0;
  resize: none;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
#screen-moonroom.moon-talk-active #moon-form textarea::placeholder {
  color: var(--muted);
  opacity: .9;
}
#screen-moonroom.moon-talk-active #moon-form .send {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--m-light);
  color: var(--m-oncolor);
}
#screen-moonroom.moon-talk-active #moon-form .send:disabled { opacity: .4; }
#screen-moonroom.moon-talk-active #moon-form .send svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  #screen-moonroom.moon-talk-active #moonroom-body { padding: 20px 17px 28px; }
  #screen-moonroom.moon-talk-active .mf-message.is-user .mf-message-content { max-width: 88%; }
}


/* Moonflower Talk — carry the home screen's lunar atmosphere into the chat.
   Keep the conversation layout and controls intact; only restore the shared
   MoonSky backdrop and the transparent/glass surfaces used by Moonflower home. */
#screen-moonroom.moon.moon-talk-active {
  background: var(--m-space) !important;
}
#screen-moonroom.moon.moon-talk-active .msky {
  opacity: 1 !important;
}
#screen-moonroom.moon.moon-talk-active > .topbar {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#screen-moonroom.moon.moon-talk-active #moonroom-scroll {
  background: transparent !important;
}
#screen-moonroom.moon.moon-talk-active #moonroom-body {
  background: transparent !important;
}
#screen-moonroom.moon.moon-talk-active #moon-form.composer {
  background: linear-gradient(155deg, rgba(var(--m-ink-rgb), .09), rgba(var(--m-ink-rgb), .045)) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -28px rgba(0,0,0,.7) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}


/* ============================================================
   MOONFLOWER — PRIVATE MOMENTS, WEEKLY RECAPS & MONTHLY DISCOVERY
============================================================ */
#screen-moonroom .mf-weekly-recap {
  position:relative; margin:12px 15px 20px; padding:22px 19px 18px;
  overflow:hidden; border-radius:24px;
  background:
    radial-gradient(240px 150px at 100% 0%,rgba(190,151,104,.20),transparent 72%),
    linear-gradient(145deg,rgba(var(--m-ink-rgb),.095),rgba(var(--m-ink-rgb),.025));
  border:1px solid var(--border);
  box-shadow:0 18px 44px -30px rgba(25,18,14,.38),inset 0 1px 0 rgba(255,255,255,.12);
}
#screen-moonroom .mf-weekly-recap:after {
  content:"";position:absolute;width:170px;height:170px;right:-80px;bottom:-100px;
  border-radius:50%;border:1px solid rgba(190,151,104,.22);pointer-events:none;
}
#screen-moonroom .mf-weekly-recap>span,
#screen-moonroom .mf-weekly-recap>span:first-child {
  display:block;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.16em;
}
#screen-moonroom .mf-weekly-recap h3 {
  margin:10px 0 7px;color:var(--text);font-family:"Iowan Old Style",Palatino,Georgia,serif;
  font-size:25px;line-height:1.13;font-weight:500;letter-spacing:-.035em;
}
#screen-moonroom .mf-weekly-recap>p {margin:0;color:var(--muted);font-size:12px;line-height:1.7}
#screen-moonroom .mf-weekly-recap article {
  position:relative;margin:18px 0 12px;padding:19px 17px;border-radius:18px;
  background:color-mix(in srgb,var(--surface) 75%,transparent);
  border:1px solid color-mix(in srgb,var(--border) 80%,transparent);
}
#screen-moonroom .mf-weekly-recap article small {color:var(--coffee);font-size:9px;font-weight:800;letter-spacing:.14em}
#screen-moonroom .mf-weekly-recap article h4 {
  margin:9px 0 7px;color:var(--text);font-family:"Iowan Old Style",Palatino,Georgia,serif;
  font-size:21px;line-height:1.2;font-weight:500;
}
#screen-moonroom .mf-weekly-recap article p {margin:0;color:var(--text);font-size:12px;line-height:1.75}
#screen-moonroom .mf-weekly-recap article strong {
  display:inline-block;margin-top:13px;padding:7px 10px;border-radius:9px;
  color:var(--coffee);background:color-mix(in srgb,var(--coffee) 9%,transparent);
  font-size:10px;letter-spacing:.02em;
}
#screen-moonroom .mf-weekly-controls {display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0}
#screen-moonroom .mf-weekly-controls span {min-width:44px;text-align:center;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
#screen-moonroom .mf-weekly-controls button {
  display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--border);
  border-radius:50%;background:var(--surface);color:var(--text);font-size:21px;line-height:1;
}
#screen-moonroom .mf-weekly-controls button:disabled {opacity:.3}
#screen-moonroom .mf-weekly-closing {margin-top:10px!important;padding-top:13px;border-top:1px solid var(--border);font-family:"Iowan Old Style",Palatino,Georgia,serif;font-size:13px!important}
#screen-moonroom .mf-weekly-loading {
  margin:12px 15px 18px;padding:16px;border:1px solid var(--border);border-radius:18px;
  color:var(--muted);font-size:11px;line-height:1.6;
}
#screen-moonroom .mf-log-actions {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px}
#screen-moonroom #log-attach {
  padding:10px 12px;border:1px solid var(--border);border-radius:12px;
  background:color-mix(in srgb,var(--surface) 72%,transparent);color:var(--text);font:inherit;font-size:11px;
}
#screen-moonroom #log-save {min-height:40px;padding:10px 15px;border:0;border-radius:12px;background:var(--coffee);color:var(--m-oncolor,#fff);font:inherit;font-size:11px;font-weight:750}
#screen-moonroom #log-save:disabled,#screen-moonroom #log-attach:disabled {opacity:.42}
#screen-moonroom .log-composer>small {display:block;margin-top:9px;color:var(--muted);font-size:9px;line-height:1.5}
#screen-moonroom .mf-file-list {display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
#screen-moonroom .mf-file-list:empty {display:none}
#screen-moonroom .mf-file-list>span {
  display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 9px;
  border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:10px;
}
#screen-moonroom .mf-file-list button {border:0;background:transparent;color:var(--muted);font-size:16px}
#screen-moonroom .mf-note-files {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin:12px 0}
#screen-moonroom .mf-note-file {
  max-width:100%;padding:9px 11px;border:1px solid var(--border);border-radius:10px;
  background:var(--surface);color:var(--coffee);font:inherit;font-size:10px;text-align:left;overflow-wrap:anywhere;
}
#screen-moonroom .mf-note-media {min-width:0;display:flex;flex-direction:column;gap:7px;padding:8px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--surface) 82%,transparent)}
#screen-moonroom .mf-note-media-loading,#screen-moonroom .mf-note-media-name {color:var(--muted);font-size:10px;overflow-wrap:anywhere}
#screen-moonroom .mf-note-image {display:block;width:100%;max-height:340px;object-fit:contain;border-radius:9px;background:rgba(0,0,0,.04)}
#screen-moonroom .mf-note-video {display:block;width:100%;max-height:340px;border-radius:9px;background:#080808}
#screen-moonroom .mf-note-audio {display:block;width:100%;min-width:0}
#screen-moonroom .mf-note-media .mf-note-file {align-self:flex-start}
#screen-moonroom .mf-monthly-discovery {
  width:min(100% - 30px,740px);margin:18px auto;padding:18px;
  border:1px solid var(--border);border-radius:20px;
  background:linear-gradient(145deg,rgba(var(--m-ink-rgb),.07),rgba(var(--m-ink-rgb),.02));
}
#screen-moonroom .mf-monthly-discovery>span {color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.14em}
#screen-moonroom .mf-monthly-discovery h3 {margin:7px 0;color:var(--text);font-family:"Iowan Old Style",Palatino,Georgia,serif;font-size:21px;font-weight:500}
#screen-moonroom .mf-monthly-discovery>p {color:var(--muted);font-size:11px;line-height:1.65}
#screen-moonroom .mf-monthly-discovery article {
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:12px;
  border:1px solid var(--border);border-radius:14px;background:var(--surface);
}
#screen-moonroom .mf-monthly-discovery article>div {min-width:0}
#screen-moonroom .mf-monthly-discovery article strong {display:block;color:var(--text);font-size:12px}
#screen-moonroom .mf-monthly-discovery article small {display:block;margin-top:3px;color:var(--muted);font-size:9px}
#screen-moonroom .mf-monthly-discovery article p {margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
#screen-moonroom .mf-monthly-discovery article button,
#screen-moonroom .mf-monthly-refresh {
  flex:0 0 auto;padding:9px 11px;border:1px solid var(--border);border-radius:11px;
  background:var(--surface-2);color:var(--coffee);font:inherit;font-size:10px;font-weight:750;
}
#screen-moonroom .mf-monthly-refresh {margin-top:13px}
.mf-monthly-form {display:grid;gap:9px}
.mf-monthly-form>label,.mf-monthly-form>b {color:var(--text);font-size:11px;font-weight:750}
.mf-monthly-form textarea {
  width:100%;min-height:78px;padding:11px 12px;resize:vertical;box-sizing:border-box;
  border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);
  font:inherit;font-size:12px;line-height:1.55;
}
.mf-monthly-types {display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mf-monthly-types label {display:flex;align-items:center;gap:7px;color:var(--text);font-size:10px}
.mf-monthly-consent {display:flex;align-items:flex-start;gap:8px;margin-top:8px;padding:11px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);font-size:10px!important;line-height:1.55}
.mf-monthly-consent input,.mf-monthly-types input {accent-color:var(--coffee);flex:0 0 auto}
@media(max-width:420px){
  #screen-moonroom .mf-weekly-recap{margin:10px 12px 16px;padding:18px 15px}
  #screen-moonroom .mf-monthly-discovery{width:calc(100% - 24px);padding:14px}
  #screen-moonroom .mf-monthly-discovery article{align-items:flex-start;flex-direction:column}
  .mf-monthly-types{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:no-preference){
  #screen-moonroom .mf-weekly-recap article{animation:mfRecapIn .45s ease both}
  @keyframes mfRecapIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
}

#screen-moonroom .mf-monthly-actions {display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#screen-moonroom .mf-monthly-edit {
  margin-top:13px;padding:9px 11px;border:1px solid var(--border);border-radius:11px;
  background:transparent;color:var(--muted);font:inherit;font-size:10px;font-weight:650;
}

/* Mutual-consent Moonflower introductions */
#screen-moonroom .mf-monthly-discovery .mf-intro-actions {
  display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;
}
#screen-moonroom .mf-monthly-discovery .mf-intro-actions button {
  white-space:normal;line-height:1.35;
}
#screen-moonroom .mf-monthly-discovery .mf-monthly-empty {
  padding:12px 0;color:var(--muted);font-size:11px;line-height:1.6;
}


/* Moonflower reminder date/time picker — match the cocoa/after-midnight UI. */
#modal #mf-when {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  padding: 14px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  color-scheme: light;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 5px 16px rgba(35,24,18,.045);
  accent-color: var(--coffee);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast), box-shadow var(--t-fast);
}
#modal #mf-when:focus {
  outline: none;
  border-color: var(--coffee-light);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--coffee-light) 18%, transparent), 0 8px 22px rgba(35,24,18,.08);
}
#modal #mf-when::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .82;
  padding: 5px;
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--coffee) 10%, transparent);
}
:root[data-theme="dark"] #modal #mf-when {
  color-scheme: dark;
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 22px rgba(0,0,0,.16);
}
:root[data-theme="dark"] #modal #mf-when:focus {
  background: rgba(255,255,255,.09);
  border-color: rgba(201,165,116,.58);
  box-shadow: 0 0 0 3px rgba(201,165,116,.12), 0 8px 24px rgba(0,0,0,.2);
}
:root[data-theme="dark"] #modal #mf-when::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(.18) saturate(.7);
  opacity: .88;
  background-color: rgba(201,165,116,.13);
}


/* Moonflower chat history — polished conversation bubbles. */
#moonroom-history[hidden]{display:none!important}
#moonroom-history{display:grid;place-items:center}
#moonroom-history svg{width:19px;height:19px}
.moon-history-panel{
  width:100%;max-width:780px;margin:0 auto;padding:25px 18px 38px;box-sizing:border-box;
  background:radial-gradient(ellipse at 8% 0%,rgba(139,53,67,.075),transparent 42%);
}
.moon-history-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 2px 24px}
.moon-history-heading>div>span{display:inline-flex;align-items:center;gap:7px;font-size:9px;font-weight:800;letter-spacing:.19em;color:var(--m-light,var(--muted))}
.moon-history-heading>div>span:before{content:"";width:17px;height:1px;background:currentColor;opacity:.65}
.moon-history-heading h2{margin:8px 0 5px;font-size:26px;line-height:1.1;letter-spacing:-.055em;color:var(--text)}
.moon-history-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.moon-history-close{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);font-size:23px;line-height:1;cursor:pointer;box-shadow:0 5px 16px rgba(35,25,19,.06)}
.moon-history-list{display:flex;flex-direction:column;gap:12px}
.moon-history-item{
  position:relative;isolation:isolate;display:flex;align-items:center;gap:13px;width:100%;min-height:76px;
  padding:13px 15px;border:1px solid color-mix(in srgb,var(--border) 76%,var(--m-light) 24%);
  border-radius:21px 21px 21px 9px;
  background:linear-gradient(135deg,var(--surface) 0%,color-mix(in srgb,var(--surface) 88%,var(--m-light) 12%) 100%);
  color:var(--text);text-align:left;cursor:pointer;overflow:hidden;
  box-shadow:0 7px 22px rgba(44,31,23,.055),inset 0 1px 0 rgba(255,255,255,.55);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;
}
.moon-history-item:before{content:"";position:absolute;z-index:-1;inset:0 auto 0 0;width:3px;border-radius:3px;background:linear-gradient(180deg,var(--m-light,#8b3543),color-mix(in srgb,var(--m-light,#8b3543) 30%,transparent));opacity:.62}
.moon-history-item:after{content:"";position:absolute;z-index:-1;width:110px;height:110px;right:-46px;top:-62px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--m-light,#8b3543) 12%,transparent),transparent 70%);pointer-events:none}
.moon-history-item:active{transform:scale(.985)}
@media(hover:hover){.moon-history-item:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--m-light,#8b3543) 48%,var(--border));box-shadow:0 12px 27px rgba(44,31,23,.10),inset 0 1px 0 rgba(255,255,255,.65)}}
.moon-history-item.is-current{border-color:color-mix(in srgb,var(--m-light,#8b3543) 58%,var(--border));background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 86%,var(--m-light,#8b3543) 14%),var(--surface));box-shadow:0 8px 25px rgba(139,53,67,.10),inset 0 0 0 1px color-mix(in srgb,var(--m-light,#8b3543) 12%,transparent)}
.moon-history-item-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid color-mix(in srgb,var(--m-light,#8b3543) 20%,var(--border));border-radius:15px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 78%,var(--m-light,#8b3543) 22%),var(--surface));color:var(--m-light,var(--text));font-size:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 4px 12px rgba(35,25,19,.05)}
.moon-history-item-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}
.moon-history-item-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:720;letter-spacing:-.015em;color:var(--text)}
.moon-history-item-copy small{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);font-weight:550}
.moon-history-item-copy small:before{content:"";width:4px;height:4px;border-radius:50%;background:var(--m-light,var(--muted));opacity:.8}
.moon-history-chevron{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;background:color-mix(in srgb,var(--surface) 72%,var(--m-light,#8b3543) 28%);color:var(--m-light,var(--text));font-size:20px;line-height:1}
.moon-history-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:250px;padding:24px 16px;border:1px dashed var(--border);border-radius:24px;background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface) 92%,var(--m-light,#8b3543) 8%));text-align:center;color:var(--muted)}
.moon-history-empty>span{display:grid;place-items:center;width:54px;height:54px;margin-bottom:15px;border:1px solid var(--border);border-radius:19px;background:var(--surface);color:var(--m-light,var(--text));font-size:23px;box-shadow:0 8px 22px rgba(35,25,19,.07)}
.moon-history-empty strong{font-size:14px;color:var(--text);letter-spacing:-.02em}
.moon-history-empty p{max-width:230px;margin:7px 0 0;font-size:12px;line-height:1.55}
[data-theme="dark"] .moon-history-panel{background:radial-gradient(ellipse at 8% 0%,rgba(196,133,119,.09),transparent 45%)}
[data-theme="dark"] .moon-history-item{background:linear-gradient(135deg,rgba(255,255,255,.065),rgba(255,255,255,.025));border-color:rgba(255,255,255,.09);box-shadow:0 8px 22px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.035)}
[data-theme="dark"] .moon-history-item.is-current{background:linear-gradient(135deg,rgba(139,53,67,.23),rgba(255,255,255,.035));border-color:rgba(196,133,119,.48)}
[data-theme="dark"] .moon-history-item-icon{background:linear-gradient(145deg,rgba(196,133,119,.17),rgba(255,255,255,.035));border-color:rgba(196,133,119,.2)}
[data-theme="dark"] .moon-history-chevron{background:rgba(196,133,119,.15)}
[data-theme="dark"] .moon-history-empty{background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(139,53,67,.08));border-color:rgba(255,255,255,.12)}
@media(max-width:420px){.moon-history-panel{padding:21px 14px 30px}.moon-history-heading h2{font-size:24px}.moon-history-item{min-height:72px;padding:12px 13px;border-radius:19px 19px 19px 8px}.moon-history-item-icon{flex-basis:39px;width:39px;height:39px;border-radius:14px}}


/* HOME COMMENTS — premium editorial refresh.
   Visual-only overrides; keeps the existing comment and composer behaviour. */
#sheet:has(.tw-home-comments-shell) {
  border: 1px solid color-mix(in srgb, var(--border-strong) 72%, transparent);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 60px rgba(35,24,18,.16);
  background: var(--bg);
}
#sheet:has(.tw-home-comments-shell) .grab {
  width: 42px;
  height: 4px;
  margin: 9px auto 11px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--muted) 38%, transparent);
}
#sheet:has(.tw-home-comments-shell) .sheet-head {
  padding-top: 0;
  background: var(--bg);
}
#sheet-body:has(.tw-home-comments-shell) {
  padding: 0 19px 22px;
  background: var(--bg);
}
.tw-home-comments-shell .biz-comments-intro {
  align-items: center;
  gap: 14px;
  padding: 18px 0 19px;
  border-bottom-color: color-mix(in srgb, var(--border) 75%, var(--coffee) 25%);
}
.tw-home-comments-shell .biz-comments-intro-mark {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--coffee) 18%, var(--border));
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  box-shadow: 0 5px 16px rgba(40,27,18,.06), inset 0 1px 0 rgba(255,255,255,.5);
}
.tw-home-comments-shell .biz-comments-intro h3 {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.tw-home-comments-shell .biz-comments-intro p {
  font-size: 11.5px;
  line-height: 1.55;
}
.tw-home-comments-shell .biz-comments-eyebrow {
  font-size: 8px;
  letter-spacing: .19em;
}
.tw-home-comments-shell .biz-comments-list-head {
  padding: 18px 1px 8px;
  font-size: 9px;
  letter-spacing: .17em;
}
.tw-home-comments-shell .biz-comments-count {
  min-width: 25px;
  height: 25px;
  border-color: color-mix(in srgb, var(--coffee) 17%, var(--border));
  background: color-mix(in srgb, var(--coffee) 7%, var(--surface));
  color: var(--coffee);
  font-weight: 800;
}
.tw-home-comments-shell .biz-comment-list { gap: 5px; }
.tw-home-comments-shell .biz-comment-thread {
  padding: 13px 0 7px;
}
.tw-home-comments-shell .biz-comment-card { gap: 11px; }
.tw-home-comments-shell .biz-comment-avatar {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border-color: color-mix(in srgb, var(--coffee) 15%, var(--border));
  box-shadow: 0 2px 7px rgba(30,20,14,.06);
}
.tw-home-comments-shell .biz-comment-heading {
  gap: 5px 9px;
  margin: 2px 0 7px;
}
.tw-home-comments-shell .biz-comment-heading strong {
  font-size: 11.5px;
  letter-spacing: -.015em;
}
.tw-home-comments-shell .biz-comment-time { font-size: 9.5px; }
.tw-home-comments-shell .biz-comment-tag {
  padding: 3px 8px;
  border-color: color-mix(in srgb, var(--border) 70%, var(--coffee) 30%);
  background: color-mix(in srgb, var(--surface) 82%, var(--coffee) 3%);
  font-size: 8.5px;
  font-weight: 700;
}
.tw-home-comments-shell .biz-comment-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, var(--coffee) 24%);
  border-radius: 5px 16px 16px 16px;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--coffee) 8%));
  box-shadow: 0 3px 12px rgba(40,27,18,.035), inset 0 1px 0 rgba(255,255,255,.4);
  font-size: 12.5px;
  line-height: 1.62;
  overflow-wrap: anywhere;
  word-break: normal;
}
.tw-home-comments-shell .biz-comment-actions {
  gap: 16px;
  margin: 8px 2px 0;
}
.tw-home-comments-shell .biz-comment-actions button {
  min-height: 27px;
  padding: 4px 2px;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  transition: color .16s ease, transform .16s ease;
}
.tw-home-comments-shell .biz-comment-actions button:active { transform: scale(.94); }
.tw-home-comments-shell .biz-comment-actions button svg { width: 13px; height: 13px; }
.tw-home-comments-shell .biz-comment-actions button.is-liked { color: #ad5960; }
.tw-home-comments-shell .biz-comment-actions button.is-delete { color: #b56b61; }
.tw-home-comments-shell .biz-comment-replies {
  margin: 10px 0 0 49px;
  padding-left: 13px;
  border-left: 2px solid color-mix(in srgb, var(--coffee) 16%, var(--border));
}
.tw-home-comments-shell .biz-comment-replies .biz-comment-thread { padding-top: 9px; }
.tw-home-comments-shell .biz-comment-empty {
  min-height: 205px;
  justify-content: center;
  padding: 28px 15px;
}
.tw-home-comments-shell .biz-comment-empty>span {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  border-color: color-mix(in srgb, var(--coffee) 18%, var(--border));
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  box-shadow: 0 7px 20px rgba(40,27,18,.06);
}
.tw-home-comments-shell .biz-comment-empty strong {
  font-size: 13.5px;
  letter-spacing: -.02em;
}
.tw-home-comments-shell .biz-comment-empty p {
  font-size: 11.5px;
  line-height: 1.6;
}
#sheet-foot:has(.biz-comment-composer) {
  padding: 0 19px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, var(--coffee) 22%);
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
  box-shadow: 0 -8px 26px rgba(35,24,18,.045);
}
#sheet-foot:has(.biz-comment-composer) .biz-comment-composer { padding-top: 13px; }
#sheet-foot:has(.biz-comment-composer) .biz-comment-compose-heading strong {
  font-size: 12.5px;
  letter-spacing: -.02em;
}
#sheet-foot:has(.biz-comment-composer) .biz-comment-input-wrap textarea {
  min-height: 48px;
  max-height: 118px;
  padding: 12px 14px;
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--border-strong) 76%, var(--coffee) 24%);
  background: var(--bg);
  font-size: 12.5px;
  line-height: 1.55;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
#sheet-foot:has(.biz-comment-composer) .biz-comment-input-wrap textarea:focus {
  border-color: color-mix(in srgb, var(--coffee) 70%, var(--border));
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--coffee) 11%, transparent);
}
#sheet-foot:has(.biz-comment-composer) .biz-comment-submit {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--coffee-light), var(--coffee-dark));
  box-shadow: 0 5px 13px color-mix(in srgb, var(--coffee) 22%, transparent);
  font-size: 10.5px;
  font-weight: 800;
}
#sheet-foot:has(.biz-comment-composer) .biz-comment-mic {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--surface-2);
  transition: background .16s ease, transform .16s ease;
}
#sheet-foot:has(.biz-comment-composer) .biz-comment-mic:active { transform: scale(.95); }
#sheet-foot:has(.biz-comment-composer) .biz-comment-privacy-note {
  margin-top: 10px;
  font-size: 9.5px;
}
#sheet-foot:has(.biz-comment-composer) .biz-comment-category-prompt {
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
}
[data-theme="dark"] #sheet:has(.tw-home-comments-shell) {
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 -18px 60px rgba(0,0,0,.42);
}
[data-theme="dark"] .tw-home-comments-shell .biz-comment-bubble {
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  border-color: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
[data-theme="dark"] #sheet-foot:has(.biz-comment-composer) {
  background: rgba(20,16,13,.97);
  border-top-color: rgba(255,255,255,.09);
}
@media (max-width: 390px) {
  #sheet-body:has(.tw-home-comments-shell) { padding-left: 14px; padding-right: 14px; }
  #sheet-foot:has(.biz-comment-composer) { padding-left: 14px; padding-right: 14px; }
  .tw-home-comments-shell .biz-comment-replies { margin-left: 39px; padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-home-comments-shell *,
  #sheet-foot:has(.biz-comment-composer) * { transition: none !important; }
}


/* HOME COMMENTS — explicit sheet state (does not rely on :has support). */
#sheet.sheet--home-comments {
  border: 1px solid color-mix(in srgb, var(--border-strong) 72%, transparent);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 60px rgba(35,24,18,.16);
  background: var(--bg);
  height: min(88dvh,760px);
  max-height: 88dvh;
  min-height: 0;
  overflow: hidden;
}
#sheet.sheet--home-comments .sheet-body {
  flex: 1 1 0%;
  min-height: 0;
  height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 0 19px 22px;
  background: var(--bg);
}
#sheet.sheet--home-comments .sheet-head,
#sheet.sheet--home-comments .sheet-foot {
  flex: 0 0 auto;
}
#sheet.sheet--home-comments .sheet-head {
  padding-top: 0;
  background: var(--bg);
}
#sheet.sheet--home-comments .grab {
  width: 42px;
  height: 4px;
  margin: 9px auto 11px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--muted) 38%, transparent);
}
#sheet.sheet--home-comments .sheet-foot {
  padding: 0 19px max(16px,env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, var(--coffee) 22%);
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
  box-shadow: 0 -8px 26px rgba(35,24,18,.045);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-composer { width:100%; padding:13px 0 0; }
#sheet.sheet--home-comments .sheet-foot .biz-comment-input-wrap textarea {
  min-height:48px; max-height:118px; padding:12px 14px; border-radius:16px;
  border-color:color-mix(in srgb,var(--border-strong) 76%,var(--coffee) 24%);
  background:var(--bg); font-size:12.5px; line-height:1.55;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-input-wrap textarea:focus {
  border-color:var(--coffee);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--coffee) 11%,transparent);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-submit {
  min-height:40px; padding:0 15px; border-radius:13px;
  background:var(--coffee); color:#fff; font-weight:800;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-mic {
  flex-basis:40px; width:40px; height:40px; border-radius:14px;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-privacy-note { margin-top:10px; font-size:9.5px; }
#sheet.sheet--home-comments .sheet-body .tw-home-comments-shell { padding:0; }
#sheet.sheet--home-comments .biz-comment-bubble { overflow-wrap:anywhere; }
[data-theme="dark"] #sheet.sheet--home-comments {
  border-color:rgba(255,255,255,.09);
  box-shadow:0 -18px 60px rgba(0,0,0,.42);
}
[data-theme="dark"] #sheet.sheet--home-comments .sheet-foot {
  background:rgba(20,16,13,.97);
  border-top-color:rgba(255,255,255,.09);
}
@media(max-width:390px) {
  #sheet.sheet--home-comments .sheet-body { padding-left:14px; padding-right:14px; }
  #sheet.sheet--home-comments .sheet-foot { padding-left:14px; padding-right:14px; }
}


/* HOME COMMENTS — fixed composer footer, compatible with browsers without :has(). */
#sheet.sheet--home-comments .sheet-foot {
  display:block;
  box-sizing:border-box;
  flex:0 0 auto;
  width:100%;
  padding:12px 18px max(14px,env(safe-area-inset-bottom));
  border-top:1px solid var(--border);
  background:var(--surface);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-composer {
  display:block;
  width:100%;
  margin:0;
  padding:0;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-compose-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 9px;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-compose-heading>div {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  min-width:0;
}
#sheet.sheet--home-comments .sheet-foot .biz-comments-eyebrow {
  display:block;
  color:var(--muted);
  font-size:8px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.16em;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-compose-heading strong {
  display:block;
  color:var(--text);
  font-size:13px;
  line-height:1.3;
  font-weight:750;
}
#sheet.sheet--home-comments .sheet-foot #biz-comment-char-count {
  flex:0 0 auto;
  color:var(--muted);
  font-size:10px;
  font-variant-numeric:tabular-nums;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-input-wrap { width:100%; }
#sheet.sheet--home-comments .sheet-foot .biz-comment-input-wrap textarea {
  display:block;
  box-sizing:border-box;
  width:100%;
  min-height:52px;
  max-height:112px;
  margin:0;
  padding:12px 14px;
  border:1px solid var(--border-strong);
  border-radius:15px;
  background:var(--bg);
  color:var(--text);
  font-family:inherit;
  font-size:13px;
  line-height:1.5;
  resize:none;
  outline:none;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.035);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-input-wrap textarea::placeholder {
  color:var(--muted);
  opacity:.82;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-input-wrap textarea:focus {
  border-color:var(--coffee);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--coffee) 12%,transparent);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-compose-bottom {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-mic {
  display:grid;
  place-items:center;
  box-sizing:border-box;
  flex:0 0 40px;
  width:40px;
  height:40px;
  min-width:40px;
  min-height:40px;
  padding:0;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--surface-2);
  color:var(--coffee);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-mic svg {
  display:block;
  width:18px;
  height:18px;
  max-width:18px;
  max-height:18px;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-record-copy {
  display:flex;
  flex:1 1 auto;
  min-width:0;
  flex-direction:column;
  gap:3px;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-record-copy strong {
  color:var(--text);
  font-size:11px;
  line-height:1.3;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-record-copy span {
  color:var(--muted);
  font-size:9px;
  line-height:1.4;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-submit {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex:0 0 auto;
  min-height:40px;
  padding:0 13px;
  border:0;
  border-radius:12px;
  background:var(--coffee);
  color:#fff;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-submit svg {
  width:14px;
  height:14px;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-submit:disabled { opacity:.45; }
#sheet.sheet--home-comments .sheet-foot .biz-comment-privacy-note {
  display:flex;
  align-items:flex-start;
  gap:6px;
  margin:9px 1px 0;
  color:var(--muted);
  font-size:9px;
  line-height:1.4;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-privacy-note svg {
  flex:0 0 12px;
  width:12px;
  height:12px;
}
#sheet.sheet--home-comments .sheet-foot .tw-comment-replying {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0 0 9px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--surface-2);
  color:var(--muted);
  font-size:10px;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-category-prompt {
  margin-top:11px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface-2);
}
[data-theme="dark"] #sheet.sheet--home-comments .sheet-foot {
  background:#171310;
  border-top-color:rgba(255,255,255,.1);
}
[data-theme="dark"] #sheet.sheet--home-comments .sheet-foot .biz-comment-input-wrap textarea {
  background:#211b17;
  border-color:rgba(255,255,255,.13);
  color:#f6eee6;
  box-shadow:none;
}
@media(max-width:390px) {
  #sheet.sheet--home-comments .sheet-foot { padding-left:14px; padding-right:14px; }
  #sheet.sheet--home-comments .sheet-foot .biz-comment-compose-bottom { gap:7px; }
  #sheet.sheet--home-comments .sheet-foot .biz-comment-submit { padding:0 10px; }
}


/* HOME COMMENT VOICE NOTE — recorded preview and recording states */
#sheet.sheet--home-comments .sheet-foot .biz-comment-audio-preview {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px 12px;
  width:100%;
  box-sizing:border-box;
  margin:0 0 12px;
  padding:12px 13px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface-2);
  box-shadow:0 5px 16px rgba(30,20,12,.045);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-audio-preview[hidden] { display:none !important; }
#sheet.sheet--home-comments .sheet-foot .biz-comment-preview-label {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:var(--text);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-preview-label>svg {
  display:block;
  flex:0 0 34px;
  width:34px;
  height:34px;
  padding:8px;
  box-sizing:border-box;
  border-radius:11px;
  background:var(--surface);
  color:var(--coffee);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-preview-label>span {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-preview-label strong {
  color:var(--text);
  font-size:12px;
  line-height:1.3;
  font-weight:750;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-preview-label small {
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-audio-preview audio {
  display:block;
  grid-column:1 / -1;
  width:100%;
  min-width:0;
  height:38px;
  margin:0;
  border-radius:10px;
  accent-color:var(--coffee);
}
#sheet.sheet--home-comments .sheet-foot #biz-comment-discard-audio {
  display:grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--surface);
  color:var(--muted);
  cursor:pointer;
}
#sheet.sheet--home-comments .sheet-foot #biz-comment-discard-audio svg {
  display:block;
  width:15px;
  height:15px;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-mic {
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-mic.is-recording {
  background:#8b3543;
  border-color:#8b3543;
  color:#fff;
  box-shadow:0 0 0 4px rgba(139,53,67,.13);
  animation:tw-comment-record-pulse 1.5s ease-in-out infinite;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-record-copy strong {
  display:flex;
  align-items:center;
  gap:7px;
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-mic.is-recording~.biz-comment-record-copy strong:before {
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#c54b55;
  box-shadow:0 0 0 3px rgba(197,75,85,.13);
}
#sheet.sheet--home-comments .sheet-foot .biz-comment-submit:not(:disabled) {
  box-shadow:0 5px 13px rgba(50,30,18,.15);
}
@keyframes tw-comment-record-pulse {
  0%,100% { box-shadow:0 0 0 3px rgba(139,53,67,.12); }
  50% { box-shadow:0 0 0 6px rgba(139,53,67,.2); }
}
[data-theme="dark"] #sheet.sheet--home-comments .sheet-foot .biz-comment-audio-preview {
  background:#211b17;
  border-color:rgba(255,255,255,.1);
  box-shadow:none;
}
[data-theme="dark"] #sheet.sheet--home-comments .sheet-foot .biz-comment-preview-label>svg,
[data-theme="dark"] #sheet.sheet--home-comments .sheet-foot #biz-comment-discard-audio {
  background:#2a221d;
  border-color:rgba(255,255,255,.1);
  color:#e8c9a8;
}
@media(max-width:390px) {
  #sheet.sheet--home-comments .sheet-foot .biz-comment-audio-preview { padding:10px; gap:9px; }
  #sheet.sheet--home-comments .sheet-foot .biz-comment-audio-preview audio { height:34px; }
}


/* HOME COMMENTS — Android-compatible independent scrolling.
   Use vh as the baseline; dvh is an optional enhancement on newer browsers. */
#sheet.sheet--home-comments {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 88vh;
  max-height: 88vh;
  min-height: 0;
  overflow: hidden;
}
#sheet.sheet--home-comments .sheet-head,
#sheet.sheet--home-comments .sheet-foot {
  flex: 0 0 auto;
  min-height: 0;
}
#sheet.sheet--home-comments .sheet-body {
  display: block;
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  padding-bottom: 24px;
}
#sheet.sheet--home-comments .tw-home-comments-shell,
#sheet.sheet--home-comments .biz-comments-shell,
#sheet.sheet--home-comments .biz-comment-list {
  min-height: 0;
  overflow: visible;
}
@supports (height: 100dvh) {
  #sheet.sheet--home-comments {
    height: min(88dvh, 760px);
    max-height: 88dvh;
  }
}


/* HOME COMMENTS — hard-constrain the sheet so its list has a real
   scroll viewport on Android WebView / older Chrome. */
#sheet.sheet--home-comments {
  top: 12% !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
#sheet.sheet--home-comments > .grab,
#sheet.sheet--home-comments > .sheet-head,
#sheet.sheet--home-comments > .sheet-foot {
  flex: 0 0 auto !important;
}
#sheet.sheet--home-comments > #sheet-body,
#sheet.sheet--home-comments > .sheet-body {
  display: block !important;
  position: relative !important;
  flex: 1 1 0px !important;
  height: 1px !important;
  min-height: 1px !important;
  max-height: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior-y: contain;
  padding-bottom: 28px !important;
}
#sheet.sheet--home-comments > #sheet-foot,
#sheet.sheet--home-comments > .sheet-foot {
  max-height: 42vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* TWEAKLR HOME — premium inline voice-note player */
.tw-home-comments-shell .tw-comment-voice-player{
  display:flex;align-items:center;gap:12px;width:min(100%,390px);min-width:0;
  margin-top:9px;padding:12px 13px;border:1px solid color-mix(in srgb,var(--coffee) 18%,var(--border));
  border-radius:17px;background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface-2) 58%,var(--surface)));
  color:var(--text);box-shadow:0 5px 18px rgba(40,28,20,.055)
}
.tw-home-comments-shell .tw-comment-voice-audio{display:none!important}
.tw-home-comments-shell .tw-comment-voice-play{
  display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:0;border-radius:50%;
  background:linear-gradient(145deg,#65432f,#3f2b21);color:#fff;box-shadow:0 4px 10px rgba(63,43,33,.2);
  cursor:pointer;transition:transform .18s ease,filter .18s ease
}
.tw-home-comments-shell .tw-comment-voice-play:active{transform:scale(.94)}
.tw-home-comments-shell .tw-comment-voice-play svg{width:16px;height:16px;fill:currentColor}
.tw-home-comments-shell .tw-comment-voice-main{flex:1;min-width:0}
.tw-home-comments-shell .tw-comment-voice-top,.tw-home-comments-shell .tw-comment-voice-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tw-home-comments-shell .tw-comment-voice-label{font-size:8px;font-weight:850;letter-spacing:.16em;color:var(--muted)}
.tw-home-comments-shell .tw-comment-voice-duration{font-size:10px;font-weight:750;font-variant-numeric:tabular-nums;color:var(--text)}
.tw-home-comments-shell .tw-comment-voice-wave{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:2px;height:24px;margin:5px 0 3px;
  overflow:hidden;cursor:pointer;touch-action:pan-y;outline:none
}
.tw-home-comments-shell .tw-comment-voice-wave:focus-visible{outline:2px solid var(--coffee);outline-offset:3px;border-radius:5px}
.tw-home-comments-shell .tw-comment-voice-wave i{
  display:block;flex:1;min-width:2px;max-width:4px;height:var(--bar);border-radius:4px;
  background:color-mix(in srgb,var(--muted) 55%,transparent);opacity:.72;transition:background .12s ease
}
.tw-home-comments-shell .tw-comment-voice-wave i.is-played{background:#986b4c;opacity:1}
.tw-home-comments-shell .tw-comment-voice-bottom{font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums}
.tw-home-comments-shell .tw-comment-voice-bottom [data-tw-voice-status]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
.tw-home-comments-shell .tw-comment-voice-speed{
  flex:0 0 auto;min-width:35px;padding:6px 7px;border:1px solid var(--border);border-radius:9px;
  background:var(--bg);color:var(--text);font-size:10px;font-weight:800;cursor:pointer
}
.tw-home-comments-shell .tw-comment-voice-play:disabled{opacity:.45;cursor:not-allowed}
[data-theme="dark"] .tw-home-comments-shell .tw-comment-voice-player{
  border-color:rgba(210,180,138,.2);background:linear-gradient(145deg,#292522,#211f1d);box-shadow:0 7px 20px rgba(0,0,0,.18)
}
[data-theme="dark"] .tw-home-comments-shell .tw-comment-voice-play{background:linear-gradient(145deg,#987052,#62432f)}
[data-theme="dark"] .tw-home-comments-shell .tw-comment-voice-speed{background:#302b27;border-color:#51463d;color:#f2e6d8}
@media(max-width:390px){
  .tw-home-comments-shell .tw-comment-voice-player{gap:9px;padding:10px;border-radius:15px}
  .tw-home-comments-shell .tw-comment-voice-play{width:36px;height:36px;flex-basis:36px}
  .tw-home-comments-shell .tw-comment-voice-wave{gap:1.5px}
}


/* TWEAKLR HOME COMMENTS — slide the primary navigation out of view.
   Keep it rendered during the transition so it can return smoothly. */
@media (max-width: 899px) {
  .app > .nav {
    transition: transform 360ms cubic-bezier(.22,.75,.25,1), opacity 260ms ease;
    will-change: transform, opacity;
  }
  .app > .nav.nav--comments-hidden:not(.hidden) {
    transform: translate3d(0, calc(100% + env(safe-area-inset-bottom) + 8px), 0) !important;
    opacity: 0;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app > .nav { transition: none !important; }
}
