
:root {
  --paper: #f4f1e9;
  --surface: #fffefa;
  --ink: #171713;
  --muted: #77766f;
  --line: #dedbd1;
  --soft-line: #ebe8df;
  --acid: #c7ff52;
  --acid-deep: #92c628;
  --mint: #c9f1df;
  --lilac: #dfd8ff;
  --orange: #ff7d48;
  --shadow: 0 22px 60px rgba(45, 42, 31, .08);
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% -8%, rgba(199, 255, 82, .18), transparent 31rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-shell { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 48px; }
.topbar { height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { position: relative; width: 40px; height: 40px; display: block; flex: none; overflow: hidden; border-radius: 13px; text-decoration: none; }
.brand img { position: absolute; top: 0; left: 0; width: 164%; height: 164%; max-width: none; transform: translate(-19.38%, -18.34%); }
.topnav { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55); }
.topnav a { padding: 9px 18px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.desktop-nav-icon { display: none; }
.topnav a.active { background: var(--ink); color: #fff; }
.account-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.language-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.58); }
.language-switch a { min-width: 25px; padding: 5px 6px; border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: center; text-decoration: none; }
.language-switch a.active { color: #fff; background: var(--ink); }
.round-action { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.round-action svg { width: 19px; }
.round-action.active { background: var(--ink); color: #fff; }
.round-action b { position: absolute; top: -5px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 999px; color: var(--ink); background: var(--acid); font-size: 10px; }
.login-link { padding: 10px 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.join-button { padding: 11px 16px; border-radius: 999px; color: #fff; background: var(--ink); font-size: 13px; font-weight: 750; text-decoration: none; }

.account-menu { position: relative; }
.account-menu summary { list-style: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; outline: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary img, .account-menu summary span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; background: var(--lilac); font-size: 11px; font-weight: 850; }
.account-menu > div { position: absolute; z-index: 30; top: 51px; right: 0; width: 215px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.account-menu strong, .account-menu small { display: block; }
.account-menu small { margin: 4px 0 12px; color: var(--muted); }
.account-menu a, .account-menu button { display: block; width: 100%; padding: 9px 0; border: 0; color: var(--ink); background: none; text-align: left; text-decoration: none; font-size: 13px; }
.account-menu form { margin: 5px -3px -4px; padding: 5px 3px 0; border-top: 1px solid var(--soft-line); }
.account-menu .switch-account-form { margin: 0; padding: 0; border: 0; }
.account-menu .switch-account-button { color: var(--ink); }
.account-menu button { color: #b24131; }

.app-grid { min-height: calc(100vh - 140px); display: grid; grid-template-columns: 400px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 29px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.people-panel { min-width: 0; padding: 34px 20px 25px; border-right: 1px solid var(--line); background: rgba(248,246,240,.72); }
.people-heading { min-height: 76px; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 10px; }
.eyebrow { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.people-heading .eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.eyebrow i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #43bd66; box-shadow: 0 0 0 4px rgba(67,189,102,.12); }
.people-heading h1 { max-width: 285px; margin: 0; font-size: 24px; line-height: 1.08; letter-spacing: -.04em; }
.people-list { display: grid; grid-auto-rows: max-content; align-content: start; gap: 5px; max-height: min(560px, calc(100vh - 330px)); margin-right: -6px; padding-right: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7c4ba transparent; }
.people-list::-webkit-scrollbar { width: 5px; }
.people-list::-webkit-scrollbar-track { background: transparent; }
.people-list::-webkit-scrollbar-thumb { border-radius: 999px; background: #c7c4ba; }
.people-list::-webkit-scrollbar-thumb:hover { background: #a9a69c; }
.people-sentinel, .history-sentinel { min-height: 42px; display: grid; place-items: center; }
.people-sentinel { overflow-anchor: none; }
.people-sentinel.committing { visibility: hidden; }
.people-sentinel i, .history-sentinel i { width: 7px; height: 7px; border-radius: 50%; background: #aaa89f; box-shadow: -12px 0 #d1cfc6, 12px 0 #d1cfc6; }
.people-sentinel.loading i, .history-sentinel.loading i { animation: people-loading .8s ease-in-out infinite alternate; }
.people-sentinel.failed, .history-sentinel.failed { cursor: pointer; opacity: .6; }
@keyframes people-loading { to { opacity: .25; transform: translateY(2px); } }
.person-row { position: relative; min-width: 0; display: grid; grid-template-columns: 51px minmax(0, 1fr) 18px; align-items: center; gap: 13px; padding: 13px 12px; border: 1px solid transparent; border-radius: 17px; color: inherit; text-decoration: none; transition: .18s ease; }
.person-row:hover { border-color: var(--soft-line); background: var(--surface); transform: translateX(2px); }
.person-row.selected { border-color: #d8d6cc; background: var(--surface); box-shadow: 0 7px 23px rgba(42,39,27,.06); }
.person-row.selected:before { content: ""; position: absolute; left: -21px; width: 4px; height: 36px; border-radius: 0 4px 4px 0; background: var(--ink); }
.avatar-wrap { position: relative; width: 51px; height: 51px; }
.avatar { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 17px; object-fit: cover; color: #30302b; background: var(--mint); font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.avatar-lilac { background: var(--lilac); }
.avatar-mint { background: #ffe0bd; }
.presence { position: absolute; right: -2px; bottom: -1px; width: 13px; height: 13px; border: 3px solid var(--surface); border-radius: 50%; background: #acaaa1; }
.presence.fresh { background: #43bd66; }
.person-main { min-width: 0; }
.person-main > span { display: flex; align-items: baseline; gap: 7px; }
.person-main strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.person-main time { flex: none; margin-left: auto; color: #9a9890; font-family: ui-monospace, monospace; font-size: 10px; }
.person-main em { display: block; margin-top: 6px; overflow: hidden; color: #4c4b45; font-size: 13px; font-style: normal; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.chevron { width: 17px; color: #aaa89f; }
.people-footnote { margin: 30px 11px 0; padding-top: 18px; border-top: 1px solid var(--soft-line); color: #949188; font-size: 11px; line-height: 1.5; }
.pulse-ring { width: 10px; height: 10px; display: inline-block; margin-right: 7px; border: 2px solid #43bd66; border-radius: 50%; vertical-align: -1px; }

.profile-panel { min-width: 0; padding: 42px 52px 56px; background: var(--surface); view-transition-name: none; }
.profile-panel.is-loading { opacity: .76; pointer-events: none; transition: opacity .16s ease; }
.mobile-back { display: none; }
.profile-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-bottom: 31px; border-bottom: 1px solid var(--soft-line); }
.profile-identity { min-width: 0; display: flex; align-items: center; gap: 18px; }
.profile-avatar-wrap { position: relative; flex: none; }
.profile-avatar { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px; object-fit: cover; background: var(--lilac); font-size: 18px; font-weight: 850; }
.profile-avatar-wrap i { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border: 4px solid var(--surface); border-radius: 50%; background: #acaaa1; }
.profile-avatar-wrap i.fresh { background: #43bd66; }
.feeling-avatar-badge, .feeling-list-badge { position: absolute; z-index: 2; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 50%; background: var(--surface); font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-style: normal; line-height: 1; box-shadow: 0 2px 6px rgba(28, 28, 23, .1); }
.feeling-avatar-badge { top: -6px; right: -6px; width: 22px; height: 22px; font-size: 15px; }
.feeling-list-badge { top: -4px; right: -4px; width: 17px; height: 17px; font-size: 11px; }
.profile-identity p { margin: 0 0 4px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.profile-identity h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 27px; letter-spacing: -.045em; }
.verification-badge { --badge-shape: polygon(50% 0%,61% 8%,74% 5%,82% 18%,95% 26%,92% 40%,100% 50%,92% 61%,95% 74%,82% 82%,74% 95%,61% 92%,50% 100%,39% 92%,26% 95%,18% 82%,5% 74%,8% 61%,0% 50%,8% 39%,5% 26%,18% 18%,26% 5%,39% 8%); position: relative; isolation: isolate; width: 17px; height: 17px; flex: 0 0 auto; display: inline-grid; place-items: center; overflow: hidden; clip-path: var(--badge-shape); color: #11120e; background: var(--acid); font-size: 9px; font-style: normal; font-weight: 950; line-height: 1; }
.verification-badge b { position: relative; z-index: 1; width: 100%; display: block; transform: none; text-align: center; line-height: 17px; }
.verification-person, .verification-creator, .verification-organization { color: #11120e; background: var(--acid); box-shadow: none; filter: none; }
.verification-now { color: #fff; background: #171713; box-shadow: none; filter: none; }
.person-row strong { display: inline-flex; align-items: center; gap: 4px; }
.person-row .verification-badge { width: 14px; height: 14px; font-size: 8px; }
.person-row .verification-badge b { line-height: 14px; }
.profile-copy { min-width: 0; }
.profile-professional { display: block; max-width: 390px; margin-top: 6px; overflow: hidden; color: #34342f; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-bio { display: block; max-width: 390px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-stats { display: flex; gap: 17px; margin-top: 10px; color: #88867e; font-size: 10px; }
.profile-stats button { padding: 0; border: 0; color: inherit; background: none; font-size: inherit; text-align: left; }
.profile-stats button:hover { color: var(--ink); }
.profile-stats b { color: var(--ink); font-size: 11px; font-weight: 800; }
.profile-actions { flex: none; }
.secondary-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 720; text-decoration: none; }
.secondary-button svg { width: 15px; }
.secondary-button.following { background: var(--ink); color: #fff; }
.profile-privacy-button { cursor: pointer; }
.profile-privacy-button .privacy-mode-icon { width: 15px; height: 15px; display: none; }
.profile-privacy-button .privacy-mode-icon svg { width: 100%; height: 100%; }
.profile-privacy-button[data-mode="everyone"] .privacy-mode-everyone, .profile-privacy-button[data-mode="followers"] .privacy-mode-followers, .profile-privacy-button[data-mode="only-me"] .privacy-mode-only-me { display: inline-flex; }

.privacy-preview-overlay { position: fixed; z-index: 95; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(23,23,19,.34); opacity: 0; transition: opacity .16s ease; }
.privacy-preview-overlay[hidden] { display: none; }
.privacy-preview-overlay.visible { opacity: 1; }
.privacy-preview-dialog { width: min(460px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--surface); box-shadow: 0 28px 90px rgba(23,23,19,.24); transform: translateY(8px) scale(.99); transition: transform .18s ease; }
.privacy-preview-overlay.visible .privacy-preview-dialog { transform: translateY(0) scale(1); }
.privacy-preview-dialog > header { min-height: 83px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 22px 17px; border-bottom: 1px solid var(--soft-line); }
.privacy-preview-dialog > header span { color: #88ad1a; font-family: ui-monospace, monospace; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.privacy-preview-dialog > header h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.04em; }
.privacy-preview-dialog > header button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0 0 2px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 21px; cursor: pointer; }
.privacy-preview-intro { margin: 0; padding: 17px 22px 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.privacy-preview-options { display: grid; gap: 8px; padding: 8px 14px 12px; }
.privacy-preview-option { width: 100%; min-height: 74px; display: grid; grid-template-columns: 40px minmax(0,1fr) 22px; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid transparent; border-radius: 16px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.privacy-preview-option:hover { background: #f5f3ec; }
.privacy-preview-option.selected { border-color: #dbe8aa; background: #f2f8db; }
.privacy-preview-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #626159; background: #efede6; }
.privacy-preview-option.selected .privacy-preview-icon { color: #171713; background: var(--acid); }
.privacy-preview-icon svg { width: 19px; height: 19px; }
.privacy-preview-option > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.privacy-preview-option strong { font-size: 13px; }
.privacy-preview-option small { color: var(--muted); font-size: 11px; font-weight: 450; line-height: 1.35; }
.privacy-preview-option > b { color: #171713; opacity: 0; font-size: 14px; }
.privacy-preview-option.selected > b { opacity: 1; }
.privacy-preview-note { margin: 0 22px 16px; padding: 12px 13px; border-radius: 12px; color: #77746b; background: #f5f3ed; font-size: 10px; line-height: 1.45; }
.privacy-preview-dialog > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--soft-line); }
.privacy-preview-dialog > footer button { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 750; cursor: pointer; }
.privacy-preview-dialog > footer .privacy-preview-save { border-color: var(--acid); background: var(--acid); }
body.privacy-preview-open { overflow: hidden; }
/* Desktop privacy: flat, quiet, with brand color reserved for the decision. */
@media (min-width: 701px) {
  .privacy-preview-dialog {
    width: min(440px, 100%);
    border-color: #e5e3dc;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 72px rgba(23, 23, 19, .2);
  }
  .privacy-preview-dialog > header {
    min-height: 0;
    align-items: center;
    padding: 21px 22px 13px;
    border-bottom: 0;
  }
  .privacy-preview-dialog > header span { display: none; }
  .privacy-preview-dialog > header h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
  .privacy-preview-dialog > header button {
    width: 34px;
    height: 34px;
    border: 0;
    color: #77766f;
    background: transparent;
  }
  .privacy-preview-dialog > header button:hover { background: #f3f2ee; }
  .privacy-preview-intro { padding: 0 22px 15px; border-bottom: 1px solid #efede7; font-size: 11px; }
  .privacy-preview-options { gap: 0; padding: 0 22px; }
  .privacy-preview-option {
    min-height: 72px;
    grid-template-columns: 31px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid #efede7;
    border-radius: 0;
    background: transparent;
  }
  .privacy-preview-option:hover,
  .privacy-preview-option.selected { border-color: #efede7; background: transparent; }
  .privacy-preview-icon,
  .privacy-preview-option.selected .privacy-preview-icon {
    width: 31px;
    height: 31px;
    color: #55554f;
    background: transparent;
  }
  .privacy-preview-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .privacy-preview-option > span:nth-child(2) { gap: 3px; }
  .privacy-preview-option strong { font-size: 13px; }
  .privacy-preview-option small { color: #85837b; font-size: 10px; line-height: 1.35; }
  .privacy-preview-option > b {
    width: 20px;
    height: 20px;
    display: block;
    border: 2px solid #77828a;
    border-radius: 50%;
    background: transparent;
    opacity: 1;
    font-size: 0;
  }
  .privacy-preview-option.selected > b {
    border-color: var(--acid);
    background: var(--acid);
    box-shadow: inset 0 0 0 4px #fffefa;
  }
  .privacy-preview-note {
    margin: 13px 22px 0;
    padding: 0;
    border-radius: 0;
    color: #929087;
    background: transparent;
    font-size: 9px;
    line-height: 1.4;
  }
  .privacy-preview-dialog > footer { gap: 8px; padding: 16px 22px 20px; border-top: 0; }
  .privacy-preview-dialog > footer button { min-height: 38px; padding-inline: 17px; background: #fffefa; }
  .privacy-preview-dialog > footer .privacy-preview-save { border-color: var(--acid); background: var(--acid); }
}
.follow-button.requested { color: var(--muted); background: #f2f0e9; }
.privacy-moderation-view { width: fit-content; max-width: calc(100% - 104px); min-height: 24px; margin: 0 52px 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border: 1px solid #dce7df; border-radius: 999px; color: #31543a; background: #f2f7f3; }
.privacy-moderation-icon { width: 16px; height: 16px; flex: 0 0 16px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2f7d32; }
.privacy-moderation-icon svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy-moderation-view.is-suspended { border-color: #efd9d2; background: #fbf0ec; }
.privacy-moderation-view.is-suspended .privacy-moderation-icon { color: #7e372e; background: #f2c8bd; }
.privacy-moderation-view b { flex: none; font-size: 9px; font-weight: 800; letter-spacing: .01em; }
.private-profile-state { min-height: 330px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 44px; text-align: center; }
.private-profile-state > .privacy-mode-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--acid); }
.private-profile-state svg { width: 21px; height: 21px; }
.private-profile-state h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.025em; }
.private-profile-state p { max-width: 360px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.privacy-follow-requests { margin: 0 22px 14px; padding-top: 2px; }
.privacy-follow-requests > h3 { margin: 0 0 8px; color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.privacy-follow-request { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 7px; padding: 8px 0; border-top: 1px solid var(--soft-line); }
.privacy-follow-request > span { min-width: 0; display: grid; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: 17px 15px; column-gap: 9px; align-items: center; }
.privacy-follow-request img, .privacy-follow-request i { width: 34px; height: 34px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 50%; object-fit: cover; background: #e9f1ca; font-style: normal; font-size: 10px; }
.privacy-follow-request b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.privacy-follow-request small { color: var(--muted); font-size: 9px; }
.privacy-follow-request > button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; color: var(--muted); background: #f0eee7; font-size: 9px; font-weight: 750; cursor: pointer; }
.privacy-follow-request > button.approve { color: #171713; background: var(--acid); }
.privacy-follow-request > button:disabled { opacity: .55; }

.now-hero { position: relative; margin: 30px 0 22px; padding: 27px 30px 29px; overflow: hidden; border-radius: 23px; background: #181914; color: #f7f5ee; font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif; }
.now-hero:after { display: none; }
.now-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #c1c0b8; font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.now-meta span { color: #b9f447; font-weight: 700; }
.now-meta i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #b9f447; }
.now-hero p { position: relative; z-index: 1; max-width: 100%; margin: 31px 0 11px; overflow-wrap: anywhere; word-break: break-word; color: #f7f5ee; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: clamp(29px, 3vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.now-hero p.quiet { color: #b7b6b0; }
.now-hero em { position: relative; z-index: 1; display: inline-block; padding: 6px 10px; border: 1px solid #484840; border-radius: 999px; color: #c9c8c2; font-size: 10px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }

.composer { display: flex; gap: 13px; padding: 18px 19px 14px; border: 1px solid #e3e1d9; border-radius: 21px; background: var(--surface); box-shadow: 0 5px 22px rgba(36,34,25,.035); transition: border-color .16s ease, box-shadow .16s ease; }
.composer:focus-within { border-color: #cbc9c0; box-shadow: 0 8px 30px rgba(36,34,25,.065); }
.composer-avatar { flex: none; }
.composer-avatar img, .composer-avatar span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--lilac); font-size: 10px; font-weight: 850; }
.composer-body { flex: 1; min-width: 0; }
.composer-author { display: flex; align-items: baseline; gap: 7px; padding-top: 1px; }
.composer-author strong { overflow: hidden; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.composer-author span { overflow: hidden; color: #99978f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.composer textarea { width: 100%; min-height: 53px; padding: 7px 0 10px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: inherit; font-size: 15px; line-height: 1.45; }
.composer textarea::placeholder { color: #aaa89f; }
.status-image-preview { width: min(100%, 360px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 7px 0 10px; }
.status-image-preview[hidden] { display: none; }
.status-image-preview > div { position: relative; height: 94px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #edf3ef; }
.status-image-preview > div:only-child { grid-column: 1 / -1; height: 168px; }
.status-image-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.status-image-preview button { position: absolute; top: 6px; right: 6px; width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 2px solid #fff; border-radius: 50%; color: #fff; background: rgba(16, 26, 20, .78); font-size: 16px; }
.composer .remove-status-image { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: #8f4a3d; background: transparent; font-size: 18px; line-height: 1; }
.composer .remove-status-image:hover { color: #6d2f25; background: #f4e8e4; transform: none; }
.feeling-picker { margin: 4px 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feeling-picker[hidden] { display: none; }
.feeling-picker > p { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.feeling-picker > div { display: grid; grid-template-columns: repeat(8, minmax(48px, 1fr)); gap: 6px; }
.composer .feeling-picker > div > button { min-width: 0; padding: 7px 3px; border: 1px solid var(--soft-line); border-radius: 10px; background: #faf9f5; }
.composer .feeling-picker > div > button:hover, .composer .feeling-picker > div > button.selected { border-color: #9ac936; background: #effbd7; transform: none; }
.feeling-picker button > span { display: block; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 26px; line-height: 1.1; }
.feeling-picker button small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.composer .feeling-picker .clear-feeling { display: block; width: 100%; margin-top: 8px; padding: 7px; color: var(--muted); background: transparent; }
.composer .feeling-picker .clear-feeling:hover { color: var(--ink); background: #f3f0e8; transform: none; }
.feeling-trigger #feelingTriggerEmoji { width: 16px; height: 16px; display: grid; place-items: center; color: inherit; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 14px; line-height: 1; }
.feeling-trigger #feelingTriggerEmoji svg { width: 16px; height: 16px; }
.history-feeling { width: auto; height: auto; display: inline-block; margin-left: 3px; background: transparent; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 14px; font-style: normal; line-height: 1; vertical-align: 1px; }
.composer-tools { display: flex; align-items: center; gap: 7px; padding-top: 11px; border-top: 1px solid #eceae3; }
.status-picker { position: relative; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.status-picker span { display: none; }
.status-picker select { padding: 6px 23px 6px 9px; border: 1px solid var(--line); border-radius: 999px; outline: 0; color: var(--ink); background: var(--surface); font-size: 10px; font-weight: 700; }
.character-count { margin-left: auto; color: #aaa89f; font-family: ui-monospace, monospace; font-size: 10px; }
.character-count b { color: var(--ink); font-weight: 500; }
.composer button, .auth-form > button, .save-button { padding: 10px 15px; border: 0; border-radius: 12px; color: var(--ink); background: var(--acid); font-size: 11px; font-weight: 800; transition: .16s ease; }
.composer button:hover, .auth-form > button:hover, .save-button:hover { background: #b8f23d; transform: translateY(-1px); }
.composer button:disabled { opacity: .55; cursor: wait; transform: none; }
.composer .attach-photo { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; color: #77756d; background: transparent; }
.composer .attach-photo:hover { border-color: #e8e5dc; color: var(--ink); background: #f6f4ee; transform: none; }
.composer .camera-button { display: none; }
.composer #postButton { min-height: 36px; padding: 0 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(132,174,42,.16); }
.attach-photo svg, .hero-photo svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-name { max-width: 130px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.hero-photo { display: inline-flex; align-items: center; gap: 6px; margin-top: 17px; padding: 7px 10px; border: 1px solid #44453d; border-radius: 9px; color: #d0cfc8; background: transparent; font-size: 10px; font-weight: 750; }

.history-section { margin-top: 38px; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.history-heading h3 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.rewind-launch { min-width: 205px; display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fbfaf6; text-align: left; transition: .18s ease; }
.rewind-launch:hover { border-color: #c9d9a1; background: #f8fce9; transform: translateY(-1px); }
.rewind-launch > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--ink); background: var(--acid); font-size: 19px; font-weight: 800; }
.rewind-launch b, .rewind-launch small { display: block; }
.rewind-launch b { font-size: 11px; }
.rewind-launch small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.rewind-launch > i { color: #8f8d85; font-style: normal; }
.history-group { display: grid; grid-template-columns: 80px 1fr; gap: 18px; }
.history-group:nth-of-type(n+4) { content-visibility: auto; contain-intrinsic-size: 180px; }
.history-group + .history-group { margin-top: 0; padding-top: 28px; }
.history-sentinel { margin-top: 12px; }
.history-group h4 { margin: 3px 0 0; color: #8b8981; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.history-item { position: relative; display: grid; grid-template-columns: 50px 10px minmax(0, 1fr) 98px; gap: 10px; min-height: 58px; }
.history-item > time { padding-top: 2px; color: #76746c; font-family: ui-monospace, monospace; font-size: 11px; }
.history-line { position: relative; display: flex; justify-content: center; }
.history-line:after { content: ""; position: absolute; top: 9px; bottom: -1px; width: 1px; background: var(--line); }
.history-item:last-child .history-line:after { bottom: 30px; }
.history-line i { position: relative; z-index: 1; width: 6px; height: 6px; margin-top: 2px; border-radius: 50%; background: var(--ink); }
.history-copy p { margin: -2px 0 7px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.history-item.hidden-status > time,
.history-item.hidden-status .history-line,
.history-item.hidden-status .history-copy,
.history-item.hidden-status .history-actions > :not(.item-menu) { opacity: .38; }
.history-actions { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; }
.comment-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: #8f8d85; background: none; font-size: 10px; opacity: .42; transition: opacity .15s ease, color .15s ease; }
.comment-toggle svg { width: 16px; height: 16px; }
.history-item:hover .comment-toggle, .comment-toggle:focus-visible, .comment-toggle[aria-expanded="true"] { color: var(--ink); opacity: 1; }
.like-toggle, .photo-toggle { min-width: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; color: #8f8d85; background: none; font-size: 9px; opacity: .45; transition: opacity .15s ease, color .15s ease, transform .15s ease; }
.like-toggle svg, .photo-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.like-toggle.liked { color: #e15555; opacity: 1; }
.like-toggle.liked svg { fill: currentColor; }
.history-item:hover .like-toggle, .history-item:hover .photo-toggle, .like-toggle:focus-visible, .photo-toggle:focus-visible { opacity: 1; }
.like-toggle:active { transform: scale(.9); }
.item-menu { align-self: start; padding: 0; border: 0; color: #9b9991; background: none; letter-spacing: 1px; }
.comments-panel { grid-column: 3 / 5; margin: -15px 0 20px; padding: 13px; border: 1px solid var(--soft-line); border-radius: 14px; background: #faf9f5; }
.comments-panel[hidden] { display: none; }
.reply-list { display: grid; gap: 12px; }
.reply-item { display: flex; align-items: flex-start; gap: 9px; }
.reply-item.nested-reply { margin-left: 28px; padding-left: 10px; border-left: 1px solid var(--line); }
.reply-item > img, .reply-item > span { width: 29px; height: 29px; flex: none; display: grid; place-items: center; border-radius: 10px; object-fit: cover; background: var(--lilac); font-size: 8px; font-weight: 850; }
.reply-content { min-width: 0; flex: 1; }
.reply-item p { margin: 0 0 3px; color: #4e4d47; font-size: 12px; line-height: 1.4; }
.reply-item strong { margin-right: 4px; color: var(--ink); }
.reply-item time { color: #99968e; font-size: 9px; }
.reply-meta { display: flex; align-items: center; gap: 9px; }
.reply-meta button { padding: 0; border: 0; color: #8f8d85; background: none; font-size: 9px; font-weight: 700; }
.reply-meta .reply-like { margin-left: 1px; font-size: 10px; }
.reply-meta .reply-like.liked { color: #e15555; }
.reply-meta .reply-delete { color: #a24638; }
.reply-item.reply-target { border-radius: 8px; background: rgba(199, 255, 82, .18); outline: 5px solid rgba(199, 255, 82, .18); }
.no-replies { margin: 0; color: #99968e; font-size: 11px; }
.reply-form { display: flex; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--soft-line); }
.replying-banner { width: 100%; display: flex; align-items: center; justify-content: space-between; color: #77766f; font-size: 9px; }
.replying-banner[hidden] { display: none; }
.replying-banner button { padding: 0; color: #9c493b; background: none; }
.reply-form:has(.replying-banner:not([hidden])) { flex-wrap: wrap; }
.reply-form input { min-width: 0; flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface); font-size: 12px; }
.reply-form input:focus { border-color: #99968e; box-shadow: 0 0 0 3px rgba(199,255,82,.24); }
.reply-form button, .reply-login { padding: 9px 12px; border: 0; border-radius: 10px; color: var(--ink); background: var(--acid); font-size: 10px; font-weight: 800; text-decoration: none; }
.reply-form .replying-banner button { padding: 0; color: #9c493b; background: none; font-size: 9px; }
.reply-form button:disabled { opacity: .55; }
.reply-login { display: inline-block; }
.action-menu { position: absolute; z-index: 10; top: 24px; right: -4px; width: 226px; padding: 6px; border: 1px solid #dedbd1; border-radius: 15px; background: rgba(255,254,250,.98); box-shadow: 0 14px 38px rgba(45,42,31,.14); backdrop-filter: blur(12px); }
.action-menu .hide-action, .action-menu .delete-action { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; }
.action-menu .hide-action:hover, .action-menu .delete-action:hover { background: #f3f0e8; }
.action-menu .delete-action strong { color: #9c493b; }
.action-icon { width: 31px; height: 31px; flex: none; display: grid; place-items: center; border-radius: 9px; color: #9c493b; background: #f9e8e3; }
.action-icon svg { width: 16px; height: 16px; }
.action-copy { min-width: 0; display: block; }
.action-copy strong { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 750; }
.action-copy small { display: block; padding: 0; color: #8e8b83; font-size: 9px; line-height: 1.25; white-space: nowrap; }
.empty-state { padding: 46px 20px; color: var(--muted); text-align: center; }
.empty-state > span { width: 39px; height: 39px; display: grid; place-items: center; margin: auto; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.empty-state h3 { margin: 12px 0 5px; color: var(--ink); font-size: 15px; }
.empty-state p { margin: 0; font-size: 12px; }

.notifications-view { max-width: 680px; }
.notifications-view h2 { margin: 9px 0 4px; font-size: 32px; letter-spacing: -.045em; }
.section-lead { margin: 0 0 30px; color: var(--muted); }
.notification-item { display: flex; align-items: center; gap: 13px; min-height: 72px; padding: 12px 10px; border-bottom: 1px solid var(--soft-line); border-radius: 16px; color: inherit; text-decoration: none; transition: background-color .16s ease, transform .16s ease; }
.notification-item:hover { background: #f6f5ef; transform: translateX(2px); }
.notification-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #eeece4; color: #171713; }
.notification-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .notification-avatar { overflow: hidden; background: #eeece4; } .notification-avatar-image { width: 100%; height: 100%; display: block; object-fit: cover; } .notification-avatar-initials { font-size: 12px; font-weight: 800; color: #171713; } .notification-item.unread .notification-avatar { background: var(--acid); }
.notification-item.unread .notification-icon { background: var(--acid); }
.notification-copy { min-width: 0; flex: 1; }
.notification-item p { margin: 0 0 5px; line-height: 1.45; }
.notification-item p strong { font-weight: 800; }
.notification-target { display: block; max-width: 520px; margin: 1px 0 5px; overflow: hidden; color: #6f6d65; font-size: 12px; font-style: italic; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.notification-item time { color: var(--muted); font-size: 11px; }
.history-item:target { margin-inline: -8px; padding-inline: 8px; border-radius: 12px; background: #f1ffd5; animation: target-now-pulse 1.4s ease-out; }
@keyframes target-now-pulse { from { box-shadow: 0 0 0 4px rgba(184, 255, 55, .42); } to { box-shadow: 0 0 0 0 rgba(184, 255, 55, 0); } }
.notification-count { display: inline-grid; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; place-items: center; border-radius: 10px; background: #e9e7df; color: #626159; font-size: 10px; font-weight: 800; vertical-align: 1px; }
.notification-item.unread .notification-count { background: var(--acid); color: #171713; }
.notification-chevron { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: #aaa89f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mobile-nav { display: none; }

::view-transition-old(profile-panel) { animation: profile-out .13s ease both; }
::view-transition-new(profile-panel) { animation: profile-in .18s ease both; }
@keyframes profile-out { to { opacity: .35; transform: translateY(2px); } }
@keyframes profile-in { from { opacity: .2; transform: translateY(4px); } }

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

@media (min-width: 701px) {
  html { height: 100%; }
  body[class^="page-"] { height: 100%; overflow: hidden; }
  .site-shell { height: 100vh; padding-bottom: 24px; }
  .app-grid { height: calc(100vh - 116px); min-height: 0; }
  .people-panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.people-list { min-height: 0; flex: 1; max-height: none; }
  .people-footnote { flex: none; }
  .profile-panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7c4ba transparent; }
  .profile-panel::-webkit-scrollbar { width: 6px; }
  .profile-panel::-webkit-scrollbar-track { background: transparent; }
  .profile-panel::-webkit-scrollbar-thumb { border-radius: 999px; background: #c7c4ba; }
  .profile-panel::-webkit-scrollbar-thumb:hover { background: #a9a69c; }
}

.sidebar-meta { flex: none; margin: 12px 20px 0; padding-top: 12px; border-top: 1px solid var(--soft-line); }
.android-download { display: grid; grid-template-columns: 28px 1fr; column-gap: 9px; color: var(--ink); text-decoration: none; }
.android-download > span { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; }
.android-download-icon svg { display: none; }
.android-download-fallback { font: inherit; font-weight: 400; }
.android-download strong { font-size: 10px; }
.android-download small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.android-download:hover strong { text-decoration: underline; }
.sidebar-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 10px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.people-column { display: contents; }
.sidebar-legal-outside { display: none; }
.sidebar-legal a { color: inherit; text-decoration: none; }
.sidebar-legal a:hover { color: var(--ink); text-decoration: underline; }

/* Authentication */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth-shell { width: min(920px, 100%); }
.auth-shell > .brand { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 20px; }
.auth-language { width: max-content; margin: -11px auto 17px; }
.auth-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 65px; padding: 58px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card.google-only { align-items: center; }
.auth-card.google-only .auth-intro { grid-row: auto; }
.auth-intro { grid-row: 1 / span 8; padding: 12px 15px 12px 0; border-right: 1px solid var(--soft-line); }
.auth-intro h1 { max-width: 330px; margin: 19px 0 13px; font-size: 39px; line-height: 1.05; letter-spacing: -.055em; }
.auth-intro p { max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-form { display: grid; gap: 17px; }
.auth-form label, .settings-form > label { display: grid; gap: 7px; color: #5f5e57; font-size: 11px; font-weight: 700; }
.auth-form input, .settings-form input, .settings-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); background: #fbfaf6; font-size: 14px; font-weight: 450; }
.auth-form input:focus, .settings-form input:focus, .settings-form textarea:focus { border-color: #9e9b91; box-shadow: 0 0 0 3px rgba(199,255,82,.28); }
.input-prefix { position: relative; }
.input-prefix b { position: absolute; left: 13px; top: 13px; font-size: 14px; }
.input-prefix input { padding-left: 31px; }
.auth-form > button { min-height: 46px; margin-top: 4px; }
.form-messages { grid-column: 2; }
.form-messages p { margin: 0 0 13px; padding: 11px 13px; border-radius: 10px; background: #fff0ed; color: #9d3d30; font-size: 11px; }
.form-messages p.success { background: #ecf8e9; color: #39713a; }
.demo-note, .auth-switch { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.google-login-form, .google-login-button, .auth-divider { grid-column: 2; }
.google-login-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 800; }
.google-login-button:hover:not(:disabled) { border-color: #bdb9ae; background: #faf9f5; }
.google-only .google-login-button { min-height: 52px; border-radius: 14px; font-size: 13px; }
.google-login-button.unavailable { color: #aaa79e; cursor: not-allowed; }
.google-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #4285f4; background: #fff; box-shadow: 0 0 0 1px #ddd; font-size: 13px; font-weight: 900; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: #aaa79e; font-size: 9px; letter-spacing: .11em; }
.auth-divider:before, .auth-divider:after { content: ""; height: 1px; flex: 1; background: var(--soft-line); }
.demo-note code { padding: 2px 4px; border-radius: 4px; background: #eeece5; color: var(--ink); }
.auth-switch a { color: var(--ink); font-weight: 750; }

/* Settings */
.simple-header { width: min(920px, calc(100% - 40px)); height: 88px; display: flex; align-items: center; justify-content: space-between; margin: auto; }
.simple-header > a:last-child { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 750; text-decoration: none; }
.settings-shell { width: min(680px, calc(100% - 40px)); margin: 18px auto 60px; padding: 42px 48px 48px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: 11px; text-decoration: none; }
.settings-title h1 { margin: 8px 0 7px; font-size: 32px; letter-spacing: -.045em; }
.settings-title p { margin: 0 0 34px; color: var(--muted); font-size: 13px; }
.google-welcome { display: flex; align-items: center; gap: 11px; margin: -15px 0 25px; padding: 13px 15px; border: 1px solid #dfeabf; border-radius: 13px; background: #f7fbe9; color: #5f654c; font-size: 11px; }
.google-welcome strong { color: var(--ink); }
.settings-about {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  background: #faf9f5;
}

.settings-about h2 {
  margin: 0;
  padding: 15px 16px 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.settings-about a,
.settings-about > div {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-top: 1px solid var(--soft-line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.settings-about a:hover { background: #f3f1e9; }
.settings-about b { color: var(--muted); font-size: 22px; font-weight: 500; }
.settings-about small { color: var(--muted); font-size: 11px; font-weight: 500; }
.legal-shell .settings-title { margin-top: 28px; }
.legal-document { margin-top: 34px; border-top: 1px solid var(--soft-line); }
.legal-section { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 32px; padding: 32px 0 8px; }
.legal-section + .legal-section { margin-top: 24px; border-top: 1px solid var(--soft-line); }
.legal-section-heading span { display: block; margin-bottom: 10px; color: #83a91a; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.legal-section-heading h2 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: -.025em; }
.legal-section-body { min-width: 0; }
.legal-section-body > :last-child { margin-bottom: 0; }
.legal-section-intro { margin: 0 0 21px; color: #45443f; font-size: 16px; line-height: 1.72; }
.legal-alpha-list { margin: 0; padding: 0; border-top: 1px solid var(--soft-line); list-style: none; counter-reset: legal-alpha; }
.legal-alpha-list li { counter-increment: legal-alpha; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; padding: 15px 0; border-bottom: 1px solid var(--soft-line); color: var(--ink); font-size: 15px; line-height: 1.62; }
.legal-alpha-list li::before { content: counter(legal-alpha, lower-alpha) "."; color: #83a91a; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 850; line-height: 1.95; }
.legal-placeholder { margin-top: 24px; padding: 22px; border: 1px solid var(--soft-line); border-radius: 18px; background: #faf9f5; }
.legal-placeholder h2 { margin: 0; font-size: 17px; }
.legal-placeholder p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.settings-form { display: grid; gap: 21px; }
.settings-form > label small { color: #9a978e; font-weight: 400; }
.settings-form input:disabled { color: #9a978e; cursor: not-allowed; }
.avatar-editor { display: flex; align-items: center; gap: 20px; padding: 19px; border: 1px solid var(--soft-line); border-radius: 18px; background: #faf9f5; }
.avatar-preview, .avatar-preview img { width: 86px; height: 86px; flex: none; display: grid; place-items: center; border-radius: 25px; object-fit: cover; background: var(--lilac); font-size: 17px; font-weight: 850; }
.avatar-editor h2 { margin: 0 0 5px; font-size: 15px; }
.avatar-editor p { margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.upload-button { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 10px; font-weight: 750; }

.connections-overlay { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(23,23,19,.28); backdrop-filter: blur(5px); }
.connections-overlay[hidden] { display: none; }
.connections-dialog { width: min(430px, 100%); max-height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); box-shadow: 0 24px 80px rgba(23,23,19,.18); }
.connections-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 22px 22px 17px; border-bottom: 1px solid var(--soft-line); }
.connections-dialog > header span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.connections-dialog h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.connections-dialog > header button { width: 31px; height: 31px; display: grid; place-items: center; padding: 0 0 2px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 21px; }
.connections-list { min-height: 130px; overflow-y: auto; padding: 8px; }
.connection-row { display: grid; grid-template-columns: 45px minmax(0,1fr) 16px; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: inherit; text-decoration: none; }
.connection-row:hover { background: #f7f5ef; }
.connection-row img, .connection-row > span:first-child { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; object-fit: cover; background: var(--lilac); font-size: 10px; font-weight: 850; }
.connection-row strong, .connection-row small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-row strong { font-size: 13px; }
.connection-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.connection-row > i { color: #aaa79e; font-size: 19px; font-style: normal; }
.connections-state { padding: 42px 18px; color: var(--muted); text-align: center; font-size: 12px; }
.connections-more { margin: 0 20px 18px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 750; }
.rewind-overlay { position: fixed; z-index: 95; inset: 0; display: grid; place-items: center; padding: 22px; color: #f7f6ef; background: rgba(13,14,11,.72); backdrop-filter: blur(12px); }
.rewind-overlay[hidden] { display: none; }
.rewind-dialog { position: relative; width: min(1100px, 100%); height: min(760px, calc(100vh - 44px)); display: grid; grid-template-rows: auto auto auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 27px; background: #12130f; box-shadow: 0 30px 100px rgba(0,0,0,.38); }
.rewind-topbar { min-height: 82px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.rewind-topbar button, .rewind-topbar select, .rewind-controls button { border: 1px solid rgba(255,255,255,.16); color: #f7f6ef; background: rgba(255,255,255,.06); }
.rewind-close, .rewind-top-actions > button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; font-size: 22px; }
.rewind-topbar > div:nth-child(2) span { color: var(--acid); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rewind-topbar h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.03em; }
.rewind-top-actions { display: flex; align-items: center; gap: 8px; }
.rewind-top-actions select { height: 40px; padding: 0 32px 0 13px; border-radius: 12px; outline: 0; font-size: 11px; font-weight: 700; }
.rewind-top-actions select option { color: var(--ink); background: #fff; }
.rewind-progress { display: flex; gap: 5px; padding: 12px 20px 0; }
.rewind-progress i { height: 3px; flex: 1; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.16); }
.rewind-progress i:after { content: ""; display: block; width: 0; height: 100%; background: var(--acid); }
.rewind-progress i.complete:after { width: 100%; }
.rewind-progress i.active:after { width: var(--rewind-progress, 0%); }
.rewind-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 7px; overflow-x: auto; padding: 12px 20px 0; scrollbar-width: none; }
.rewind-stats::-webkit-scrollbar { display: none; }
.rewind-stat { min-width: 0; padding: 10px 11px 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.045); }
.rewind-stat strong, .rewind-stat span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rewind-stat strong { color: #f7f6ef; font-size: 13px; line-height: 1.15; }
.rewind-stat span { margin-top: 4px; color: #8e8e84; font-size: 8px; font-weight: 650; letter-spacing: .035em; text-transform: uppercase; }
.rewind-stat.feeling strong { color: var(--acid); font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
.rewind-content { min-height: 0; display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 18px; padding: 18px 20px; }
.rewind-list { min-height: 0; display: grid; align-content: start; gap: 9px; overflow-y: auto; padding-right: 5px; scrollbar-width: thin; scrollbar-color: #56584d transparent; }
.rewind-card { position: relative; min-height: 88px; display: grid; grid-template-columns: 48px minmax(0,1fr) 82px; align-items: center; gap: 11px; padding: 11px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; color: inherit; background: rgba(255,255,255,.045); text-align: left; transition: .16s ease; }
.rewind-card:hover { background: rgba(255,255,255,.08); }
.rewind-card.active { border-color: var(--acid); background: rgba(199,255,82,.08); box-shadow: inset 3px 0 var(--acid); }
.rewind-card time { align-self: start; padding-top: 3px; color: #aaa99f; font-family: ui-monospace, monospace; font-size: 10px; }
.rewind-card p { margin: 0; overflow: hidden; font-size: 13px; font-weight: 650; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.rewind-card img, .rewind-card .rewind-card-empty { width: 82px; height: 62px; border-radius: 11px; object-fit: cover; background: linear-gradient(145deg, #2f322a, #1a1b17); }
.rewind-card .rewind-card-empty { display: grid; place-items: center; color: var(--acid); font-size: 18px; }
.rewind-stage { position: relative; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: radial-gradient(circle at 80% 15%, rgba(199,255,82,.18), transparent 35%), linear-gradient(145deg, #292c24, #12130f 70%); }
.rewind-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rewind-stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,5,.12), rgba(6,7,5,.28) 42%, rgba(6,7,5,.9)); }
.rewind-stage-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 64px; padding: clamp(24px, 5vw, 52px); }
.rewind-stage-copy time { color: var(--acid); font-family: ui-monospace, monospace; font-size: 24px; font-weight: 750; }
.rewind-stage-copy p { max-width: 620px; margin: 15px 0 0; font-size: clamp(26px, 4vw, 46px); font-weight: 760; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.rewind-stage-copy > span { display: inline-block; margin-top: 13px; font-family: "Segoe UI Emoji", sans-serif; font-size: 24px; }
.rewind-stage-meta { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 20px; padding: 18px 28px; color: #bab9b0; font-size: 10px; }
.rewind-controls { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px 18px; }
.rewind-controls button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; font-size: 18px; }
.rewind-controls .rewind-play { width: 48px; height: 48px; color: #151610; border-color: var(--acid); background: var(--acid); font-size: 13px; font-weight: 900; }
.rewind-state { position: absolute; inset: 82px 0 0; z-index: 5; display: grid; place-items: center; padding: 30px; color: #bdbcb4; background: #12130f; text-align: center; }
.rewind-state[hidden] { display: none; }
.image-overlay { position: fixed; z-index: 2147483647; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(18,18,15,.86); backdrop-filter: blur(8px); }
.image-overlay[hidden] { display: none; }
.image-overlay img { max-width: min(920px, 92vw); max-height: 88vh; border-radius: 18px; object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,.3); }
.image-overlay > button { position: fixed; top: 18px; right: 20px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: white; background: rgba(0,0,0,.25); font-size: 25px; }
.overlay-open { overflow: hidden; }
.upload-button input { display: none; }
.save-button { min-height: 46px; margin-top: 4px; }

@media (max-width: 900px) {
  .site-shell { width: min(100% - 24px, 820px); }
  .app-grid { grid-template-columns: 330px minmax(0, 1fr); }
  .profile-panel { padding: 36px 30px 48px; }
  .profile-header { align-items: flex-start; }
  .profile-professional, .profile-bio { max-width: 220px; }
  .history-group { grid-template-columns: 65px 1fr; gap: 8px; }
  .auth-card { column-gap: 40px; padding: 42px; }
}

@media (max-width: 700px) {
  body { background: var(--surface); }
  .site-shell { width: 100%; padding-bottom: 82px; }
  .topbar { height: 67px; grid-template-columns: 1fr auto; padding: 0 17px; border-bottom: 1px solid var(--soft-line); }
  .brand { width: 36px; height: 36px; border-radius: 12px; }
  .topnav { display: none; }
  .round-action, .account-menu { display: none; }
  .login-link { font-size: 12px; }
  .join-button { padding: 9px 12px; font-size: 11px; }
  .app-grid { min-height: 0; display: block; border: 0; border-radius: 0; box-shadow: none; }
  .people-panel { min-height: calc(100vh - 132px); padding: 28px 14px; display: flex; flex-direction: column; border: 0; background: var(--surface); }
  .people-heading { order: 0; }
  .people-list { order: 2; max-height: none; margin-right: 0; padding-right: 0; overflow: visible; }
  .sidebar-meta { order: 1; margin: 0 7px 18px; padding: 0; border: 0; }
  .android-download { padding: 12px 13px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf6; }
  .sidebar-legal { justify-content: center; margin-top: 9px; font-size: 9px; }
  .people-heading { min-height: 96px; padding: 0 7px; }
  .people-heading h1 { font-size: 25px; }
  .person-row { grid-template-columns: 49px minmax(0, 1fr) 16px; padding: 13px 8px; border-radius: 15px; }
  .person-row.selected { border-color: transparent; box-shadow: none; }
  .person-row.selected:before { display: none; }
  .person-row:hover { transform: none; }
  .avatar-wrap, .avatar { width: 49px; height: 49px; border-radius: 16px; }
  .people-footnote { margin-top: 25px; }
  .page-home .profile-panel, .page-following .profile-panel { display: none; }
  .page-profile .people-panel, .page-following_profile .people-panel, .page-notifications .people-panel { display: none; }
  .profile-panel { min-height: calc(100vh - 132px); padding: 18px 17px 42px; }
  .mobile-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 18px -5px; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; }
  .mobile-back svg { width: 19px; }
  .profile-header { align-items: flex-start; gap: 12px; padding-bottom: 22px; }
  .profile-identity { align-items: flex-start; gap: 13px; }
  .profile-avatar { width: 59px; height: 59px; border-radius: 19px; font-size: 14px; }
  .profile-identity h2 { font-size: 20px; }
  .profile-professional, .profile-bio { max-width: 185px; font-size: 10px; white-space: normal; }
  .profile-stats { gap: 11px; margin-top: 8px; font-size: 9px; }
  .secondary-button { min-height: 34px; padding: 0 11px; font-size: 0; }
  .secondary-button svg { width: 16px; }
  .follow-button, .profile-actions > a:not(:has(svg)) { font-size: 10px; }
  .now-hero { margin: 22px 0 15px; padding: 23px 21px; border-radius: 19px; }
  .now-hero:after { right: -90px; bottom: -110px; }
  .now-hero p { max-width: 84%; margin-top: 27px; font-size: 29px; }
  .composer { gap: 10px; padding: 14px 14px 11px; border-radius: 17px; box-shadow: none; }
  .composer-avatar img, .composer-avatar span { width: 36px; height: 36px; }
  .composer-author strong { font-size: 12px; }
  .composer-author span { font-size: 9px; }
  .composer textarea { font-size: 14px; }
  .feeling-picker > div { grid-template-columns: repeat(4, minmax(46px, 1fr)); }
  .composer-tools { gap: 2px; }
  .composer .attach-photo { width: 35px; padding: 0; justify-content: center; }
  .composer .attach-photo > span:last-child { display: none; }
  .composer #postButton { width: auto; padding: 0 13px; }
  .character-count { display: none; }
  .history-section { margin-top: 31px; }
  .history-heading { margin-bottom: 22px; }
  .history-heading h3 { font-size: 20px; }
  .history-heading { align-items: flex-start; }
  .rewind-launch { min-width: 0; grid-template-columns: 31px auto; padding: 7px 9px; }
  .rewind-launch > span:first-child { width: 31px; height: 31px; }
  .rewind-launch small, .rewind-launch > i { display: none; }
  .rewind-overlay { padding: 0; }
  .rewind-dialog { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .rewind-topbar { min-height: 70px; padding: 11px 13px; }
  .rewind-topbar h2 { font-size: 16px; }
  .rewind-top-actions select { width: 112px; }
  .rewind-top-actions > button { display: none; }
  .rewind-stats { grid-auto-columns: 116px; padding: 10px 13px 0; scroll-snap-type: x proximity; }
  .rewind-stat { scroll-snap-align: start; }
  .rewind-content { display: block; padding: 13px; }
  .rewind-list { display: none; }
  .rewind-stage { height: 100%; min-height: 0; border-radius: 19px; }
  .rewind-stage-copy { bottom: 54px; padding: 25px; }
  .rewind-stage-copy p { font-size: 30px; }
  .rewind-stage-copy time { font-size: 20px; }
  .rewind-controls { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .history-group { display: block; }
  .history-group h4 { margin: 0 0 14px; }
  .history-item { grid-template-columns: 43px 9px minmax(0,1fr) 86px; gap: 8px; min-height: 56px; }
  .comments-panel { grid-column: 2 / 5; margin-top: -12px; }
  .history-copy p { font-size: 14px; }
  .mobile-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 66px; display: grid; grid-template-columns: 1fr 70px 1fr 1fr; align-items: center; border-top: 1px solid var(--soft-line); background: rgba(255,254,250,.94); backdrop-filter: blur(12px); }
  .mobile-nav a { display: grid; justify-items: center; gap: 3px; color: #96938a; font-size: 9px; text-decoration: none; }
  .mobile-nav svg { width: 20px; height: 20px; }
  .mobile-nav a.active { color: var(--ink); }
  .mobile-nav .mobile-compose { width: 43px; height: 43px; place-self: center; display: grid; place-items: center; border-radius: 14px; color: var(--ink); background: var(--acid); font-size: 24px; box-shadow: 0 5px 15px rgba(128,161,51,.22); }
  .auth-page { padding: 16px; }
  .auth-shell > .brand { margin-bottom: 18px; }
  .auth-card { display: block; padding: 27px 22px; border-radius: 23px; }
  .auth-intro { margin-bottom: 27px; padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .auth-intro h1 { margin-top: 14px; font-size: 31px; }
  .google-only .google-login-form, .google-only > .google-login-button { margin-top: 4px; }
  .form-messages { margin-bottom: 13px; }
  .simple-header { height: 68px; }
  .settings-shell { width: 100%; margin: 0; padding: 30px 20px 48px; border: 0; border-radius: 0; box-shadow: none; }
  .legal-document { margin-top: 28px; }
  .legal-section { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; }
  .legal-section-heading { display: flex; align-items: baseline; gap: 12px; }
  .legal-section-heading span { margin: 0; }
  .legal-section-heading h2 { font-size: 19px; }
  .legal-section-intro { font-size: 15px; line-height: 1.7; }
  .legal-alpha-list li { padding: 14px 0; font-size: 14px; }
  .avatar-editor { align-items: flex-start; gap: 14px; padding: 15px; }
  .avatar-preview, .avatar-preview img { width: 70px; height: 70px; border-radius: 21px; }
}

/* Messaging drawer */
.message-launch { position: relative; border: 0; cursor: pointer; }
.message-launch svg, .drawer-icon svg, .chat-header-actions svg, .message-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.message-launch > b { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 10px; display: grid; place-items: center; color: #171713; background: #c7ff52; font-size: 9px; line-height: 1; }
.message-profile-button { background: #c7ff52; color: #171713; border-color: #c7ff52; margin-left: 7px; }
.messages-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(23, 23, 19, .16); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.messages-backdrop.visible { opacity: 1; pointer-events: auto; }
.messages-drawer[hidden], .messages-backdrop[hidden] { display: none !important; }
.messages-drawer { position: fixed; z-index: 50; top: 14px; right: 14px; bottom: 14px; width: min(680px, calc(100vw - 28px)); background: #fbfaf6; border: 1px solid rgba(23, 23, 19, .11); border-radius: 22px; box-shadow: 0 28px 90px rgba(23, 23, 19, .2); overflow: hidden; transform: translateX(calc(100% + 34px)); transition: transform .34s cubic-bezier(.22, 1, .36, 1); display: flex; flex-direction: column; }
.messages-drawer.open { transform: translateX(0); }
.messages-drawer-header { min-height: 80px; padding: 20px 22px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e9e7df; }
.messages-drawer-header h2 { margin: 3px 0 0; color: #171713; font-size: 24px; letter-spacing: -.8px; }
.messages-drawer-header .eyebrow { color: #93bd18; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.messages-header-actions, .chat-header-actions { display: flex; align-items: center; gap: 8px; }
.drawer-icon { width: 35px; height: 35px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #171713; background: transparent; cursor: pointer; font-size: 27px; line-height: 1; }
.drawer-icon:hover, .chat-header-actions button:hover { background: #efeee8; }
.messages-new { padding: 13px 18px 15px; background: #f3f1e9; border-bottom: 1px solid #e5e2d8; }
.messages-new label { display: block; margin-bottom: 7px; color: #5c5b54; font-size: 11px; font-weight: 700; }
.messages-new form > div { display: flex; gap: 7px; }
.messages-new input, .message-search input, .message-composer input { min-width: 0; border: 0; outline: 0; color: #171713; background: transparent; font: inherit; }
.messages-new input { flex: 1; height: 36px; padding: 0 12px; border: 1px solid #ddd9cf; border-radius: 10px; background: #fff; }
.messages-new form button { border: 0; border-radius: 10px; padding: 0 16px; color: #f8f7f1; background: #171713; font-weight: 800; cursor: pointer; }
.messages-error { min-height: 14px; margin: 6px 0 0; color: #c45535; font-size: 11px; }
.messages-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: 245px minmax(0, 1fr); }
.conversation-list-pane { min-width: 0; border-right: 1px solid #e9e7df; background: #f8f7f2; overflow: hidden; display: flex; flex-direction: column; }
.message-search { display: flex; align-items: center; gap: 8px; margin: 14px 12px 9px; padding: 0 10px; height: 36px; border-radius: 10px; color: #93928b; background: #eeece5; }
.message-search input { width: 100%; font-size: 11px; }
.message-search input::placeholder { color: #a5a39b; }
.conversation-list { min-height: 0; flex: 1; overflow-y: auto; padding: 0 7px 12px; }
.conversation-row { width: 100%; display: flex; align-items: center; gap: 9px; padding: 11px 8px; border: 0; border-radius: 12px; text-align: left; background: transparent; cursor: pointer; }
.conversation-row:hover, .conversation-row.active { background: #ebe9e1; }
.conversation-avatar, .chat-contact-avatar { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #171713; background: #c7ff52; font-size: 12px; font-weight: 800; }
.conversation-avatar img, .chat-contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conversation-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.conversation-copy strong { overflow: hidden; color: #272721; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy small { color: #98968d; font-size: 9px; }
.conversation-copy em { overflow: hidden; color: #77766f; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 4px; }
.conversation-meta time { color: #aaa79e; font-size: 9px; white-space: nowrap; }
.conversation-meta b { min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 10px; color: #171713; background: #c7ff52; font-size: 9px; }
.messages-state { min-height: 130px; padding: 36px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #77766f; text-align: center; font-size: 11px; }
.messages-state span { color: #9cc126; font-size: 21px; }.messages-state strong { color: #3b3a34; font-size: 12px; }.messages-state small { color: #aaa79e; font-size: 10px; line-height: 1.4; }.messages-state.error { color: #c45535; }
.chat-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fffefa; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: #939189; text-align: center; }
.chat-empty span { width: 52px; height: 52px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 18px; color: #171713; background: #c7ff52; font-size: 29px; }.chat-empty h3 { margin: 0 0 6px; color: #34332d; font-size: 15px; }.chat-empty p { max-width: 210px; margin: 0; color: #9b9990; font-size: 11px; line-height: 1.5; }
.chat-header { min-height: 65px; padding: 11px 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eeece5; }
.chat-contact-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }.chat-contact-copy strong { overflow: hidden; color: #272721; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.chat-contact-copy small { color: #7ca316; font-size: 10px; }
.chat-header-actions button { width: 31px; height: 31px; border: 0; border-radius: 50%; color: #58574f; background: transparent; cursor: pointer; }
.message-stream { min-height: 0; flex: 1; overflow-y: auto; padding: 24px 18px 11px; display: flex; flex-direction: column; gap: 12px; }.message-day-empty { margin: auto; color: #b2afa6; font-size: 10px; }
.message-bubble-row { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }.message-bubble-row.incoming { align-self: flex-start; align-items: flex-start; }.message-bubble-row.own { align-self: flex-end; align-items: flex-end; }
.message-bubble { padding: 10px 13px; border-radius: 15px; color: #3d3c35; background: #f0eee8; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }.message-bubble-row.own .message-bubble { color: #28300f; background: #dfff8d; border-bottom-right-radius: 5px; }.message-bubble-row.incoming .message-bubble { border-bottom-left-radius: 5px; }.message-bubble-row time { color: #aaa79f; font-size: 9px; }
.typing-indicator { min-height: 24px; padding: 0 18px 7px; align-items: center; gap: 3px; color: #aaa79f; font-size: 9px; }.typing-indicator:not([hidden]) { display: flex; }.typing-indicator i { width: 4px; height: 4px; border-radius: 50%; background: #a5c632; animation: message-dot 1s infinite ease-in-out; }.typing-indicator i:nth-child(2) { animation-delay: .12s; }.typing-indicator i:nth-child(3) { animation-delay: .24s; }
@keyframes message-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.message-composer { margin: 0 13px 13px; min-height: 49px; padding: 5px 7px 5px 13px; display: flex; align-items: center; gap: 7px; border: 1px solid #dedbd1; border-radius: 14px; background: #fffefa; }.message-composer input { flex: 1; height: 37px; font-size: 11px; }.message-composer input::placeholder { color: #aaa79e; }.composer-emoji { width: 29px; height: 29px; border: 0; color: #7c7a70; background: transparent; font-size: 18px; cursor: pointer; }.composer-send { height: 34px; padding: 0 14px; border: 0; border-radius: 17px; color: #f8f7f1; background: #171713; font-size: 11px; font-weight: 800; cursor: pointer; }.composer-send:disabled { opacity: .5; cursor: wait; }
body.messages-open { overflow: hidden; }
@media (max-width: 700px) { .messages-drawer { top: 0; right: 0; bottom: 0; width: 100vw; border: 0; border-radius: 0; }.messages-layout { grid-template-columns: 1fr; position: relative; overflow: hidden; }.conversation-list-pane { border-right: 0; transition: transform .28s ease; }.chat-pane { position: absolute; inset: 0; transform: translateX(100%); transition: transform .28s ease; }.messages-drawer.chat-selected .conversation-list-pane { transform: translateX(-100%); }.messages-drawer.chat-selected .chat-pane { transform: translateX(0); }.message-bubble-row { max-width: 88%; } }

/* Messaging layout alignment */
.messages-drawer [hidden] { display: none !important; }
.messages-drawer-header { min-height: 61px; padding: 14px 18px 13px; }
.messages-drawer-header h2 { font-size: 20px; letter-spacing: -.55px; }
.messages-settings { min-height: 53px; margin: auto 10px 0; padding: 0 8px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #ebe8df; color: #77766f; font-size: 10px; }
.messages-settings svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.messages-new { padding-top: 11px; padding-bottom: 12px; }
.message-stream { padding-top: 20px; }

/* WebRTC call overlay */
.call-overlay { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(23, 23, 19, .42); }
.call-overlay[hidden] { display: none !important; }
.call-dialog { width: min(430px, 100%); overflow: hidden; border: 1px solid rgba(23, 23, 19, .18); border-radius: 24px; background: #fbfaf6; box-shadow: 0 28px 90px rgba(23, 23, 19, .28); }
.call-dialog-header { min-height: 65px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9e7df; }
.call-dialog-header h2 { margin: 3px 0 0; color: #171713; font-size: 18px; letter-spacing: -.4px; }.call-dialog-header .eyebrow { color: #91b91a; font-size: 9px; letter-spacing: .12em; }
.call-close { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #171713; background: transparent; font-size: 24px; cursor: pointer; }.call-close:hover { background: #efeee8; }
.call-stage { position: relative; min-height: 300px; display: grid; place-items: center; overflow: hidden; background: #1a1b16; }
.call-stage video { width: 100%; height: 100%; min-height: 300px; display: block; object-fit: cover; }.call-stage video[hidden] { display: none; }
.call-stage #remoteVideo { background: #1a1b16; }.call-stage #localVideo { position: absolute; right: 14px; bottom: 14px; width: 104px; height: 138px; min-height: 0; border: 2px solid #c7ff52; border-radius: 13px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.call-remote-avatar { position: absolute; width: 75px; height: 75px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #171713; background: #c7ff52; font-size: 17px; font-weight: 850; }.call-remote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.call-status { position: absolute; left: 0; right: 0; bottom: 15px; color: #f8f7f1; text-align: center; font-size: 11px; text-shadow: 0 1px 5px #000; }.audio-only .call-stage #remoteVideo, .audio-only .call-stage #localVideo { display: none; }
.call-incoming-actions, .call-control-actions { min-height: 76px; padding: 16px 20px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fbfaf6; }.call-incoming-actions[hidden], .call-control-actions[hidden] { display: none; }
.call-incoming-actions button { height: 40px; padding: 0 17px; border: 0; border-radius: 20px; font-size: 12px; font-weight: 800; cursor: pointer; }.call-decline { color: #fff; background: #c45535; }.call-accept { color: #202512; background: #c7ff52; }
.call-control-actions button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #36362f; background: #eeece5; cursor: pointer; }.call-control-actions button:hover { background: #dedbd1; }.call-control-actions button.muted { color: #fff; background: #c45535; }.call-control-actions svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.call-control-actions .call-hangup { color: #fff; background: #c45535; }.call-control-actions .call-hangup:hover { background: #a94029; }
@media (max-width: 500px) { .call-overlay { padding: 0; }.call-dialog { width: 100%; border-radius: 0; }.call-stage, .call-stage video { min-height: 360px; } }

/* Compact messaging window with the NOW page still visible behind it */
.messages-drawer { top: 22px; right: 22px; bottom: 22px; width: min(720px, calc(100vw - 44px)); }
.chat-contact-copy small { display: flex; align-items: center; gap: 4px; }
.chat-contact-copy small::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #43bd66; box-shadow: 0 0 0 3px rgba(67, 189, 102, .12); }
.chat-contact-copy em { display: block; max-width: 260px; overflow: hidden; color: #8b8981; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.chat-header-actions { margin-left: 8px; }
.call-action { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #58574f; background: transparent; cursor: pointer; }
.call-action:hover { background: #efeee8; color: #171713; }
.call-action svg { width: 17px; height: 17px; }
.chat-delete-action:hover { color: #b54b3c !important; background: #fff0ed !important; }
@media (min-width: 701px) { .messages-drawer { max-height: calc(100vh - 44px); } }
@media (max-width: 700px) { .messages-drawer { top: 0; right: 0; bottom: 0; width: 100vw; } }

/* Tablet-sized desktop layout: keep the drawer compact and preserve both columns */
@media (min-width: 561px) and (max-width: 700px) {
  .messages-drawer { top: 22px; right: 22px; bottom: 22px; width: min(640px, calc(100vw - 44px)); border: 1px solid rgba(23, 23, 19, .11); border-radius: 22px; }
  .messages-layout { grid-template-columns: 215px minmax(0, 1fr); position: static; overflow: visible; }
  .conversation-list-pane, .chat-pane { position: static; transform: none !important; }
  .chat-pane { min-width: 0; }
}

/* Softer messaging palette and independent scrolling */
.messages-drawer { width: min(650px, calc(100vw - 44px)); }
.messages-drawer-header { min-height: 58px; padding-top: 12px; padding-bottom: 11px; }
.messages-drawer-header h2 { font-size: 19px; }
.messages-layout { min-height: 0; overflow: hidden; }
.conversation-list-pane, .chat-pane { min-height: 0; overflow: hidden; }
.conversation-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.message-stream { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.conversation-avatar, .chat-contact-avatar { background: #dce9b7; color: #4f5c2e; }
.chat-contact-copy small { color: #718050; }
.chat-contact-copy small::before { background: #8da966; box-shadow: 0 0 0 3px rgba(141, 169, 102, .14); }
.conversation-row:hover, .conversation-row.active { background: #eeeee7; }
.message-bubble { color: #4e4d45; background: #f1f0ea; }
.message-bubble-row.own .message-bubble { color: #58612d; background: #e2edb8; }
.message-bubble-row time { color: #aaa99f; }
.call-remote-avatar { background: #dce9b7; color: #4f5c2e; }
.message-launch > b, .conversation-meta b, .message-profile-button { color: #4f5c2e; background: #dce9b7; }
@media (min-width: 701px) { .messages-drawer { max-height: calc(100vh - 44px); } }
@media (min-width: 561px) and (max-width: 700px) { .messages-drawer { width: min(610px, calc(100vw - 44px)); } }

/* Overlay-only drawer: the page behind remains scrollable and interactive */
body.messages-open { overflow: auto; }
.messages-backdrop.visible { pointer-events: none; }
.messages-drawer { top: 32px; right: 32px; bottom: auto; height: min(720px, calc(100vh - 64px)); }
@media (min-width: 561px) and (max-width: 700px) { .messages-drawer { top: 24px; right: 24px; bottom: auto; width: min(610px, calc(100vw - 48px)); height: min(680px, calc(100vh - 48px)); } }
@media (max-width: 560px) { .messages-drawer { top: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; } }

/* Small, readable dock: highlight the chat without dimming the NOW page */
.messages-backdrop { background: transparent; }
.messages-backdrop.visible { opacity: 1; pointer-events: none; }
.messages-drawer { top: 22px; right: 22px; bottom: auto; width: min(460px, calc(100vw - 44px)); height: min(700px, calc(100vh - 44px)); border: 1px solid rgba(23, 23, 19, .16); box-shadow: -18px 18px 48px rgba(23, 23, 19, .2), 0 0 0 4px rgba(255, 254, 250, .42); }
.messages-layout { grid-template-columns: 178px minmax(0, 1fr); }
@media (min-width: 561px) and (max-width: 700px) { .messages-drawer { top: 18px; right: 18px; width: min(460px, calc(100vw - 36px)); height: min(680px, calc(100vh - 36px)); } .messages-layout { grid-template-columns: 178px minmax(0, 1fr); } }

/* Keep the messaging dock above profile swaps from the very first frame */
.messages-drawer { z-index: 1000 !important; isolation: isolate; }
.messages-drawer.open { will-change: transform; }
.call-overlay { z-index: 1100; isolation: isolate; }
::view-transition-group(profile-panel),
::view-transition-image-pair(profile-panel),
::view-transition-old(profile-panel),
::view-transition-new(profile-panel) { z-index: 0 !important; }

/* Lightweight draggable/resizable messaging dock */
.messages-drawer.is-positioned { right: auto; bottom: auto; }
.messages-drawer.is-positioned .messages-drawer-header { cursor: grab; user-select: none; }
.messages-drawer.is-positioned .messages-drawer-header:active { cursor: grabbing; }
.drawer-resize-handle { position: absolute; right: 0; bottom: 0; z-index: 4; width: 22px; height: 22px; cursor: nwse-resize; }
.drawer-resize-handle::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; border-right: 2px solid #aaa89f; border-bottom: 2px solid #aaa89f; opacity: .8; }
@media (max-width: 560px) { .drawer-resize-handle { display: none; } }

/* No intermediate slide frame: the chat dock must cover its own area immediately */
.messages-drawer { z-index: 2147483000 !important; background: #fbfaf6 !important; transition: none !important; transform: translateX(calc(100% + 34px)); }
.messages-drawer.open { transform: translateX(0) !important; }
.messages-drawer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fbfaf6; pointer-events: none; }

/* Hard isolation for messaging so profile updates cannot paint above it */
.messages-drawer { position: fixed !important; z-index: 2147483000 !important; isolation: isolate; contain: paint; opacity: 1 !important; visibility: visible; transition: none !important; }
.messages-drawer:not(.open) { visibility: hidden; pointer-events: none; }
.messages-drawer.open { visibility: visible; pointer-events: auto; transform: none !important; }
.messages-drawer > * { position: relative; z-index: 1; }

/* Resize handle is intentionally fixed to the bottom-right corner */
.messages-drawer > .drawer-resize-handle { position: absolute !important; left: auto !important; top: auto !important; right: 0 !important; bottom: 0 !important; z-index: 20 !important; width: 30px; height: 30px; display: block; cursor: nwse-resize; touch-action: none; }
.messages-drawer > .drawer-resize-handle::after { right: 7px; bottom: 7px; width: 12px; height: 12px; border-right: 2px solid #77766f; border-bottom: 2px solid #77766f; }

/* Compact outer-header controls: keep call icons in the chat header unchanged. */
.messages-header-actions { gap: 4px; }
.messages-header-actions .drawer-icon { width: 28px; height: 28px; padding: 0; color: #625f57; font-size: 20px; line-height: 1; }
.messages-header-actions .drawer-icon svg { width: 17px; height: 17px; stroke-width: 1.65; }
.messages-header-actions .drawer-icon:hover { color: #292821; background: #efeee8; }

/* Keep the close glyph's SVG aligned like the new-message icon. */
.messages-header-actions .drawer-icon svg path { vector-effect: non-scaling-stroke; }

/* Cache marker: messaging14 */

/* Compact new-conversation form. */
.messages-new { padding: 10px 12px 11px; background: #f3f1e9; }
.messages-new label { margin-bottom: 5px; color: #5c5b54; font-size: 10px; }
.messages-new form > div { gap: 6px; }
.messages-new input { height: 34px; padding: 0 11px; border-radius: 10px; font-size: 12px; }
.messages-new form button { min-width: 54px; height: 34px; padding: 0 12px; border-radius: 11px; font-size: 11px; }
.messages-error { min-height: 12px; margin-top: 4px; font-size: 10px; }

/* Cache marker: messaging15 */

/* NOW-to-message action and compact message receipts/actions. */
.message-now-action { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #88867d; background: transparent; cursor: pointer; }
.message-now-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.message-now-action:hover { color: #4f5c2e; background: #e9edda; }
.message-receipt { margin-left: 2px; font-size: 10px; letter-spacing: -2px; }
.message-receipt.sent { color: #aaa79f; }
.message-receipt.delivered { color: #858b78; }
.message-receipt.seen { color: #758d41; }
.message-actions { display: flex; gap: 3px; margin-top: -1px; opacity: 0; transition: opacity .16s ease; }
.message-bubble-row:hover .message-actions, .message-bubble-row:focus-within .message-actions { opacity: 1; }
.message-actions button { min-width: 20px; height: 18px; padding: 0 4px; border: 0; border-radius: 6px; color: #9a988f; background: transparent; font-size: 11px; line-height: 1; cursor: pointer; }
.message-actions button:hover { color: #4f5c2e; background: #eeeee7; }
.message-bubble-row[data-message-state="revoked"] .message-bubble, .message-bubble-row[data-message-state="deleted"] .message-bubble { color: #aaa79f; background: #f4f2ec; font-style: italic; }

/* Cache marker: messaging20 */

.now-hero { position: relative; }
.now-hero .hero-message-now { position: absolute; right: 22px; bottom: 20px; width: 28px; height: 28px; color: rgba(255,255,255,.72); }
.now-hero .hero-message-now:hover { color: #dce9b7; background: rgba(255,255,255,.1); }
.now-hero .hero-message-now svg { width: 17px; height: 17px; }

/* Cache marker: messaging21 */

/* History actions: same baseline and muted tone for like, comment, and IB. */
.history-actions { align-items: center; gap: 8px; }
.history-actions .message-now-action { width: 22px; height: 16px; min-width: 22px; border-radius: 0; color: #8f8d85; opacity: .45; }
.history-actions .message-now-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.history-item:hover .message-now-action, .history-actions .message-now-action:focus-visible { color: var(--ink); opacity: 1; }
.chat-contact-copy small[data-online="false"] { color: #9b9991 !important; }
.chat-contact-copy small[data-online="false"]::before { background: #aaa79f !important; box-shadow: 0 0 0 3px rgba(170,167,159,.14) !important; }
.chat-contact-copy small[data-online="true"] { color: #718050 !important; }
.chat-contact-copy small[data-online="true"]::before { background: #8da966 !important; box-shadow: 0 0 0 3px rgba(141,169,102,.14) !important; }

/* Cache marker: messaging22 */

.message-reply-context { margin: 0 13px -7px; min-height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px 4px 10px; border: 1px solid #e3e0d6; border-bottom: 0; border-radius: 10px 10px 0 0; color: #85837b; background: #f7f6f0; font-size: 9px; }
.message-reply-context span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-reply-context button { width: 18px; height: 18px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; color: #9a988f; background: transparent; cursor: pointer; }
.message-reply-context button:hover { color: #4f4e47; background: #ebe9e0; }
.history-actions .message-now-action { align-self: center; vertical-align: middle; background: transparent !important; box-shadow: none !important; }
.history-actions .message-now-action:hover { color: #77756e !important; background: transparent !important; }

/* Cache marker: messaging23 */

/* Final NOW action alignment: heart, comment, and IB share one baseline. */
.history-item > .history-actions { align-self: start; align-items: center; justify-content: flex-end; gap: 7px; min-height: 16px; margin-top: -2px; }
.history-actions .like-toggle, .history-actions .comment-toggle, .history-actions .message-now-action { width: 16px; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 0; border: 0; border-radius: 0; color: #8f8d85; background: transparent !important; opacity: .45; line-height: 1; }
.history-actions .like-toggle svg, .history-actions .comment-toggle svg, .history-actions .message-now-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.history-actions .like-toggle span, .history-actions .comment-toggle span { font-size: 9px; line-height: 1; }
.history-item:hover .like-toggle, .history-item:hover .comment-toggle, .history-item:hover .message-now-action, .history-actions .like-toggle:focus-visible, .history-actions .comment-toggle:focus-visible, .history-actions .message-now-action:focus-visible { color: #77756e; opacity: .85; }

/* Cache marker: messaging25 */

.message-reply-reference { max-width: 100%; display: flex; align-items: center; gap: 5px; margin: -2px 0 6px; padding: 3px 6px 3px 5px; border-left: 2px solid rgba(96,111,49,.48); color: #7b806b; background: rgba(255,255,255,.26); font-size: 9px; line-height: 1.25; }
.message-reply-reference svg { width: 12px; height: 12px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.message-reply-reference span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-bubble-row.incoming .message-reply-reference { border-left-color: #aaa79f; color: #929087; background: rgba(255,255,255,.45); }
.message-bubble-row[data-message-state="revoked"] .message-reply-reference, .message-bubble-row[data-message-state="deleted"] .message-reply-reference { display: none; }

/* Cache marker: messaging27 */

/* Facebook-like color treatment only: geometry and icon shapes stay unchanged. */
.history-actions .like-toggle,
.history-actions .comment-toggle,
.history-actions .message-now-action { color: #8b8e94 !important; }
.history-actions .like-toggle:hover,
.history-actions .comment-toggle:hover,
.history-actions .message-now-action:hover,
.history-actions .like-toggle:focus-visible,
.history-actions .comment-toggle:focus-visible,
.history-actions .message-now-action:focus-visible { color: #5a78b8 !important; }
.history-actions .like-toggle.liked { color: #e25555 !important; }
.history-actions .comment-toggle[aria-expanded="true"] { color: #5a78b8 !important; }

/* Cache marker: messaging29 */

/* Restore the reference History geometry; only the colors differ from the old layout. */
.history-item > .history-actions { align-self: stretch; align-items: flex-start; justify-content: flex-end; gap: 8px; min-height: 0; margin-top: 0; }
.history-actions .like-toggle,
.history-actions .comment-toggle,
.history-actions .message-now-action { width: auto; min-width: 22px; height: auto; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; border-radius: 0; line-height: 1; }
.history-actions .like-toggle svg,
.history-actions .comment-toggle svg,
.history-actions .message-now-action svg { width: 15px; height: 15px; }
.history-actions .like-toggle span,
.history-actions .comment-toggle span { font-size: 9px; }

/* Cache marker: messaging30 */

/* Keep the History action row on one line; the action column fits its icons. */
.history-item { grid-template-columns: 50px 10px minmax(0, 1fr) max-content; }
.history-item > .history-actions { width: max-content; flex-wrap: nowrap; white-space: nowrap; }
.history-item > .history-actions > * { flex: 0 0 auto; }

/* Final paper-plane icon geometry stays in the same 15px family as heart/comment. */
.history-actions .message-now-action svg { width: 15px; height: 15px; stroke-width: 1.65; }

/* Cache marker: messaging31 */

/* Hard one-row action rail: heart, comment, and IB cannot wrap independently. */
.history-item > .history-actions { display: grid !important; grid-auto-flow: column; grid-auto-columns: max-content; align-items: start; justify-content: end; width: max-content; min-width: max-content; white-space: nowrap; }
.history-item > .history-actions > .like-toggle,
.history-item > .history-actions > .comment-toggle,
.history-item > .history-actions > .message-now-action,
.history-item > .history-actions > .item-menu { grid-row: 1; align-self: start; }

/* Cache marker: messaging32 */

/* Small visual correction only: plane slightly larger, liked heart fully opaque. */
.history-actions .message-now-action svg { width: 16px; height: 16px; }
.history-actions .like-toggle.liked { color: #e15555 !important; opacity: 1 !important; }

/* Cache marker: messaging33 */

/* Message badge: hidden must override the round-action display rule. */
.round-action b#messageUnreadBadge[hidden] { display: none !important; }
.round-action > b, .message-launch > b, #messageUnreadBadge { color: var(--ink) !important; background: var(--acid) !important; }
/* Paper-plane action: slightly larger and intentionally colored, without changing its layout slot. */
.history-actions .message-now-action { color: #5a78b8 !important; opacity: .78 !important; }
.history-actions .message-now-action svg { width: 17px; height: 17px; }

/* Cache marker: messaging34 */

/* Chat polish: one visual system for the web messenger and the History actions. */
.messages-backdrop { background: rgba(23, 23, 19, .12); }
.messages-backdrop.visible { opacity: 1; pointer-events: auto; }
body.messages-open { overflow: hidden; }
.messages-drawer {
  top: 24px;
  right: 24px;
  bottom: auto;
  width: min(620px, calc(100vw - 48px));
  height: min(680px, calc(100vh - 48px));
  border: 1px solid rgba(23, 23, 19, .14);
  border-radius: 20px;
  background: #fffefa;
  box-shadow: 0 24px 72px rgba(23, 23, 19, .22);
}
.messages-drawer-header {
  min-height: 64px;
  padding: 14px 18px;
  background: #fffefa;
}
.messages-drawer-header h2 { font-size: 20px; letter-spacing: -.04em; }
.messages-layout { grid-template-columns: 196px minmax(0, 1fr); }
.conversation-list-pane { background: #f7f6f1; }
.message-search { height: 34px; margin: 12px 10px 8px; border-radius: 10px; background: #ecebe4; }
.conversation-list { padding: 0 6px 10px; }
.conversation-row { gap: 9px; padding: 10px 8px; border-radius: 11px; }
.conversation-row:hover, .conversation-row.active { background: #ebe9e0; }
.conversation-avatar, .chat-contact-avatar { background: #e5edc6; color: #526332; }
.chat-pane { background: #fffefa; }
.chat-header { min-height: 66px; padding: 11px 15px; }
.chat-header-actions { gap: 3px; }
.chat-header-actions button, .call-action { width: 32px; height: 32px; }
.chat-contact-copy small { color: #72844c; }
.message-stream { padding: 20px 22px 15px; gap: 14px; }
.message-bubble-row { position: relative; max-width: 74%; gap: 4px; }
.message-bubble {
  padding: 10px 12px;
  border-radius: 17px;
  color: #34342f;
  background: #f0efe9;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 19, .025);
  font-size: 12px;
  line-height: 1.45;
}
.message-bubble-row.own .message-bubble { color: #28320e; background: #dfff8d; border-bottom-right-radius: 5px; }
.message-bubble-row.incoming .message-bubble { border-bottom-left-radius: 5px; }
.message-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-bubble-row time { padding: 0 3px; color: #aaa79e; font-size: 9px; }
.message-receipt { font-weight: 800; letter-spacing: -1px; }
.message-receipt.seen { color: #6f8b31; }
.message-reply-reference {
  display: block;
  min-width: 0;
  margin: -2px -2px 7px;
  padding: 4px 7px 5px 8px;
  border-left: 2px solid rgba(77, 94, 37, .6);
  border-radius: 3px;
  color: #6e765d;
  background: rgba(255, 255, 255, .38);
  font-size: 9px;
  line-height: 1.3;
}
.message-reply-reference small, .message-reply-reference span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-reply-reference small { margin-bottom: 1px; color: #526332; font-size: 9px; font-weight: 800; }
.message-bubble-row.incoming .message-reply-reference { border-left-color: #b5b3aa; color: #858278; background: rgba(255,255,255,.52); }
.message-bubble-row.incoming .message-reply-reference small { color: #69675f; }
.message-actions {
  position: absolute;
  top: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid #e6e3da;
  border-radius: 9px;
  background: #fffefa;
  box-shadow: 0 5px 14px rgba(23, 23, 19, .08);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .16s ease, transform .16s ease;
}
.message-bubble-row.incoming .message-actions { left: calc(100% + 6px); }
.message-bubble-row.own .message-actions { right: calc(100% + 6px); }
.message-bubble-row:hover .message-actions, .message-bubble-row:focus-within .message-actions { opacity: 1; transform: translateY(0); }
.message-actions button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #77756d;
  background: transparent;
  cursor: pointer;
}
.message-actions button:hover { color: #171713; background: #f0eee8; }
.message-actions .message-delete-action:hover { color: #a24738; background: #f8e8e4; }
.message-actions svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.message-reply-context { margin: 0 13px -7px; min-height: 32px; padding: 6px 8px 5px 10px; border-color: #dfddd3; color: #707067; background: #f7f6f0; }
.message-reply-context::before { content: "↳"; color: #72844c; font-size: 13px; }
.message-composer { min-height: 48px; border-radius: 15px; }
.composer-send { border-radius: 10px; color: #202512; background: #c7ff52; }
.composer-send:hover { background: #bdf53d; }

/* History: photo, like, comment and direct share one 16px baseline. */
.history-item { grid-template-columns: 50px 10px minmax(0, 1fr) max-content; }
.history-item > .history-actions {
  display: inline-flex !important;
  width: max-content;
  min-width: max-content;
  height: 20px;
  min-height: 20px !important;
  align-self: start !important;
  align-items: center !important;
  justify-content: flex-end;
  flex-wrap: nowrap !important;
  gap: 7px;
  margin: 0 !important;
  white-space: nowrap;
}
.history-actions .photo-toggle,
.history-actions .like-toggle,
.history-actions .comment-toggle,
.history-actions .message-now-action {
  width: auto;
  min-width: 17px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #949188 !important;
  background: transparent !important;
  font-size: 9px;
  line-height: 1;
  opacity: .66 !important;
}
.history-actions .photo-toggle svg,
.history-actions .like-toggle svg,
.history-actions .comment-toggle svg,
.history-actions .message-now-action svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.history-actions .like-toggle span, .history-actions .comment-toggle span { min-width: 4px; font-size: 9px; line-height: 1; }
.history-item:hover .history-actions .photo-toggle,
.history-item:hover .history-actions .like-toggle,
.history-item:hover .history-actions .comment-toggle,
.history-item:hover .history-actions .message-now-action,
.history-actions button:focus-visible { color: #3c3b35 !important; opacity: 1 !important; }
.history-actions .like-toggle.liked { color: #e15555 !important; opacity: 1 !important; }
.history-actions .like-toggle.liked svg { fill: currentColor; }
.history-actions .comment-toggle[aria-expanded="true"] { color: #526332 !important; opacity: 1 !important; }
.history-actions .message-now-action:hover { color: #526332 !important; }
.now-hero .hero-message-now { width: 30px; height: 30px; border-radius: 50%; }
.now-hero .hero-message-now svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .messages-backdrop { display: none; }
  body.messages-open { overflow: hidden; }
  .messages-drawer { top: 0; right: 0; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
  .messages-layout { grid-template-columns: 1fr; }
  .message-stream { padding-inline: 16px; }
  .message-bubble-row { max-width: 82%; }
  .message-actions { display: none; }
}

/* Messenger-style reply hierarchy: quote in the bubble, composer context above it. */
.message-reply-reference {
  display: grid;
  grid-template-columns: 2px minmax(0, 1fr);
  column-gap: 7px;
  margin: 0 0 7px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  color: #6d745a;
  background: transparent;
}
.message-reply-reference::before {
  content: "";
  grid-row: 1 / span 2;
  width: 2px;
  border-radius: 3px;
  background: rgba(78, 97, 37, .62);
}
.message-reply-reference small,
.message-reply-reference span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-reply-reference small {
  margin: 0 0 1px;
  color: #526332;
  font-size: 9px;
  font-weight: 800;
}
.message-reply-reference span { color: inherit; font-size: 10px; }
.message-bubble-row.incoming .message-reply-reference { color: #858179; background: transparent; }
.message-bubble-row.incoming .message-reply-reference::before { background: #b6b3aa; }
.message-bubble-row.incoming .message-reply-reference small { color: #69665f; }

.message-reply-context {
  min-height: 46px;
  margin: 0 13px 6px;
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 9px;
  padding: 7px 7px 7px 10px;
  border: 1px solid #e2dfd5;
  border-radius: 12px;
  color: #78766e;
  background: #f7f6f0;
  box-shadow: none;
}
.message-reply-context[hidden] { display: none; }
.message-reply-context::before { display: none; }
.message-reply-marker { width: 3px; height: 26px; border-radius: 3px; background: #a7d63e; }
.message-reply-copy { min-width: 0; display: grid; gap: 2px; }
.message-reply-copy small, .message-reply-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-reply-copy small { color: #556632; font-size: 9px; font-weight: 800; }
.message-reply-copy span { color: #78766e; font-size: 10px; }
.message-reply-context button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #918e85;
  background: transparent;
}
.message-reply-context button:hover { color: #514f48; background: #ebe9e0; }
.message-reply-context button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.message-reply-context + .message-composer { margin-top: 0; }

/* Desktop chat is a floating dock: keep the NOW timeline usable behind it. */
@media (min-width: 701px) {
  body.messages-open { overflow: auto; }
  .messages-backdrop,
  .messages-backdrop.visible { background: transparent; pointer-events: none; }
  .messages-drawer { box-shadow: -18px 20px 54px rgba(23, 23, 19, .2), 0 0 0 4px rgba(255, 254, 250, .48); }
}

/* A reply is a separate quoted card, not another line in the sent message. */
.message-reply-reference {
  grid-template-columns: 3px minmax(0, 1fr);
  column-gap: 8px;
  margin: -3px -5px 9px;
  padding: 7px 8px;
  border: 1px solid rgba(73, 91, 32, .14);
  border-radius: 10px;
  background: rgba(61, 78, 19, .12);
  color: #45522b;
}
.message-reply-reference::before { width: 3px; background: #8eaf2d; }
.message-reply-reference small { margin-bottom: 2px; color: #35411e; font-size: 9px; }
.message-reply-reference span { color: #5b683e; font-size: 10px; }
.message-bubble-row.incoming .message-reply-reference {
  border-color: #e0ddd4;
  background: #e8e7e0;
  color: #69665f;
}
.message-bubble-row.incoming .message-reply-reference::before { background: #aaa79e; }
.message-bubble-row.incoming .message-reply-reference small { color: #4f4d47; }
.message-bubble-row.incoming .message-reply-reference span { color: #737068; }

/* Keep the original message outside the reply bubble, as a quiet Messenger-like quote. */
.message-bubble-row .message-reply-reference {
  width: min(100%, 270px);
  box-sizing: border-box;
  margin: 0 0 -2px;
  padding: 7px 9px;
  border-color: #e4e1d8;
  border-radius: 11px;
  background: #f4f3ee;
  box-shadow: none;
}
.message-bubble-row.own .message-reply-reference { align-self: flex-end; }
.message-bubble-row.incoming .message-reply-reference { align-self: flex-start; }
.message-bubble-row .message-reply-reference::before { background: #b7b4ab; }
.message-bubble-row .message-reply-reference small { color: #605e57; }
.message-bubble-row .message-reply-reference span { color: #858179; }
.message-bubble-row.own .message-reply-reference { background: #f0f2e5; border-color: #e0e5cd; }
.message-bubble-row.own .message-reply-reference::before { background: #9ab94b; }
.message-bubble-row.own .message-reply-reference small { color: #566333; }
.message-bubble-row.own .message-reply-reference span { color: #7a8560; }

/* Chat-specific polish: badges, media attachments, and full reply previews. */
.messages-drawer > .drawer-resize-handle { display: none !important; }
.conversation-copy strong, .chat-contact-copy strong { display: inline-flex; align-items: center; gap: 6px; }
.messages-drawer .verification-badge { margin-left: 1px; }
.messages-drawer .verification-badge { width: 13px; height: 13px; font-size: 7px; }
.messages-drawer .verification-badge b { line-height: 13px; }
.message-reply-reference { appearance: none; font-family: inherit; text-align: left; cursor: pointer; }
.message-reply-reference:hover { filter: brightness(.98); }
.message-media { width: min(270px, 100%); max-height: 300px; display: block; overflow: hidden; border: 0; border-radius: 11px; background: #171713; }
.message-image { padding: 0; cursor: zoom-in; }
.message-image img, .message-video { width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.message-bubble .message-media + .message-body { margin-top: 8px; }
.message-attachment-preview { min-height: 50px; margin: 0 13px 6px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; align-items: center; gap: 8px; padding: 5px; border: 1px solid #e2dfd5; border-radius: 12px; background: #f7f6f0; }
.message-attachment-preview[hidden] { display: none; }
.message-attachment-preview img, .message-attachment-preview video { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #171713; }
.message-attachment-preview span { overflow: hidden; color: #5d5b54; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.message-attachment-preview button { width: 28px; height: 28px; border: 0; border-radius: 8px; color: #817e75; background: transparent; font-size: 19px; line-height: 1; cursor: pointer; }
.message-attachment-preview button:hover { color: #252520; background: #ebe9e0; }
.composer-attach { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 8px; color: #76736a; background: transparent; cursor: pointer; }
.composer-attach:hover { color: #526332; background: #eff2e3; }
.composer-attach svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.message-emoji-picker { position: absolute; right: 62px; bottom: 67px; z-index: 5; width: 192px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 7px; border: 1px solid #e1ded5; border-radius: 12px; background: #fffefa; box-shadow: 0 12px 30px rgba(23, 23, 19, .16); }
.message-emoji-picker[hidden] { display: none; }
.message-emoji-picker button { height: 27px; padding: 0; border: 0; border-radius: 7px; background: transparent; font-size: 17px; cursor: pointer; }
.message-emoji-picker button:hover { background: #eff2e3; }
.message-reference-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid #e1ded5; border-radius: 18px; color: #272721; background: #fffefa; box-shadow: 0 24px 70px rgba(23, 23, 19, .24); }
.message-reference-dialog::backdrop { background: rgba(23, 23, 19, .28); }
.message-reference-dialog section { padding: 17px 18px 19px; }
.message-reference-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.message-reference-dialog header small { color: #63713d; font-size: 11px; font-weight: 800; }
.message-reference-dialog header button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #77746c; background: #f2f0ea; cursor: pointer; }
.message-reference-dialog header button:hover { color: #272721; background: #e8e6dd; }
.message-reference-dialog header svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.message-reference-dialog p { margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }

/* The resize grip stays available on desktop but only appears when the drawer is hovered. */
@media (min-width: 701px) {
  .messages-drawer > .drawer-resize-handle { display: block !important; width: 22px; height: 22px; opacity: 0; transition: opacity .16s ease; }
  .messages-drawer:hover > .drawer-resize-handle, .messages-drawer > .drawer-resize-handle:hover { opacity: .5; }
  .messages-drawer > .drawer-resize-handle::after { right: 5px; bottom: 5px; width: 8px; height: 8px; border-color: #8c8980; }
}

/* The photo trigger uses the same fixed slot as every other History action. */
.history-item > .history-actions > .photo-toggle,
.history-item > .history-actions > .like-toggle,
.history-item > .history-actions > .comment-toggle,
.history-item > .history-actions > .message-now-action,
.history-item > .history-actions > .item-menu {
  align-self: center !important;
  margin: 0 !important;
  transform: none;
}
/* Expand grouped activity without losing the exact NOW behind each event. */
.notification-group { border-bottom: 1px solid var(--soft-line); border-radius: 16px; overflow: clip; }
.notification-group > summary { list-style: none; border-bottom: 0; cursor: pointer; }
.notification-group > summary::-webkit-details-marker { display: none; }
.notification-group[open] { margin-block: 4px; background: #f8f7f1; }
.notification-group[open] > summary { background: #f2f7e6; }
.notification-group[open] > summary .notification-chevron { transform: rotate(90deg); }
.notification-group .notification-chevron { transition: transform .16s ease; }
.notification-children { margin: 0 10px 8px 62px; border-top: 1px solid #e4e1d8; }
.notification-child { display: flex; min-height: 62px; align-items: center; gap: 10px; padding: 9px 4px; color: inherit; text-decoration: none; }
.notification-child + .notification-child { border-top: 1px solid #ebe8df; }
.notification-child:hover { background: rgba(255, 255, 255, .62); }
.notification-child-rail { align-self: stretch; width: 10px; display: flex; justify-content: center; }
.notification-child-rail i { width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: #c7c4ba; box-shadow: 0 0 0 3px #f8f7f1; }
.notification-child.unread .notification-child-rail i { background: #84c700; }
.notification-child-copy { min-width: 0; flex: 1; }
.notification-child-copy strong { display: block; overflow: hidden; color: #45443f; font-size: 11px; font-weight: 650; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.notification-child-copy small { display: block; margin-top: 2px; overflow: hidden; color: #171713; font-size: 12px; font-weight: 650; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.notification-child-copy time { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
@media (max-width: 720px) { .notification-children { margin-left: 50px; } }
/* Local reference pass: keep the existing outer frame and make the header /
   sidebar hierarchy closer to the provided concept. */
@media (min-width: 701px) {
  .topnav { gap: 8px; padding: 4px; background: transparent; }
  .topnav a { min-width: 104px; padding: 11px 20px; text-align: center; }
  .topnav a:first-child.active::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--acid); vertical-align: middle; }
  .language-switch { min-height: 31px; align-items: center; gap: 2px; margin-left: 2px; padding: 3px; }
  .language-switch a { min-width: 27px; padding: 6px 7px; font-size: 9px; }
  .people-panel { background: #fbfaf7; }
  .person-row.selected { border-color: #e2ebc4; background: #f1f8d8; box-shadow: none; }
  .person-row.selected:before { background: var(--acid); }
  .profile-avatar { width: 92px; height: 92px; border-radius: 28px; }
  .profile-identity { gap: 20px; }
  .now-hero { padding: 30px 34px 32px; border-radius: 24px; }
}

/* Reference layout v2. The outer shell, its viewport offsets, and both
   infinite-scroll containers intentionally stay unchanged. */
.account-menu summary {
  width: auto;
  min-width: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: visible;
  border-radius: 999px;
  outline: 0;
  box-shadow: none;
}
.account-menu summary .account-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  outline: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.account-menu summary .account-avatar img,
.account-menu summary .account-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(145deg, #e8e0ff, #c9f1df);
  font-size: 11px;
  font-weight: 850;
}
.account-menu summary .account-label {
  max-width: 92px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chevron { width: 15px; margin-right: 2px; color: var(--muted); }
.account-menu[open] .account-chevron { transform: rotate(180deg); }

.people-heading { min-height: 58px; align-items: flex-start; }
.people-heading h1 {
  max-width: none;
  color: #5f5e58;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.profile-header { align-items: flex-start; padding-bottom: 0; border-bottom: 0; }
.profile-avatar,
.avatar { border-radius: 50%; }
.profile-identity p { margin: 5px 0 0; font-family: inherit; font-size: 11px; }
.profile-identity h2 { line-height: 1.08; }
.profile-actions { display: flex; align-items: center; gap: 8px; padding-top: 18px; }
.message-profile-button { color: var(--ink); background: var(--surface); border-color: var(--line); }
.message-profile-button svg,
.follow-button svg { flex: 0 0 auto; }
.secondary-button.following { border-color: var(--ink); }
.profile-moderation { position: relative; }
.profile-more-button { list-style: none; min-width: 46px; padding-inline: 13px; cursor: pointer; text-align: center; }
.profile-more-button::-webkit-details-marker { display: none; }
.profile-moderation-menu { position: absolute; z-index: 12; top: calc(100% + 8px); right: 0; min-width: 150px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.profile-moderation-menu button { display: block; width: 100%; border: 0; border-radius: 8px; padding: 9px 11px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.profile-moderation-menu button:hover { background: var(--surface-muted); }
.app-grid:has(> .account-ban-notice) { background: #fbefec; }
.account-ban-notice { grid-column: 1 / -1; margin: 0; padding: 14px 16px 13px; border: 0; border-bottom: 1px solid rgba(178, 54, 54, .22); border-radius: 0; background: #fbefec; box-shadow: none; color: var(--ink); }
.account-ban-notice strong, .account-ban-notice p, .account-ban-notice small { display: block; }
.account-ban-notice p { margin: 3px 0 0; }
.account-ban-notice small { margin-top: 6px; color: var(--muted); }
.now-hero { margin-top: 32px; background: linear-gradient(135deg, #0c0d0b, #171814); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.now-hero p { max-width: 92%; font-weight: 760; }

@media (min-width: 701px) {
  .profile-avatar { border-radius: 50%; }
  .person-row { grid-template-columns: 51px minmax(0, 1fr); }
  .person-row .chevron { display: none; }
}

@media (max-width: 980px) and (min-width: 701px) {
  .account-menu summary .account-label { display: none; }
  .profile-header { align-items: center; }
  .profile-actions { padding-top: 0; }
  .message-profile-button { width: 40px; padding: 0; font-size: 0; }
}

/* Account identity must override the legacy blanket summary-span rule. */
.account-menu summary .account-avatar { background: transparent; }
.account-menu summary .account-label {
  width: auto;
  height: auto;
  display: block;
  place-items: initial;
  object-fit: initial;
  background: transparent;
}

/* Reference header v5: only the active destination is a pill, matching the
   supplied header while preserving the topbar's original footprint. */
@media (min-width: 701px) {
  .brand {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(139, 190, 24, .16);
  }

  .topnav {
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .topnav a {
    min-width: 0;
    padding: 13px 23px;
    color: #66645e;
    font-size: 13px;
    font-weight: 700;
  }
  .topnav a.active {
    color: #fff;
    background: #090a08;
    box-shadow: 0 10px 24px rgba(14, 15, 12, .16);
  }
  .topnav a:not(.active):hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .58);
  }

  .account-actions { gap: 5px; }
  .round-action {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
  }
  .round-action:hover { background: rgba(255, 255, 255, .68); }
  .round-action.active { color: #fff; background: var(--ink); }
  .round-action svg { width: 18px; height: 18px; }
  .round-action b {
    top: -1px;
    right: -1px;
    border-color: var(--paper);
  }

  .language-switch {
    order: 3;
    min-height: 32px;
    gap: 1px;
    margin: 0 7px 0 8px;
    padding: 3px;
    border-color: rgba(23, 23, 19, .11);
    background: rgba(255, 255, 255, .45);
  }
  .language-switch a {
    min-width: 28px;
    padding: 6px 7px;
    font-size: 9px;
  }
  .language-switch a.active { box-shadow: 0 3px 9px rgba(23, 23, 19, .12); }

  .account-menu { order: 4; margin-left: 3px; }
  .account-menu summary {
    min-height: 44px;
    gap: 10px;
    padding: 1px 0 1px 2px;
  }
  .account-menu summary .account-avatar {
    width: 42px;
    height: 42px;
  }
  .account-menu summary .account-label {
    max-width: 104px;
    color: #24241f;
    font-size: 12px;
    font-weight: 780;
  }
  .account-chevron {
    width: 14px;
    margin: 0 1px 0 2px;
    color: #34342f;
    transition: transform .16s ease;
  }
  .account-menu > div { top: 54px; }
}

@media (max-width: 1040px) and (min-width: 701px) {
  .topnav { gap: 4px; }
  .topnav a { padding-inline: 18px; }
  .language-switch { margin-inline: 3px; }
  .account-menu summary .account-label { display: none; }
}

/* Message trigger active state: mirror the notification button while open. */
body.messages-open .message-launch {
  color: #fff;
  background: var(--ink);
}
body.messages-open .message-launch:hover {
  color: #fff;
  background: var(--ink);
}
/* Header avatar ring refinement: separate it from the warm background without a sticker effect. */
.account-menu summary .account-avatar {
  outline: 2px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(23, 23, 19, .08);
}
/* Header avatar geometry correction: use an in-box ring so the circle stays optically centered. */
.account-menu summary .account-avatar {
  display: block;
  border: 2px solid var(--surface);
  outline: 0;
  box-shadow: 0 0 0 1px rgba(23, 23, 19, .08);
}
.account-menu summary .account-avatar img {
  display: block;
  object-position: 50% 50%;
}
/* People rail scrollbar refinement: quiet until the user interacts with it. */
.people-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 109, 101, .34) transparent;
}
.people-list::-webkit-scrollbar { width: 4px; }
.people-list::-webkit-scrollbar-track { background: transparent; }
.people-list::-webkit-scrollbar-thumb {
  min-height: 48px;
  border-radius: 999px;
  background: rgba(111, 109, 101, .34);
}
.people-list:hover::-webkit-scrollbar-thumb {
  background: rgba(93, 91, 84, .52);
}
.people-list::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}
/* Hide the native people rail scrollbar; wheel, touch and lazy loading stay intact. */
.people-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.people-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
/* Restore the original attached feeling badge treatment from the earlier NOW UI. */
.avatar { border-radius: 17px; }
.profile-avatar { border-radius: 28px; }
.feeling-avatar-badge,
.feeling-list-badge {
  border-width: 1.5px;
  box-shadow: 0 1px 3px rgba(28, 28, 23, .06);
}
.feeling-list-badge {
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  font-size: 11px;
}
.feeling-avatar-badge {
  top: -3px;
  right: -3px;
}
@media (max-width: 700px) {
  .avatar { border-radius: 16px; }
  .profile-avatar { border-radius: 19px; }
}
/* Auto-hide people rail: keep a stable 3px gutter and reveal only the thumb. */
.people-list {
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: transparent transparent;
}
.people-list:hover,
.people-list.is-scrolling {
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 91, 84, .46) transparent;
}
.people-list::-webkit-scrollbar {
  width: 3px;
  height: 0;
  display: block;
}
.people-list::-webkit-scrollbar-track { background: transparent; }
.people-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
  transition: background-color .16s ease;
}
.people-list:hover::-webkit-scrollbar-thumb,
.people-list.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(93, 91, 84, .46);
}
.people-list::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

/* Reference 18: compact NOW composer, calmer History spacing, and a matching right rail. */
@media (min-width: 701px) {
  .composer {
    position: relative;
    min-height: 58px;
    align-items: center;
    overflow: visible;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(36, 34, 25, .03);
  }
  .composer-avatar img,
  .composer-avatar span {
    width: 34px;
    height: 34px;
  }
  .composer-body {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 9px;
    row-gap: 6px;
  }
  .composer-author { display: none; }
  .composer textarea {
    grid-column: 1;
    grid-row: 1;
    min-height: 34px;
    height: 34px;
    padding: 8px 0;
    overflow-y: hidden;
    font-size: 12px;
    line-height: 18px;
  }
  .composer-tools {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
    padding: 0;
    border: 0;
  }
  .composer .attach-photo {
    width: 30px;
    min-height: 30px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border: 0;
    color: #7890a3;
    background: transparent;
    font-size: 10px;
  }
  .composer .attach-photo:hover { border-color: transparent; color: #536f84; background: #eef3f6; }
  .composer .attach-photo > span:last-child { display: none; }
  .composer .attach-photo svg { width: 14px; height: 14px; }
  .composer .character-count { display: none; margin-left: 2px; font-size: 9px; }
  .composer:has(textarea:not(:placeholder-shown)) .character-count { display: inline; }
  .composer #postButton {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 13px 0 14px;
    box-shadow: none;
  }
  .composer #postButton svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .composer .status-image-preview {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 2px 0 0;
  }
  .composer .feeling-picker {
    position: absolute;
    z-index: 35;
    top: calc(100% + 8px);
    right: 102px;
    width: 224px;
    margin: 0;
    padding: 10px;
    border-color: #e1ded5;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(36, 34, 25, .14);
  }
  .composer .feeling-picker::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 28px;
    width: 9px;
    height: 9px;
    border-top: 1px solid #e1ded5;
    border-left: 1px solid #e1ded5;
    background: var(--surface);
    transform: rotate(45deg);
  }
  .composer .feeling-picker > p { display: none; }
  .composer .feeling-picker > div { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .composer .feeling-picker > div > button {
    position: relative;
    min-height: 54px;
    padding: 5px 2px 4px;
    border: 0;
    border-radius: 11px;
    background: transparent;
  }
  .composer .feeling-picker > div > button:hover,
  .composer .feeling-picker > div > button.selected {
    border-color: transparent;
    background: #f0f5e5;
  }
  .composer .feeling-picker button > span { font-size: 23px; }
  .composer .feeling-picker button small { display: block; margin-top: 2px; font-size: 7px; line-height: 10px; }
  .composer .feeling-picker .clear-feeling {
    margin-top: 6px;
    padding: 6px;
    border-top: 1px solid #ece9e0;
    border-radius: 0 0 9px 9px;
    font-size: 9px;
  }

  .history-section { margin-top: 28px; }
  .history-heading { margin-bottom: 20px; }
  .history-heading h3 { font-size: 20px; }
  .rewind-launch {
    min-width: 148px;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 7px;
    padding: 6px 13px 6px 10px;
    border-radius: 999px;
  }
  .rewind-launch > span:first-child {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: transparent;
    font-size: 18px;
  }
  .rewind-launch b { font-size: 10px; }
  .rewind-launch small { margin-top: 1px; font-size: 8px; }
  .history-group { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .history-group + .history-group { margin-top: 24px; }
  .history-item { min-height: 49px; gap: 9px; }
  .history-copy p { margin-top: -1px; font-size: 15px; line-height: 1.4; }
  .history-item > .history-actions { gap: 12px; }
  .history-actions .photo-toggle,
  .history-actions .like-toggle,
  .history-actions .comment-toggle,
  .history-actions .message-now-action,
  .history-actions .item-menu {
    min-width: 20px;
  }

  .profile-panel {
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    scrollbar-color: transparent transparent;
  }
  .profile-panel:hover,
  .profile-panel.is-scrolling {
    scrollbar-color: rgba(93, 91, 84, .46) transparent;
  }
  .profile-panel::-webkit-scrollbar {
    width: 3px;
    height: 0;
  }
  .profile-panel::-webkit-scrollbar-track { background: transparent; }
  .profile-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: transparent;
    transition: background-color .16s ease;
  }
  .profile-panel:hover::-webkit-scrollbar-thumb,
  .profile-panel.is-scrolling::-webkit-scrollbar-thumb {
    background: rgba(93, 91, 84, .46);
  }
  .profile-panel::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
  }
}


/* One Rewind launcher across profile/history and desktop/mobile. */
.rewind-launch {
  display: flex;
  align-items: center;
  width: min(100%, 300px);
  min-width: 250px;
  gap: 12px;
  padding: 13px;
  color: #f8f7f1;
  background: #171713;
  border: 0;
  border-radius: 18px;
  text-align: left;
  box-shadow: none;
  transition: opacity .14s ease, transform .14s ease;
}
.rewind-launch:hover {
  color: #f8f7f1;
  background: #171713;
  border-color: transparent;
  transform: translateY(-1px);
}
.rewind-launch:active { opacity: .72; transform: scale(.99); }
.rewind-launch > span.rewind-launch-copy {
  display: block;
  flex: 1;
  width: auto;
  height: auto;
  min-width: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  justify-items: start;
  place-items: initial;
  text-align: left;
}
.rewind-launch-copy b,
.rewind-launch-copy small {
  width: 100%;
  text-align: left;
}
.rewind-launch b,
.rewind-launch small { display: block; }
.rewind-launch b { color: #f8f7f1; font-size: 13px; font-weight: 800; }
.rewind-launch small {
  margin-top: 3px;
  overflow: hidden;
  color: #96978f;
  font-size: 9px;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rewind-launch-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  color: #c7ff52;
  font-size: 22px;
  font-weight: 500;
  line-height: 24px;
}
.rewind-launch-arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Reference 25: restore the original desktop date-to-time spacing and keep the action rail breathing room. */
@media (min-width: 701px) {
  .history-group {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 18px;
  }
  .history-group > h4 { margin: 3px 0 0; }
  .history-group > div { padding-left: 0; }
  .history-item > .history-actions { margin-left: 7px !important; }
}
/* Reference 28: keep the desktop History cadence uniform until a row is expanded. */
@media (min-width: 701px) {
  .history-text-toggle {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  .history-text-toggle.expanded {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .history-text-toggle:focus-visible {
    border-radius: 3px;
    outline: 2px solid rgba(154, 201, 54, .55);
    outline-offset: 3px;
  }
}
/* Reference 31: the live NOW owns its interactions; archived NOWs stay compact in History. */
.hero-status-entry { position: relative; z-index: 1; }
.hero-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.now-hero .hero-photo { flex: none; margin: 0; }
.hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.hero-actions .like-toggle,
.hero-actions .comment-toggle,
.hero-actions .message-now-action { width: auto; min-width: 24px; height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 0; border-radius: 8px; color: rgba(247, 245, 238, .68); background: transparent; opacity: 1; }
.hero-actions .like-toggle svg,
.hero-actions .comment-toggle svg,
.hero-actions .message-now-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions .like-toggle span,
.hero-actions .comment-toggle span { min-width: 5px; color: rgba(247, 245, 238, .78); font-size: 10px; line-height: 1; }
.hero-actions .like-toggle:hover,
.hero-actions .comment-toggle:hover,
.hero-actions .message-now-action:hover,
.hero-actions .comment-toggle[aria-expanded="true"] { color: #c7ff52; background: rgba(255, 255, 255, .07); }
.hero-actions .like-toggle.liked { color: #ef6565; }
.hero-actions .like-toggle.liked svg { fill: currentColor; }
.now-hero .hero-comments-panel { display: block; margin: 18px 0 0; padding: 14px; border-color: rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .065); }
.now-hero .hero-comments-panel[hidden] { display: none; }
.now-hero .hero-comments-panel .reply-item p { margin: 0 0 3px; color: rgba(247, 245, 238, .82); font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.now-hero .hero-comments-panel .reply-item strong { color: #fff; }
.now-hero .hero-comments-panel .reply-item.nested-reply { border-left-color: rgba(255, 255, 255, .14); }
.now-hero .hero-comments-panel .reply-item > img,
.now-hero .hero-comments-panel .reply-item > span { background: rgba(255, 255, 255, .12); }
.now-hero .hero-comments-panel .no-replies { margin: 0; color: rgba(247, 245, 238, .55); font-family: inherit; font-size: 11px; font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.now-hero .hero-comments-panel .reply-form { border-top-color: rgba(255, 255, 255, .12); }
.now-hero .hero-comments-panel .reply-form input { border-color: rgba(255, 255, 255, .16); color: #f7f5ee; background: rgba(0, 0, 0, .18); }
.now-hero .hero-comments-panel .reply-form input::placeholder { color: rgba(247, 245, 238, .5); }
.now-hero .hero-comments-panel .reply-meta time,
.now-hero .hero-comments-panel .reply-meta button { color: rgba(247, 245, 238, .56); }
.now-hero .hero-comments-panel .reply-meta .reply-like.liked { color: #ef6565; }
.now-hero .hero-comments-panel .reply-meta .reply-delete { color: #f29a8d; }
@media (max-width: 700px) {
  .hero-actions { gap: 12px; }
  .hero-footer { margin-top: 18px; }
}
/* Reference 32: owner actions live on the current NOW card. */
.hero-actions .item-menu { min-width: 24px; height: 28px; padding: 0 2px; border: 0; border-radius: 8px; color: rgba(247, 245, 238, .68); background: transparent; font-size: 14px; line-height: 1; letter-spacing: 1px; }
.hero-actions .item-menu:hover,
.hero-actions .item-menu:focus-visible { color: #c7ff52; background: rgba(255, 255, 255, .07); }
.now-hero .action-menu { top: auto; right: 0; bottom: 36px; color: var(--ink); }
.item-menu svg { width: 16px; height: 16px; display: block; fill: currentColor; }


/* Mobile browser app shell: mirrors the installed app without changing desktop. */
@media (max-width: 700px) {
  html { scroll-padding-top: 86px; }
  body {
    background: var(--paper);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .site-shell {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .topbar {
    position: sticky;
    z-index: 35;
    top: 0;
    height: 82px;
    grid-template-columns: 1fr auto;
    padding: 0 22px;
    border-bottom: 0;
    background: color-mix(in srgb, var(--paper) 91%, transparent);
    backdrop-filter: blur(16px);
  }
  .brand {
    width: 43px;
    height: 43px;
    border-radius: 13px;
  }
  .account-actions { gap: 9px; }
  .account-actions .round-action {
    width: 42px;
    height: 42px;
    display: grid;
    background: rgba(255, 254, 250, .82);
  }
  .account-actions .message-launch { display: none; }
  .account-menu { display: block; }
  .account-menu summary {
    width: 40px;
    height: 40px;
    outline-width: 2px;
  }
  .account-menu .account-chevron { display: none; }
  .account-menu > div {
    position: fixed;
    top: 70px;
    right: 15px;
  }
  .language-switch {
    order: -1;
    padding: 2px;
    background: rgba(255, 254, 250, .72);
  }
  .language-switch a {
    min-width: 23px;
    padding: 4px 5px;
    font-size: 8px;
  }

  .app-grid {
    min-height: calc(100dvh - 82px);
    background: transparent;
  }
  .profile-panel {
    min-height: calc(100dvh - 154px);
    padding: 25px 20px 42px;
    background: transparent;
  }
  .page-profile .mobile-back { display: none; }
  .profile-header {
    display: block;
    padding: 5px 0 0;
  }
  .profile-identity {
    width: 100%;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
  }
  .profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 25px;
    font-size: 17px;
  }
  .profile-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .profile-identity p {
    order: -1;
    margin: 0 0 5px;
    font-size: 11px;
  }
  .profile-identity h2 {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.04;
  }
  .profile-professional {
    max-width: none;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
  }
  .profile-bio {
    max-width: none;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
  }
  .profile-stats {
    gap: 18px;
    margin-top: 11px;
    font-size: 11px;
  }
  .profile-stats b { font-size: 13px; }
  .profile-header.own-profile .profile-actions { display: flex; margin-left: 96px; }
  .profile-header.own-profile .profile-actions > a { display: none; }
  .profile-header.own-profile .profile-privacy-button { min-height: 35px; padding: 0 12px; font-size: 10px; }
  .profile-actions {
    display: flex;
    gap: 8px;
    margin: 17px 0 0 96px;
  }
  .profile-actions .secondary-button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 11px;
  }
  .privacy-preview-overlay { align-items: end; padding: 0; }
  .privacy-preview-dialog { width: 100%; max-height: min(680px, calc(100dvh - 12px)); overflow-y: auto; border-width: 1px 0 0; border-radius: 24px 24px 0 0; transform: translateY(18px); }
  .privacy-preview-dialog > header { padding: 20px 20px 16px; }
  .privacy-preview-intro { padding-inline: 20px; }
  .privacy-preview-options { padding-inline: 12px; }
  .privacy-preview-note { margin-inline: 20px; }
  .privacy-preview-dialog { background: #fffefa; }
  .privacy-preview-dialog > header { min-height: 0; align-items: center; padding: 20px 20px 12px; border-bottom: 0; }
  .privacy-preview-dialog > header span { display: none; }
  .privacy-preview-dialog > header h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
  .privacy-preview-dialog > header button { width: 34px; height: 34px; border: 0; background: transparent; }
  .privacy-preview-intro { padding: 0 20px 14px; border-bottom: 1px solid #efede7; font-size: 11px; }
  .privacy-preview-options { gap: 0; padding: 0 20px; }
  .privacy-preview-option {
    min-height: 72px;
    grid-template-columns: 31px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid #efede7;
    border-radius: 0;
    background: transparent;
  }
  .privacy-preview-option:hover,
  .privacy-preview-option.selected { border-color: #efede7; background: transparent; }
  .privacy-preview-icon,
  .privacy-preview-option.selected .privacy-preview-icon {
    width: 31px;
    height: 31px;
    color: #55554f;
    background: transparent;
  }
  .privacy-preview-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .privacy-preview-option > span:nth-child(2) { gap: 3px; }
  .privacy-preview-option strong { font-size: 13px; }
  .privacy-preview-option small { color: #85837b; font-size: 10px; line-height: 1.35; }
  .privacy-preview-option > b {
    width: 20px;
    height: 20px;
    display: block;
    border: 2px solid #77828a;
    border-radius: 50%;
    background: transparent;
    opacity: 1;
    font-size: 0;
  }
  .privacy-preview-option.selected > b {
    border-color: var(--acid);
    background: var(--acid);
    box-shadow: inset 0 0 0 4px #fffefa;
  }
  .privacy-preview-note { margin: 13px 20px 0; padding: 0; border-radius: 0; color: #929087; background: transparent; font-size: 9px; }
  .privacy-preview-dialog > footer { gap: 8px; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 0; background: #fffefa; }
  .privacy-preview-dialog > footer button { background: #fffefa; }
  .privacy-preview-dialog > footer .privacy-preview-save { background: var(--acid); }

  .privacy-moderation-view { max-width: calc(100% - 40px); margin: 0 20px 10px; }
  .private-profile-state { min-height: 48dvh; padding: 36px 24px; }
  .now-hero {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    margin: 34px 0 0;
    padding: 27px 27px 25px;
    border-radius: 27px;
    background: #181914;
  }
  .now-meta { font-size: 10px; }
  .now-hero p {
    width: 100%;
    max-width: 100%;
    margin: 50px 0 16px;
    font-size: clamp(30px, 9vw, 39px);
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  .now-hero .hero-status-entry {
    min-height: 218px;
    display: flex;
    flex: 1;
    flex-direction: column;
  }
  .now-hero .hero-footer {
    margin-top: auto;
    padding-top: 18px;
  }
  .hero-actions { gap: 15px; }
  .hero-actions .like-toggle,
  .hero-actions .comment-toggle,
  .hero-actions .message-now-action { min-width: 28px; min-height: 30px; }
  .hero-actions .item-menu { min-width: 28px; min-height: 30px; }

  .page-profile .composer { display: none; }
  .page-profile .composer:target {
    display: flex;
    scroll-margin-top: 94px;
    margin-top: 18px;
  }

  .history-section {
    margin-top: 38px;
    scroll-margin-top: 94px;
  }
  .history-heading {
    align-items: center;
    margin-bottom: 29px;
  }
  .history-heading h3 {
    font-size: 29px;
    letter-spacing: -.045em;
  }
  .rewind-launch {
    border-radius: 999px;
    background: rgba(255, 254, 250, .7);
  }
  .history-group + .history-group { margin-top: 29px; }
  .history-group h4 {
    margin: 0 0 18px 3px;
    font-size: 10px;
  }
  .history-item {
    grid-template-columns: 49px 10px minmax(0, 1fr) max-content;
    gap: 8px;
    min-height: 70px;
  }
  .history-item > time {
    padding-top: 2px;
    font-size: 10px;
  }
  .history-copy p {
    display: -webkit-box;
    margin-top: -2px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .history-copy p.expanded { -webkit-line-clamp: unset; }
  .history-item > .history-actions { gap: 10px; }
  .history-actions .photo-toggle,
  .history-actions .like-toggle,
  .history-actions .comment-toggle,
  .history-actions .message-now-action,
  .history-actions .item-menu { min-width: 19px; }
  .comments-panel { grid-column: 2 / 5; }

  .mobile-nav {
    left: 50%;
    right: auto;
    width: min(100%, 520px);
    height: calc(72px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 7px env(safe-area-inset-bottom);
    transform: translateX(-50%);
    border-top-color: rgba(222, 219, 209, .82);
    background: rgba(244, 241, 233, .94);
    box-shadow: 0 -8px 25px rgba(48, 45, 34, .035);
  }
  .mobile-nav a,
  .mobile-nav button {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    color: #98958d;
    background: transparent;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
  }
  .mobile-nav svg { width: 23px; height: 23px; }
  .mobile-nav a.active,
  .mobile-nav button.active { color: var(--ink); }
  .mobile-nav .mobile-compose {
    width: 52px;
    height: 52px;
    min-height: 52px;
    place-self: center;
    border-radius: 17px;
    color: #fff;
    background: var(--ink);
    font-size: 34px;
    font-weight: 300;
    line-height: 46px;
    box-shadow: 0 7px 20px rgba(23, 23, 19, .16);
  }
  .mobile-nav-icon { position: relative; display: grid; place-items: center; }
  .mobile-nav-icon b {
    position: absolute;
    top: -8px;
    right: -11px;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--paper);
    border-radius: 999px;
    color: var(--ink);
    background: var(--acid);
    font-size: 8px;
  }
  body:has(#history:target) .mobile-profile { color: #98958d; }
  body:has(#history:target) .mobile-history { color: var(--ink); }

  .people-panel {
    min-height: calc(100dvh - 154px);
    padding: 22px 17px 32px;
    background: transparent;
  }
  .people-heading { min-height: 75px; }
  .people-heading h1 { font-size: 28px; }
  .person-row {
    grid-template-columns: 54px minmax(0, 1fr) 16px;
    gap: 13px;
    padding: 13px 10px;
  }
  .avatar-wrap,
  .avatar { width: 54px; height: 54px; border-radius: 18px; }

  .notifications-view h2 { font-size: 30px; }
}


/* Mobile composer guard: prevent intrinsic SVG sizing from inflating Update NOW. */
@media (max-width: 700px) {
  .composer .camera-button { display: inline-flex; }
  .page-profile .composer:target {
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
  }
  .composer-body { min-width: 0; }
  .composer-tools {
    width: 100%;
    flex-wrap: nowrap;
    gap: 5px;
  }
  .composer #postButton {
    width: auto;
    height: 36px;
    min-height: 36px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 12px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: none;
  }
  .composer #postButton svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }
}


/* Mobile notification active state: keep the bell visible against its button. */
@media (max-width: 700px) {
  .account-actions .round-action.active {
    color: #fff;
    border-color: var(--ink);
    background: var(--ink);
  }
  .account-actions .round-action.active svg { stroke: currentColor; }
}


/* Mobile History tab mode: separate History from the Me profile surface. */
@media (max-width: 700px) {
  body:has(#history:target) .profile-header,
  body:has(#history:target) .now-hero,
  body:has(#history:target) .composer,
  body:has(#history:target) .mobile-back {
    display: none;
  }
  body:has(#history:target) .profile-panel { padding-top: 18px; }
  body:has(#history:target) .history-section { margin-top: 0; }
}


/* Match the native app: page-level top rows, never a persistent web header. */
@media (max-width: 700px) {
  .topbar {
    position: static;
    height: 78px;
    background: transparent;
    backdrop-filter: none;
  }
  .page-home .topbar,
  .page-following .topbar {
    grid-template-columns: 1fr auto;
  }
  .page-home .topnav,
  .page-following .topnav {
    display: flex;
    grid-column: 2;
    padding: 4px;
  }
  .page-home .topnav a,
  .page-following .topnav a {
    padding: 8px 12px;
    font-size: 11px;
  }
  .page-home .account-actions,
  .page-following .account-actions,
  .page-notifications .account-actions,
  body:has(#history:target) .topbar .account-actions {
    display: none;
  }
  .page-notifications .mobile-back { display: none; }
}


/* Web-mobile only: surface the Android download card before the Right now feed. */
@media (max-width: 700px) {
  .people-panel .sidebar-meta {
    order: 1;
    margin: 0 4px 18px;
  }
  .people-panel .android-download {
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 254, 250, .78);
  }
}


/* Mobile tab routing: query-state starts History at the top and keeps nav visible in Messages. */
@media (max-width: 700px) {
  body.mobile-history-page .profile-header,
  body.mobile-history-page .now-hero,
  body.mobile-history-page .composer,
  body.mobile-history-page .mobile-back {
    display: none;
  }
  body.mobile-history-page .profile-panel {
    min-height: calc(100dvh - 150px);
    padding-top: 18px;
  }
  body.mobile-history-page .history-section { margin-top: 0; }
  body.mobile-history-page .mobile-profile { color: #98958d; }
  body.mobile-history-page .mobile-history { color: var(--ink); }
  body.mobile-history-page .topbar .account-actions { display: none; }

  .messages-drawer {
    top: 0;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: 100vw;
    height: auto;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
}

/* Final Rewind appearance: later desktop layout rules must not recolor it. */
.rewind-launch,
.rewind-launch:hover {
  color: #f8f7f1;
  background: #171713;
  border-color: transparent;
  border-radius: 18px;
}

/* Global search: compact on desktop, full-screen and touch-first on mobile. */
.search-launch { cursor: pointer; }
.search-launch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.global-search-overlay { position: fixed; z-index: 120; inset: 0; display: grid; place-items: start center; padding: 82px 20px 20px; background: rgba(23,23,19,.22); backdrop-filter: blur(7px); }
.global-search-overlay[hidden] { display: none; }
.global-search-dialog { width: min(590px, 100%); max-height: min(680px, calc(100dvh - 105px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(126,123,113,.25); border-radius: 24px; background: #fffefa; box-shadow: 0 30px 90px rgba(23,23,19,.2); }
.global-search-dialog > header { min-height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 0 21px; border-bottom: 1px solid var(--soft-line); }
.global-search-dialog h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.global-search-dialog > header button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0 0 2px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; font-size: 22px; cursor: pointer; }
.global-search-input { min-height: 48px; display: flex; align-items: center; gap: 10px; margin: 15px 16px 8px; padding: 0 14px; border: 1px solid var(--soft-line); border-radius: 14px; background: #f4f2eb; }
.global-search-input:focus-within { border-color: #a6a39a; box-shadow: 0 0 0 3px rgba(199,255,82,.24); }
.global-search-input svg { width: 19px; height: 19px; fill: none; stroke: #858279; stroke-width: 1.8; }
.global-search-input input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 13px; }
.global-search-results { min-height: 150px; overflow-y: auto; padding: 4px 9px 14px; }
.global-search-results section + section { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--soft-line); }
.global-search-results h3 { margin: 9px 12px 6px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.global-search-row { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 12px; min-height: 60px; padding: 7px 10px; border-radius: 15px; color: inherit; text-decoration: none; }
.global-search-row:hover, .global-search-row:focus-visible { outline: 0; background: #f1efe7; }
.global-search-avatar, .global-search-avatar img { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; object-fit: cover; background: var(--lilac); font-size: 10px; font-weight: 850; }
.global-search-row b, .global-search-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-row b { font-size: 13px; }
.global-search-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.global-search-now small { max-width: 460px; }
.global-search-state { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 26px; color: var(--muted); font-size: 12px; text-align: center; }
.global-search-state i { width: 22px; height: 22px; border: 2px solid #dedbd1; border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
body.search-open { overflow: hidden; }
.like-toggle:disabled, .mobile-compose:disabled, .message-composer-read-only button:disabled { opacity: .45; cursor: not-allowed; }
.message-composer-read-only { background: #f2f0e9; }
.message-composer-read-only input:disabled { color: #77746c; -webkit-text-fill-color: #77746c; opacity: 1; }

/* Edit profile: larger controls, clearer avatar action and tighter visual rhythm. */
body.settings-page .settings-shell { width: min(760px, calc(100% - 40px)); padding: 40px 52px 48px; }
body.settings-page .back-link { margin-bottom: 25px; }
body.settings-page .settings-title { display: grid; grid-template-columns: 1fr; }
body.settings-page .settings-title h1 { margin-top: 6px; font-size: 36px; }
body.settings-page .settings-title p { max-width: 470px; margin-bottom: 29px; font-size: 14px; line-height: 1.6; }
body.settings-page .settings-form { gap: 18px; }
body.settings-page .settings-form > label { gap: 8px; font-size: 12px; }
body.settings-page .settings-form input, body.settings-page .settings-form textarea { min-height: 50px; padding: 14px 15px; border-radius: 14px; background: #fffefa; font-size: 15px; }
body.settings-page .settings-form textarea { min-height: 112px; line-height: 1.55; resize: vertical; }
body.settings-page .avatar-editor { min-height: 138px; gap: 22px; padding: 21px 23px; border-radius: 22px; background: linear-gradient(135deg, #f7f8ec, #f7f4ed 60%); }
body.settings-page .avatar-preview-trigger { position: relative; flex: none; display: block; cursor: pointer; }
body.settings-page .avatar-preview-trigger:focus-within .avatar-preview { box-shadow: 0 0 0 4px rgba(199,255,82,.36); }
body.settings-page .avatar-preview, body.settings-page .avatar-preview img { width: 96px; height: 96px; border-radius: 29px; }
body.settings-page .avatar-edit-badge { position: absolute; right: -5px; bottom: -5px; width: 31px; height: 31px; display: grid; place-items: center; border: 3px solid #f7f4ed; border-radius: 50%; color: var(--ink); background: var(--acid); font-size: 15px; font-weight: 900; }
body.settings-page .avatar-editor-copy { min-width: 0; flex: 1; }
body.settings-page .avatar-editor h2 { font-size: 17px; }
body.settings-page .avatar-editor p { margin-bottom: 10px; font-size: 11px; line-height: 1.5; }
body.settings-page .upload-button { padding: 9px 13px; border-radius: 10px; cursor: pointer; }
body.settings-page .save-button { min-height: 50px; margin-top: 4px; border-radius: 14px; font-size: 12px; }

@media (max-width: 700px) {
  .global-search-overlay { place-items: stretch; padding: 0; background: #fffefa; backdrop-filter: none; }
  .global-search-dialog { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .global-search-dialog > header { padding-top: env(safe-area-inset-top); min-height: calc(62px + env(safe-area-inset-top)); }
  .global-search-input { min-height: 50px; margin: 12px 14px 8px; }
  .global-search-results { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  body.settings-page .settings-shell { width: 100%; padding: 24px 18px 42px; }
  body.settings-page .settings-title h1 { font-size: 31px; }
  body.settings-page .settings-title p { margin-bottom: 24px; }
  body.settings-page .avatar-editor { min-height: 122px; gap: 16px; padding: 17px; }
  body.settings-page .avatar-preview, body.settings-page .avatar-preview img { width: 82px; height: 82px; border-radius: 24px; }
  body.settings-page .settings-form input, body.settings-page .settings-form textarea { font-size: 16px; }
}
/* Suspension reasons: explicit, localized choices instead of a free-text prompt. */
.suspension-reason-overlay { position: fixed; z-index: 140; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(23,23,19,.35); backdrop-filter: blur(5px); opacity: 0; transition: opacity .16s ease; }
.suspension-reason-overlay.visible { opacity: 1; }
.suspension-reason-dialog { width: min(520px, 100%); overflow: hidden; border: 1px solid rgba(126,123,113,.24); border-radius: 24px; background: #fffefa; box-shadow: 0 28px 90px rgba(23,23,19,.24); transform: translateY(8px) scale(.99); transition: transform .16s ease; }
.suspension-reason-overlay.visible .suspension-reason-dialog { transform: translateY(0) scale(1); }
.suspension-reason-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 22px 17px; border-bottom: 1px solid var(--soft-line); }
.suspension-reason-dialog > header span { color: #a14b40; font-family: ui-monospace, monospace; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.suspension-reason-dialog h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.035em; }
.suspension-reason-dialog header p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.suspension-reason-close { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; padding: 0 0 2px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; font-size: 21px; cursor: pointer; }
.suspension-reason-options { display: grid; gap: 7px; padding: 13px 14px; }
.suspension-reason-option { width: 100%; min-height: 58px; display: grid; grid-template-columns: 29px minmax(0,1fr) 19px; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.suspension-reason-option:hover { background: #f5f2ec; }
.suspension-reason-option.selected { border-color: rgba(178,54,54,.25); background: #fbefec; }
.suspension-reason-option > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #77746c; background: #efede6; font-size: 10px; }
.suspension-reason-option.selected > b { color: #fff; background: #a54e43; }
.suspension-reason-option > span { font-size: 12px; line-height: 1.4; }
.suspension-reason-option > i { color: #8f493f; opacity: 0; font-style: normal; }
.suspension-reason-option.selected > i { opacity: 1; }
.suspension-reason-dialog > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--soft-line); }
.suspension-reason-dialog > footer button { min-height: 39px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fffefa; font-size: 11px; font-weight: 760; cursor: pointer; }
.suspension-reason-dialog > footer .suspension-reason-submit { border-color: #a54e43; color: #fff; background: #a54e43; }
.suspension-reason-dialog > footer .suspension-reason-submit:disabled { opacity: .38; cursor: not-allowed; }
body.suspension-dialog-open { overflow: hidden; }
.suspended-profile-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #a54e43; font-size: 19px; font-weight: 850; }
@media (max-width: 700px) {
  .suspension-reason-overlay { align-items: end; padding: 0; }
  .suspension-reason-dialog { width: 100%; border-width: 1px 0 0; border-radius: 24px 24px 0 0; transform: translateY(18px); }
  .suspension-reason-dialog > header { padding: 20px 19px 16px; }
  .suspension-reason-options { padding-inline: 11px; }
  .suspension-reason-option { min-height: 62px; }
}
.notification-request-row { position: relative; }
.notification-request-row .notification-item { padding-right: 178px; }
.notification-request-actions { position: absolute; z-index: 2; top: 50%; right: 14px; display: flex; gap: 7px; transform: translateY(-50%); }
.notification-request-actions button { min-width: 66px; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fffefa; font-size: 10px; font-weight: 800; cursor: pointer; }
.notification-request-actions button.approve { border-color: var(--acid); background: var(--acid); }
.notification-request-actions button:disabled { opacity: .45; cursor: wait; }
@media (max-width: 700px) {
  .notification-request-row .notification-item { min-height: 110px; padding-right: 10px; padding-bottom: 50px; }
  .notification-request-actions { top: auto; right: 10px; bottom: 10px; left: 58px; transform: none; }
}

/* Green Sky identity refresh: flat surfaces, cool neutrals and one green
   action color. NOW's existing layout and behavior stay intact. */
@media (min-width: 701px) {
:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #101a14;
  --muted: #65726a;
  --line: #dce6e0;
  --soft-line: #edf2ef;
  --acid: #2f7d32;
  --acid-deep: #215c25;
  --mint: #e6f2e4;
  --lilac: #edf4f0;
  --orange: #eb8b59;
  --green-soft: #eaf4e8;
  --green-softer: #f6faf5;
  --green-ink: #286b2b;
  --shadow: none;
}

html, body { background: var(--paper); background-image: none; }
body *, body *::before, body *::after { box-shadow: none !important; }
::selection { color: var(--ink); background: #cce5c8; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid rgba(47, 125, 50, .2); outline-offset: 2px; }
.brand { border-radius: 12px; box-shadow: 0 0 0 1px rgba(16, 26, 20, .05); }
.topnav { gap: 3px; border-color: transparent; background: #edf3ef; }
.topnav a { color: #607067; }
.topnav a:hover { color: var(--ink); background: rgba(255, 255, 255, .8); }
.topnav a.active { color: #fff; background: var(--acid); }
.language-switch { border-color: transparent; background: #edf3ef; }
.language-switch a.active { color: #fff; background: var(--acid); }
.round-action { border-color: transparent; color: #536159; background: transparent; transition: color .16s ease, background-color .16s ease, transform .16s ease; }
.round-action:hover { color: var(--green-ink); background: var(--green-soft); transform: translateY(-1px); }
.round-action.active { color: #fff; background: var(--acid); }
.round-action b { border-color: var(--paper); color: #fff; background: var(--acid); }
.join-button { color: #fff; background: var(--acid); }
.join-button:hover { background: var(--acid-deep); }
.account-menu summary { outline-color: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.account-menu > div { border-radius: 15px; box-shadow: 0 12px 34px rgba(14, 46, 28, .12); }
.account-menu a:hover, .account-menu button:hover { color: var(--green-ink); }

.app-grid { border-color: var(--line); border-radius: 18px; background: #fff; box-shadow: none; }
.people-panel { border-color: var(--line); background: #f8fbf9; }
.people-heading h1, .profile-identity h2, .history-heading h3, .notifications-view h2, .settings-title h1, .auth-intro h1 { color: var(--ink); }
.people-list { scrollbar-color: #b7c8be transparent; }
.people-list::-webkit-scrollbar-thumb { background: #b7c8be; }
.person-row { border-radius: 13px; }
.person-row:hover { border-color: var(--line); background: #fff; }
.person-row.selected { border-color: #c9e3d3; background: #fff; box-shadow: none; }
.person-row.selected:before { background: var(--acid); }
.avatar, .profile-avatar, .composer-avatar img, .composer-avatar span, .reply-item > img, .reply-item > span, .notification-icon, .conversation-row .avatar, .conversation-row .avatar-fallback, .chat-contact-avatar, .chat-contact-avatar .avatar, .chat-contact-avatar .avatar-fallback { border-radius: 50%; background-color: var(--mint); }
.avatar-lilac, .avatar-mint { background: var(--mint); }
.presence.fresh, .profile-avatar-wrap i.fresh, .eyebrow i { background: var(--acid); }
.eyebrow i { box-shadow: 0 0 0 4px rgba(18, 138, 80, .12); }

.profile-panel { background: #fff; }
.profile-header { border-color: var(--soft-line); }
.secondary-button { border-color: var(--line); background: #fff; }
.secondary-button:hover { border-color: #bad9c5; color: var(--green-ink); background: var(--green-softer); }
.secondary-button.following { border-color: var(--acid); color: #fff; background: var(--acid); }
.follow-button:not(.following):not(.requested) { border-color: var(--acid); color: #fff; background: var(--acid); }
.follow-button:not(.following):not(.requested):hover { border-color: var(--acid-deep); color: #fff; background: var(--acid-deep); }
.follow-button.requested { border-color: #d3e2d9; color: var(--green-ink); background: var(--green-soft); }
.verification-badge, .verification-person, .verification-creator, .verification-organization { color: #fff; background: var(--acid); }
.verification-now { color: #fff; background: var(--ink); }

.composer { border-color: var(--line); border-radius: 15px; background: #fff; box-shadow: none; }
.composer:focus-within { border-color: #9ccdad; box-shadow: 0 0 0 3px rgba(18, 138, 80, .09); }
.composer .feeling-picker > div > button { border-color: var(--soft-line); background: #fafcfb; }
.composer .feeling-picker > div > button:hover, .composer .feeling-picker > div > button.selected { border-color: #a6d4b7; background: var(--green-soft); }
.composer button, .auth-form > button, .save-button, .reply-form button, .reply-login { color: #fff; background: var(--acid); }
.composer button:hover, .auth-form > button:hover, .save-button:hover, .reply-form button:hover, .reply-login:hover { color: #fff; background: var(--acid-deep); }
.composer .attach-photo { color: #5d6a62; }
.composer .attach-photo:hover { border-color: #cce1d4; color: var(--green-ink); background: var(--green-softer); }
.composer #postButton { box-shadow: none; }

.history-line i { background: var(--acid); }
.history-line:after { background: #dce9e1; }
.history-item:target, .reply-item.reply-target { background: var(--green-soft); outline-color: var(--green-soft); }
.history-actions .comment-toggle[aria-expanded="true"], .history-actions .message-now-action:hover, .history-actions button:focus-visible { color: var(--green-ink) !important; }
.rewind-launch { border-color: var(--line); background: #fff; }
.rewind-launch:hover { border-color: #b6d6c1; background: var(--green-softer); }
.rewind-launch > span:first-child { color: #fff; background: var(--acid); }

.notification-item { border-color: var(--soft-line); border-radius: 11px; }
.notification-item:hover { background: var(--green-softer); }
.notification-icon { color: var(--green-ink); background: #eef4f0; }
.notification-item.unread { background: #fbfefc; }
.notification-item.unread .notification-icon, .notification-item.unread .notification-avatar { color: #fff; background: var(--acid); }
.notification-item.unread .notification-count { color: #fff; background: var(--acid); }
.notification-request-actions button.approve { border-color: var(--acid); color: #fff; background: var(--acid); }

.auth-card, .settings-shell { border-color: var(--line); border-radius: 18px; background: #fff; box-shadow: none; }
.connections-dialog, .privacy-preview-dialog, .suspension-reason-dialog { border-color: var(--line); background: #fff; box-shadow: 0 18px 52px rgba(14, 46, 28, .16); }
.auth-form input, .settings-form input, .settings-form textarea { border-color: var(--line); background: #fbfdfc; }
.auth-form input:focus, .settings-form input:focus, .settings-form textarea:focus, .reply-form input:focus { border-color: #82c49a; box-shadow: 0 0 0 3px rgba(18, 138, 80, .11); }
.settings-about a:hover, .legal-placeholder { background: var(--green-softer); }
.legal-section-heading span, .legal-alpha-list li::before { color: var(--green-ink); }
.privacy-preview-option:hover { background: var(--green-softer); }
.privacy-preview-option.selected { border-color: #b9dec7; background: var(--green-soft); }
.privacy-preview-option.selected .privacy-preview-icon, .privacy-preview-dialog > footer .privacy-preview-save { border-color: var(--acid); color: #fff; background: var(--acid); }

.messages-backdrop { background: rgba(8, 35, 21, .18); }
.messages-drawer { border-color: var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 64px rgba(8, 35, 21, .16); }
.messages-drawer-header, .messages-new, .conversation-list-pane, .chat-pane, .message-stream { border-color: var(--line); background: #fff; }
.messages-drawer-header .eyebrow { color: var(--green-ink); }
.messages-new { background: #f7faf8; }
.messages-new input, .message-search { border-color: var(--line); background: #f0f4f1; }
.messages-new form button, .message-new-action, .composer-send { color: #fff; background: var(--acid); }
.messages-header-actions .message-new-action { color: #fff; background: var(--acid); }
.messages-header-actions .message-new-action:hover { color: #fff; background: var(--acid-deep); }
.conversation-row:hover, .conversation-row.active { background: var(--green-softer); }
.conversation-now b { color: var(--green-ink); }
.message-bubble { color: var(--ink); background: #f0f3f1; }
.message-bubble-row.own .message-bubble { color: #0b4c2d; background: #dff4e7; }
.message-reply-marker { background: var(--acid); }
.message-launch > b, .conversation-meta b, .message-profile-button { color: var(--green-ink); background: var(--green-soft); }
.message-emoji-picker, .message-reference-dialog { border-color: var(--line); background: #fff; }
.message-emoji-picker button:hover { background: var(--green-soft); }
.android-download > span { border-color: #b8d8c3; color: var(--green-ink); background: var(--green-soft); }
.sidebar-legal a:hover { color: var(--green-ink); }

/* Compact desktop shell based on the approved reference. */
.site-shell { width: min(1040px, calc(100% - 48px)); padding-bottom: 26px; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 0;
}
.topbar .brand { width: 30px; height: 30px; border-radius: 8px; }
.topbar .topnav { margin: 0; padding: 0; gap: 2px; background: transparent; }
.topbar .topnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 9px;
  color: #536159;
  background: transparent;
  font-size: 14px;
  font-weight: 450;
}
.topbar .topnav a:hover { color: var(--ink); background: var(--green-softer); }
.topbar .topnav a.active { padding-inline: 10px; color: var(--green-ink); background: transparent; font-weight: 750; }
.topbar .topnav a:first-child.active::before { display: none; content: none; }
.topbar .desktop-nav-icon { display: block; width: 17px; height: 17px; flex: none; stroke-width: 1.9; }
.topbar .topnav a.active .desktop-nav-icon { stroke-width: 2.35; }
.topbar .topnav a.active .desktop-nav-home { fill: currentColor; }
.topbar .account-actions { margin-left: auto; gap: 5px; }
.topbar .round-action { width: 31px; height: 31px; }
.topbar .round-action svg { width: 16px; height: 16px; }
.topbar .account-menu summary { width: 31px; height: 31px; outline-width: 2px; }
.topbar .language-switch { padding: 2px; }
.topbar .language-switch a { min-width: 24px; padding: 4px 5px; font-size: 8px; }

.app-grid {
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(280px, 37.5%) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.people-column { min-width: 0; display: flex; flex-direction: column; align-self: start; }
.people-panel, .profile-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.people-panel { height: auto; max-height: min(520px, calc(100vh - 84px)); padding: 12px 12px 10px; overflow: hidden; }
.people-heading { min-height: 34px; padding: 2px 7px 5px; }
.people-heading h1 { max-width: none; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.people-list { gap: 0; max-height: min(385px, calc(100vh - 205px)); margin: 0; padding: 0; scrollbar-width: none; }
.people-list::-webkit-scrollbar { display: none; }
.person-row {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  min-height: 50px;
  padding: 7px 4px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
}
.person-row:hover, .person-row.selected { border-color: var(--soft-line); background: var(--green-softer); transform: none; }
.people-list > .person-row:last-of-type { border-bottom: 0; }
.person-row.selected:before, .people-panel .chevron { display: none; }
.avatar-wrap, .avatar { width: 34px; height: 34px; }
.avatar { font-size: 9px; }
.presence { right: -1px; bottom: -1px; width: 10px; height: 10px; border-width: 2px; }
.person-main > span { gap: 5px; }
.person-main strong { font-size: 14px; }
.person-main time { font-size: 11px; }
.person-main em { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.people-panel .sidebar-meta { margin: auto 5px 0; padding-top: 10px; }
.android-download { grid-template-columns: 24px 1fr; column-gap: 8px; }
.android-download > span { width: 24px; height: 24px; border: 0; background: transparent; }
.android-download-icon svg { display: block; width: 16px; height: 16px; color: var(--acid); stroke-width: 1.65; }
.android-download-icon .android-download-fallback { display: none; }
.android-download strong { color: var(--ink); font-size: 13px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.android-download small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.people-panel .sidebar-legal-inside { display: none; }
.people-column > .sidebar-legal-outside {
  display: flex;
  gap: 4px 8px;
  margin: 10px 0 0;
  padding: 0 8px;
  color: #6f7b74;
  font-size: 11px;
}

.profile-panel { height: auto; max-height: calc(100vh - 84px); padding: 16px 16px 24px; overflow-y: auto; }
.profile-header { align-items: center; gap: 14px; padding: 0 0 14px; }
.profile-identity { gap: 12px; }
.profile-avatar { width: 54px; height: 54px; font-size: 13px; }
.profile-identity h2 { font-size: 20px; line-height: 1.05; letter-spacing: -.035em; }
.profile-identity p { margin-bottom: 3px; font-size: 12px; }
.profile-professional, .profile-bio { max-width: 360px; margin-top: 4px; font-size: 12px; line-height: 1.4; }
.profile-stats { gap: 13px; margin-top: 7px; font-size: 11px; }
.profile-stats b { font-size: 12px; }
.profile-actions { display: flex; gap: 6px; }
.profile-actions .secondary-button { min-height: 34px; padding: 0 12px; font-size: 12px; }
.profile-actions .secondary-button svg { width: 14px; }

.now-hero {
  margin: 14px 0 17px;
  padding: 14px 15px 13px;
  overflow: visible;
  border: 1px solid #78bf55;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}
.now-meta { align-items: center; color: var(--muted); font-family: inherit; font-size: 11px; letter-spacing: 0; text-transform: none; }
.now-meta span { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; color: var(--green-ink); background: var(--green-soft); font-size: 10px; }
.now-meta i { width: 6px; height: 6px; margin-right: 6px; background: var(--acid); }
.now-hero p, .now-hero p.quiet { margin: 14px 0 9px; color: var(--ink); font-family: inherit; font-size: clamp(17px, 2vw, 21px); font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.hero-footer { margin-top: 8px; }
.hero-actions { gap: 10px; }
.hero-actions .like-toggle, .hero-actions .comment-toggle, .hero-actions .message-now-action,
.hero-actions .item-menu { color: #7d8982 !important; background: transparent; }
.hero-actions button:hover, .hero-actions button:focus-visible { color: var(--green-ink) !important; background: transparent; }
.hero-photo { margin-top: 0; border-color: var(--line); color: var(--muted); }
.now-hero .hero-comments-panel { margin-top: 12px; padding-top: 12px; border-top-color: var(--soft-line); color: var(--ink); }
.now-hero .hero-comments-panel .reply-item p,
.now-hero .hero-comments-panel .no-replies { color: var(--muted); }
.now-hero .hero-comments-panel .reply-form { border-top-color: var(--soft-line); }
.now-hero .hero-comments-panel .reply-form input { border-color: var(--line); color: var(--ink); background: #f8fbf9; }

.composer { padding: 13px 14px 11px; }
.composer-avatar img, .composer-avatar span { width: 36px; height: 36px; }
.composer textarea { min-height: 44px; font-size: 15px; }
.history-section { margin-top: 17px; }
.history-heading { margin-bottom: 8px; }
.history-heading h3 { font-size: 17px; letter-spacing: -.02em; }
.rewind-launch { min-width: 0; padding: 6px 9px; border-radius: 10px; }
.rewind-launch b { font-size: 9px; }
.rewind-launch small { display: none; }
.history-group { display: block; }
.history-group + .history-group { margin-top: 24px; }
.history-group h4 {
  width: 100%;
  margin: 0;
  padding: 0 0 7px;
  color: #7b867f;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}
.history-item {
  grid-template-columns: 50px minmax(0, 1fr) max-content;
  gap: 10px;
  min-height: 44px;
  padding: 7px 0;
  border-bottom: 1px solid var(--soft-line);
}
.history-line { display: none; }
.history-item > time { padding-top: 1px; color: #89938d; font-size: 10.5px; white-space: nowrap; }
.history-copy p { margin: -1px 0 3px; color: #4d5951; font-size: 14px; font-weight: 500; line-height: 1.4; }
.history-item:hover .history-copy p { color: var(--ink); }
.history-item .comments-panel { grid-column: 2 / 4; }
.history-actions .photo-toggle, .history-actions .like-toggle,
.history-actions .comment-toggle, .history-actions .message-now-action { color: #7d8982 !important; }

/* Desktop comfort pass: the visual density of roughly 110% browser zoom,
   expressed as real dimensions so layout and responsive behavior stay stable. */
.site-shell { width: min(1140px, calc(100% - 48px)); }
.topbar { height: 70px; gap: 20px; }
.topbar .brand { width: 33px; height: 33px; }
.topbar .topnav a { gap: 8px; padding: 8px 11px; font-size: 15px; }
.topbar .topnav a.active { padding-inline: 11px; }
.topbar .desktop-nav-icon { width: 18px; height: 18px; }
.topbar .round-action { width: 34px; height: 34px; }
.topbar .account-menu summary { width: 34px; height: 34px; }

.app-grid { gap: 16px; }
.people-panel { max-height: min(572px, calc(100vh - 92px)); padding: 13px; }
.people-heading { min-height: 37px; }
.people-heading h1 { font-size: 13px; }
.people-list { max-height: min(423px, calc(100vh - 222px)); }
.person-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; min-height: 55px; padding: 8px 4px; }
.avatar-wrap, .avatar { width: 38px; height: 38px; }
.person-main strong { font-size: 15px; }
.person-main time { font-size: 11px; }
.person-main em { font-size: 13px; }
.people-column > .sidebar-legal-outside { margin-top: 11px; font-size: 11px; }

.profile-panel { max-height: calc(100vh - 92px); padding: 18px 18px 26px; }
.profile-header { gap: 15px; padding-bottom: 15px; }
.profile-identity { gap: 13px; }
.profile-avatar { width: 60px; height: 60px; font-size: 14px; }
.profile-identity h2 { font-size: 22px; }
.profile-identity p, .profile-professional, .profile-bio { font-size: 13px; }
.profile-stats { font-size: 12px; }
.profile-stats b, .profile-actions .secondary-button { font-size: 13px; }
.profile-actions .secondary-button { min-height: 38px; }
.profile-actions .follow-button { height: 38px; }
.profile-actions .follow-button.following {
  border-color: var(--line);
  color: #4d5951;
  background: #fff;
}
.profile-actions .follow-button.following svg { display: none; }
.profile-actions .follow-button.following:hover {
  border-color: #bad9c5;
  color: var(--green-ink);
  background: var(--green-softer);
}
.profile-actions .message-profile-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  margin-left: 0;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  color: #4d5951;
  background: #fff;
  font-size: 0;
}
.profile-actions .message-profile-button svg { width: 17px; height: 17px; }

.now-hero { margin: 15px 0 19px; padding: 16px; border-radius: 13px; }
.now-meta { font-size: 12px; }
.now-meta span { font-size: 11px; }
.now-hero p, .now-hero p.quiet { font-size: clamp(19px, 2vw, 23px); }
.composer { padding: 14px 15px 12px; }
.composer-avatar img, .composer-avatar span { width: 40px; height: 40px; }
.composer textarea { min-height: 48px; font-size: 16px; }

.history-heading h3 { font-size: 18px; }
.history-group + .history-group { margin-top: 0; padding-top: 28px; }
.history-group h4 { font-size: 11px; }
.history-item { grid-template-columns: 54px minmax(0, 1fr) max-content; gap: 11px; min-height: 36px; padding: 6px 0; }
.history-item > time { font-size: 11px; }
.history-copy p { font-size: 15px; }
}

/* The APK call-to-action is relevant only when the site is opened on Android. */
html:not(.android-client) .android-download { display: none; }
html:not(.android-client) .people-panel .sidebar-meta { display: none; }

/* Flat white desktop drawers and dialogs. */
@media (min-width: 701px) {
  .desktop-compose-launch { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 0; border-radius: 18px; color: #fff; background: var(--acid); font-size: 12px; font-weight: 750; cursor: pointer; }
  .desktop-compose-launch:hover { background: var(--acid-deep); }
  .desktop-compose-launch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  body.notifications-open .notification-launch, body.notifications-open .notification-launch:hover { color: #050806; background: transparent; transform: none; }
  body.notifications-open .notification-launch svg { stroke-width: 2.5; }

  .profile-actions .profile-more-button { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; color: #4d5951; background: #fff; font-size: 0; }
  .profile-actions .profile-more-button svg { width: 18px; height: 18px; }
  .profile-moderation-menu { min-width: 180px; background: #fff; }
  .profile-moderation-menu .profile-block-button { color: #b42318; }
  .profile-moderation-menu .profile-block-button:hover { color: #8f1d14; background: #fff3f1; }
  .blocked-profile-state { min-height: 280px; display: grid; place-items: center; align-content: center; padding: 38px 24px; color: var(--muted); text-align: center; }
  .blocked-profile-state > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #647168; background: #f0f4f1; font-size: 24px; }
  .blocked-profile-state svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .blocked-profile-state h3 { margin: 13px 0 5px; color: var(--ink); font-size: 17px; }
  .blocked-profile-state p { max-width: 380px; margin: 0; font-size: 13px; line-height: 1.5; }

  .notifications-drawer { position: fixed; z-index: 400; top: 76px; right: 24px; width: min(410px, calc(100vw - 48px)); height: min(650px, calc(100vh - 100px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; visibility: hidden; pointer-events: none; transform: translateX(calc(100% + 32px)); transition: transform .18s ease, visibility 0s linear .18s; }
  .notifications-drawer.open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
  .notifications-drawer > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px 0 17px; border-bottom: 1px solid var(--soft-line); background: #fff; }
  .notifications-drawer > header > div { display: flex; align-items: center; gap: 10px; }
  .notifications-drawer h2 { margin: 0; color: var(--ink); font-size: 19px; letter-spacing: -.03em; }
  .notifications-drawer-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #111915; background: #f0f4f1; }
  .notifications-drawer-icon svg, .notifications-drawer > header button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .notifications-drawer > header button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #5d6961; background: transparent; cursor: pointer; }
  .notifications-drawer > header button:hover { background: #f2f6f3; }
  .notification-drawer-list { min-height: 0; flex: 1; overflow-y: auto; padding: 5px 9px 12px; scrollbar-gutter: stable; }
  .notification-drawer-list .notification-item { min-height: 68px; padding: 10px 7px; border-radius: 0; }
  .notification-drawer-list .notification-item:hover { background: #f7faf8; transform: none; }
  .notification-drawer-list .notification-icon { width: 38px; height: 38px; }
  .notification-drawer-state { min-height: 180px; display: grid; place-items: center; padding: 24px; color: var(--muted); font-size: 12px; text-align: center; }
  .notification-drawer-state.error { color: #b42318; }

  .edit-profile-overlay, .desktop-compose-overlay { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(10, 18, 13, .34); }
  .edit-profile-overlay[hidden], .desktop-compose-overlay[hidden] { display: none; }
  .edit-profile-dialog, .desktop-compose-dialog { width: min(600px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  .edit-profile-dialog header, .desktop-compose-dialog > header { min-height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fff; }
  .edit-profile-dialog header h2, .desktop-compose-dialog > header h2 { margin: 0; color: var(--ink); font-size: 16px; text-align: center; }
  .edit-profile-dialog header button, .desktop-compose-dialog > header button { justify-self: start; padding: 7px 0; border: 0; color: var(--green-ink); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
  .edit-profile-dialog header .edit-profile-save, .desktop-compose-dialog > header .desktop-compose-submit { justify-self: end; }
  .edit-profile-dialog header button:disabled, .desktop-compose-dialog > header button:disabled { opacity: .45; cursor: wait; }
  .edit-profile-body { padding: 22px; }
  .edit-profile-avatar { position: relative; width: 78px; height: 78px; display: block; margin: 0 0 22px; cursor: pointer; }
  .edit-profile-avatar > span { width: 78px; height: 78px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: var(--ink); background: var(--mint); font-size: 16px; font-weight: 800; }
  .edit-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .edit-profile-avatar > b { position: absolute; right: -3px; bottom: -2px; width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--acid); }
  .edit-profile-avatar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .edit-profile-body > label:not(.edit-profile-avatar) { display: block; margin-top: 15px; }
  .edit-profile-body > label > span { display: block; margin-bottom: 6px; color: #455249; font-size: 12px; font-weight: 700; }
  .edit-profile-body input, .edit-profile-body textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 14px; resize: vertical; }
  .edit-profile-body input:focus, .edit-profile-body textarea:focus { border-color: #91c3a3; outline: 3px solid rgba(47, 125, 50, .1); }
  .edit-profile-error { min-height: 18px; margin: 12px 0 0; color: #b42318; font-size: 12px; }

  .desktop-compose-dialog { width: min(570px, 100%); }
  .desktop-compose-body { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 13px; padding: 22px; }
  .desktop-compose-avatar { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: var(--ink); background: var(--mint); font-size: 12px; font-weight: 800; }
  .desktop-compose-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .desktop-compose-body textarea { min-height: 132px; padding: 5px 0; border: 0; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 18px; line-height: 1.45; resize: none; }
  .desktop-compose-image-preview { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; overflow: hidden; border-radius: 12px; }
  .desktop-compose-image-preview[hidden] { display: none; }
  .desktop-compose-image-preview > div { position: relative; min-height: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #edf3ef; }
  .desktop-compose-image-preview > div:only-child { grid-column: 1 / -1; min-height: 220px; }
  .desktop-compose-image-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .desktop-compose-image-preview button { position: absolute; top: 7px; right: 7px; width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .66); font-size: 17px; cursor: pointer; }
  .desktop-compose-dialog > footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-top: 1px solid var(--soft-line); }
  .desktop-compose-dialog > footer button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 0; border-radius: 9px; color: var(--green-ink); background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
  .desktop-compose-dialog > footer button:hover { background: var(--green-soft); }
  .desktop-compose-dialog > footer svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .desktop-compose-dialog > footer > span { color: var(--muted); font-size: 11px; }

  .rewind-launch { min-width: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; color: #536159; background: #fff; text-align: left; }
  .rewind-launch:hover { border-color: #bad9c5; color: var(--green-ink); background: #f7faf8; transform: none; }
  .rewind-launch .rewind-launch-clock { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .rewind-launch > span.rewind-launch-copy { width: auto; height: auto; display: block; border-radius: 0; color: inherit; background: transparent; }
  .rewind-launch b { color: inherit; font-size: 10px; font-weight: 700; }

  .global-search-dialog, .global-search-dialog > header, .global-search-input, .composer .feeling-picker, .composer .feeling-picker > div > button { background: #fff; }
  .global-search-input { border-color: var(--line); }
  .global-search-input:focus-within { border-color: #91c3a3; }
  .composer .feeling-picker { border-color: var(--line); }
  .composer .feeling-picker > div > button:hover, .composer .feeling-picker > div > button.selected { border-color: #a6d4b7; background: var(--green-soft); }
  .composer .feeling-picker .clear-feeling:hover { background: #f5f8f6; }

  .people-list { box-sizing: border-box; padding-right: 5px !important; scrollbar-width: thin !important; scrollbar-gutter: stable; scrollbar-color: transparent transparent; }
  .people-list:hover, .people-list.is-scrolling { scrollbar-color: #aebbb3 transparent; }
  .people-list::-webkit-scrollbar { width: 5px !important; height: 0; display: block !important; }
  .people-list::-webkit-scrollbar-track { background: transparent; }
  .people-list::-webkit-scrollbar-thumb { border-radius: 999px; background: transparent; }
  .people-list:hover::-webkit-scrollbar-thumb, .people-list.is-scrolling::-webkit-scrollbar-thumb { background: #aebbb3; }
}

@media (max-width: 700px) {
  .desktop-compose-launch, .notifications-drawer, .edit-profile-overlay, .desktop-compose-overlay, .profile-user-menu { display: none !important; }
}

@media (min-width: 701px) {
  .sidebar-legal button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
  .sidebar-legal button:hover { color: var(--ink); text-decoration: underline; }
  body.admin-inbox-open .admin-inbox-launch, body.admin-inbox-open .admin-inbox-launch:hover { color: #050806; background: transparent; transform: none; }
  body.admin-inbox-open .admin-inbox-launch svg { stroke-width: 2.3; }

  .admin-inbox-drawer { position: fixed; z-index: 410; top: 76px; right: 24px; width: min(430px, calc(100vw - 48px)); height: min(650px, calc(100vh - 100px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; visibility: hidden; pointer-events: none; transform: translateX(calc(100% + 32px)); transition: transform .18s ease, visibility 0s linear .18s; }
  .admin-inbox-drawer.open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
  .admin-inbox-drawer > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px 0 17px; border-bottom: 1px solid var(--soft-line); background: #fff; }
  .admin-inbox-drawer > header > div { display: flex; align-items: center; gap: 10px; }
  .admin-inbox-drawer > header > div > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #111915; background: #f0f4f1; }
  .admin-inbox-drawer h2 { margin: 0; color: var(--ink); font-size: 19px; letter-spacing: -.03em; }
  .admin-inbox-drawer svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .admin-inbox-drawer > header > button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #5d6961; background: transparent; cursor: pointer; }
  .admin-inbox-tabs { display: flex; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--soft-line); }
  .admin-inbox-tabs button { padding: 7px 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 700; }
  .admin-inbox-tabs button.active { color: var(--ink); background: #edf3ef; }
  .admin-inbox-tabs button:disabled { opacity: .48; }
  .admin-inbox-list { min-height: 0; flex: 1; overflow-y: auto; padding: 4px 11px 13px; scrollbar-gutter: stable; }
  .admin-inbox-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 13px 6px; border-bottom: 1px solid var(--soft-line); }
  .admin-inbox-item.unread { background: #f7faf8; }
  .admin-inbox-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: var(--ink); background: var(--mint); font-size: 10px; font-weight: 800; }
  .admin-inbox-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .admin-inbox-item p { margin: 0 0 5px; color: var(--ink); font-size: 12px; }
  .admin-inbox-item p small { color: var(--muted); font-weight: 500; }
  .admin-inbox-item div > div { color: #465249; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
  .admin-inbox-item footer { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 10px; }
  .admin-inbox-item footer a { color: var(--green-ink); text-decoration: none; }
  .admin-inbox-state { min-height: 180px; display: grid; place-items: center; padding: 24px; color: var(--muted); font-size: 12px; text-align: center; }
  .admin-inbox-state.error { color: #b42318; }

  .feedback-overlay, .app-download-overlay { position: fixed; z-index: 520; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(10, 18, 13, .34); }
  .feedback-overlay[hidden], .app-download-overlay[hidden] { display: none; }
  .feedback-dialog, .app-download-dialog { width: min(520px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  .feedback-dialog > header { min-height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); }
  .feedback-dialog h2, .app-download-dialog h2 { margin: 0; color: var(--ink); font-size: 16px; }
  .feedback-dialog > header h2 { text-align: center; }
  .feedback-dialog > header button { justify-self: start; padding: 7px 0; border: 0; color: var(--green-ink); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
  .feedback-dialog > header .feedback-submit { justify-self: end; }
  .feedback-dialog > div { padding: 20px; }
  .feedback-dialog p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
  .feedback-dialog textarea { width: 100%; min-height: 150px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 14px; line-height: 1.45; resize: vertical; }
  .feedback-dialog textarea:focus { border-color: #91c3a3; outline: 3px solid rgba(47, 125, 50, .1); }
  .feedback-dialog > div > small { display: block; margin-top: 6px; color: var(--muted); text-align: right; font-size: 10px; }
  .feedback-error, .feedback-success { min-height: 17px; margin-top: 8px; font-size: 11px; }
  .feedback-error { color: #b42318; }
  .feedback-success { color: var(--green-ink); }
  .feedback-success[hidden] { display: none; }

  .app-download-dialog > header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); }
  .app-download-dialog > header button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 22px; cursor: pointer; }
  .app-download-options { display: grid; gap: 10px; padding: 18px; }
  .app-download-options > a, .app-download-options > div { min-height: 68px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 11px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; text-decoration: none; }
  .app-download-options > a:hover { border-color: #bad9c5; background: #f7faf8; }
  .app-download-options > * > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--green-ink); background: var(--green-soft); }
  .app-download-options svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .app-download-options strong { align-self: end; font-size: 13px; }
  .app-download-options small { align-self: start; color: var(--muted); font-size: 10px; }
  .app-download-options > * > b { grid-column: 3; grid-row: 1 / 3; color: var(--green-ink); font-size: 18px; }
  .app-download-options .coming-soon { opacity: .58; }

  /* Remaining active warm surfaces are normalized to the new white/cool palette. */
  .messages-drawer, .messages-drawer::before, .messages-drawer-header, .chat-pane, .message-composer,
  .global-search-dialog, .privacy-preview-dialog, .connections-dialog, .call-dialog,
  .message-reference-dialog section, .action-menu { background: #fff !important; }
  .conversation-list-pane { background: #f7faf8 !important; }
  .message-search { background: #edf3ef !important; }
  .conversation-row:hover, .conversation-row.active { background: #eaf1ec !important; }
  .message-bubble { background: #f0f4f1 !important; }
  .message-bubble-row.own .message-bubble { color: #234727; background: #e3f1df !important; }
  .comments-panel, .message-emoji-picker, .message-reference-dialog, .notification-group[open],
  .privacy-preview-dialog > footer, .privacy-preview-dialog > footer button,
  .suspension-reason-dialog, .suspension-reason-dialog > footer button,
  .notification-request-actions button, .avatar-editor, .legal-placeholder,
  body.settings-page .settings-form input, body.settings-page .settings-form textarea,
  .auth-form input, .settings-form input, .settings-form textarea,
  .call-incoming-actions, .call-control-actions { background: #fff !important; }
  .notification-icon, .notification-avatar { background: #f0f4f1; }
  .notification-count { background: #e8efea; color: #526057; }
  .notification-child-rail i { background: #aebbb3; box-shadow: 0 0 0 3px #fff; }
  .call-control-actions button { background: #edf3ef; }
  .call-control-actions button:hover { background: #e2ebe5; }
  .action-menu .hide-action:hover, .action-menu .delete-action:hover,
  .composer .feeling-picker .clear-feeling:hover { background: #f3f7f4; }
}

@media (min-width: 701px) and (max-width: 940px) {
  .desktop-compose-launch { width: 34px; min-width: 34px; padding: 0; justify-content: center; }
  .desktop-compose-launch span { display: none; }
}

/* Desktop polish: flat Bluesky-like menus, privacy choices and composer tools. */
@media (min-width: 701px) {
  .account-menu .edit-profile-menu-button { color: var(--ink) !important; }

  .profile-moderation-menu {
    width: 210px;
    min-width: 210px !important;
    padding: 5px !important;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .profile-moderation-menu button {
    width: 100%;
    min-height: 42px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #35443a !important;
    background: transparent !important;
    text-align: left;
    font-size: 12px !important;
    font-weight: 650;
  }
  .profile-moderation-menu button:hover { background: #f1f5f2 !important; }
  .profile-edit-button { gap: 7px; color: var(--ink); background: #fff; }
  .profile-edit-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .profile-moderation-menu button + button { border-top: 1px solid var(--soft-line) !important; border-radius: 0 !important; }
  .profile-moderation-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .profile-moderation-menu .profile-suspend-button { color: #b42318 !important; }
  .profile-moderation-menu .profile-suspend-button:hover { background: #fff4f2 !important; }

  .privacy-preview-overlay { background: rgba(10, 18, 13, .42); backdrop-filter: none; }
  .privacy-preview-dialog {
    width: min(440px, calc(100vw - 40px));
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: none;
  }
  .privacy-preview-dialog > header { min-height: 0; padding: 20px 20px 8px; border: 0; }
  .privacy-preview-dialog > header > div > span { display: none; }
  .privacy-preview-dialog > header h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
  .privacy-preview-dialog > header button { width: 32px; height: 32px; border: 0; color: #536159; background: transparent; font-size: 22px; }
  .privacy-preview-intro { margin: 0; padding: 0 20px 14px; border: 0; color: var(--muted); font-size: 11px; }
  .privacy-preview-options { display: grid; gap: 7px; padding: 0 16px; }
  .privacy-preview-option {
    min-height: 66px;
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    gap: 11px;
    padding: 10px 12px;
    border: 0 !important;
    border-radius: 12px;
    background: #f0f4f1 !important;
  }
  .privacy-preview-option:hover { background: #e7ece9 !important; }
  .privacy-preview-option.selected { background: #f0f4f1 !important; }
  .privacy-preview-icon, .privacy-preview-option.selected .privacy-preview-icon {
    width: 34px;
    height: 34px;
    color: #435149;
    background: #fff;
  }
  .privacy-preview-option strong { color: var(--ink); font-size: 13px; }
  .privacy-preview-option small { margin-top: 2px; color: #6f7b73; font-size: 9px; line-height: 1.35; }
  .privacy-preview-option > b { width: 20px; height: 20px; border: 2px solid #88958d; background: #fff; opacity: 1; font-size: 0; }
  .privacy-preview-option.selected > b { border-color: var(--acid); background: var(--acid); box-shadow: inset 0 0 0 4px #fff; }
  .privacy-preview-note { margin: 12px 20px 0; padding: 0; color: #7a857e; background: transparent; font-size: 9px; }
  .privacy-preview-dialog > footer { padding: 16px 20px 20px; border: 0; background: #fff !important; }
  .privacy-preview-dialog > footer > button:not(.privacy-preview-save) { display: none; }
  .privacy-preview-dialog > footer .privacy-preview-save {
    width: 100%;
    min-height: 42px;
    border-color: var(--acid) !important;
    border-radius: 999px;
    color: #fff !important;
    background: var(--acid) !important;
    font-weight: 750;
  }

  .desktop-compose-dialog { position: relative; width: min(570px, 100%); }
  .desktop-compose-dialog > header h2 { visibility: hidden; }
  .desktop-compose-tools { display: flex; align-items: center; gap: 3px; }
  .desktop-compose-dialog > footer .desktop-compose-feeling-trigger,
  .desktop-compose-dialog > footer .desktop-compose-tools > button { min-height: 34px; }
  .desktop-compose-dialog > footer svg { width: 18px; height: 18px; }
  .desktop-compose-feeling-trigger #desktopComposeFeelingEmoji { width: 19px; height: 19px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
  .desktop-compose-feeling-trigger.has-feeling { background: var(--green-soft) !important; }
  .desktop-compose-feeling-picker { position: absolute; z-index: 4; left: 20px; bottom: 50px; width: 224px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .desktop-compose-feeling-picker[hidden] { display: none; }
  .desktop-compose-feeling-picker p { margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; }
  .desktop-compose-feeling-picker > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .desktop-compose-feeling-picker > div > button { display: grid; place-items: center; gap: 2px; padding: 7px 2px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; cursor: pointer; }
  .desktop-compose-feeling-picker > div > button:hover, .desktop-compose-feeling-picker > div > button.selected { border-color: #a6d4b7; background: var(--green-soft); }
  .desktop-compose-feeling-picker > div > button span { font-size: 20px; line-height: 1; }
  .desktop-compose-feeling-picker > div > button small { font-size: 8px; }
  .desktop-compose-feeling-picker .clear-feeling { width: 100%; margin-top: 7px; padding: 7px; border: 0; border-top: 1px solid var(--soft-line); color: var(--muted); background: #fff; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }

  .composer .attach-photo { width: 34px !important; min-height: 34px !important; }
  .composer .attach-photo svg, .composer .feeling-trigger #feelingTriggerEmoji svg { width: 18px !important; height: 18px !important; }
  .composer .feeling-trigger #feelingTriggerEmoji { width: 19px; height: 19px; font-size: 18px; }

  .rewind-launch {
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px !important;
    padding: 5px 1px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #68766d !important;
    background: transparent !important;
  }
  .rewind-launch:hover { color: var(--green-ink) !important; background: transparent !important; transform: none !important; }
  .rewind-launch .rewind-launch-clock { width: 16px; height: 16px; }
  .rewind-launch b { font-size: 10px; font-weight: 650; }

  .action-menu { width: 226px; padding: 5px; border-color: var(--line); border-radius: 10px; background: #fff !important; box-shadow: none; backdrop-filter: none; }
  .action-menu.open-up { top: auto; bottom: 24px; }
  .action-menu .hide-action, .action-menu .delete-action { min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; gap: 10px; padding: 0 10px; border-radius: 7px; color: #35443a; }
  .action-menu .delete-action { margin-top: 2px; border-top: 1px solid var(--soft-line); border-radius: 0 0 7px 7px; color: #35443a; }
  .action-menu .action-copy { grid-column: 1; grid-row: 1; }
  .action-menu .action-icon { width: 22px; height: 22px; grid-column: 2; grid-row: 1; color: #536159; background: transparent; }
  .action-menu .delete-action .action-icon { color: #536159; }
  .action-menu .action-copy strong { margin: 0; color: inherit; font-size: 12px; font-weight: 650; }
  .action-menu .action-copy small { display: none; }

  .app-download-dialog { width: min(480px, 100%); border-radius: 14px; box-shadow: none; }
  .app-download-options { gap: 0; padding: 5px 18px 14px; }
  .app-download-options > a, .app-download-options > div { min-height: 66px; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--soft-line); border-radius: 0; background: #fff; }
  .app-download-options > a:hover { border-color: var(--soft-line); background: #f7faf8; }
  .app-download-options > * > span { width: 34px; height: 34px; color: #34453a; background: transparent; }
  .app-download-options svg { width: 24px; height: 24px; }
  .app-download-options > a > b { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--green-ink); background: var(--green-soft); }
  .app-download-options > a > b svg { width: 16px; height: 16px; }
  .app-download-options .coming-soon > b { padding: 5px 8px; border-radius: 999px; color: #68766d; background: #eef2ef; font-size: 9px; }
  .app-download-options .coming-soon { opacity: .62; }

  .topbar .notification-launch > b {
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid #fff;
    color: #fff;
    background: var(--acid);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    opacity: 1;
  }
  .topbar .round-action svg { width: 18px; height: 18px; }
  .topbar .admin-inbox-launch svg { width: 18px; height: 18px; }

  .admin-inbox-item.completed { background: #fbfcfb; opacity: .72; }
  .admin-inbox-item > div > div:not(.admin-inbox-actions) { max-height: 168px; overflow: auto; padding-right: 4px; }
  .admin-inbox-completed-label { padding: 3px 6px; border-radius: 999px; color: #536159; background: #eaf0ec; font-size: 8px; font-weight: 750; }
  .admin-inbox-actions { display: flex; gap: 7px; margin-top: 9px; }
  .admin-inbox-actions button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: #465249; background: #fff; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }
  .admin-inbox-actions button:hover { background: #f2f6f3; }
  .admin-inbox-actions .admin-inbox-delete { margin-left: auto; border-color: #efd1cc; color: #b42318; }
  .admin-inbox-actions .admin-inbox-delete:hover { background: #fff4f2; }
  .admin-inbox-actions button:disabled { opacity: .48; cursor: wait; }
}

body.settings-page .settings-shell.legal-shell { width: min(680px, calc(100% - 40px)); padding: 34px 42px 40px; }
body.settings-page .legal-shell .settings-title h1 { font-size: 31px; }
body.settings-page .legal-shell .legal-section { grid-template-columns: 96px minmax(0, 1fr); gap: 26px; }
body.settings-page .simple-header { width: min(760px, calc(100% - 40px)); }

.block-confirm-overlay {
  position: fixed;
  z-index: 650;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 16, 12, .42);
}
.block-confirm-overlay[hidden] { display: none; }
.block-confirm-dialog {
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.block-confirm-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.block-confirm-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.03em;
}
.block-confirm-dialog > header button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  color: #607067;
  background: transparent;
  font-size: 23px;
}
.block-confirm-dialog > header button:hover { background: #f0f3f1; }
.block-confirm-dialog > p {
  margin: 9px 0 17px;
  color: #526158;
  font-size: 14px;
  line-height: 1.45;
}
.block-confirm-dialog > footer {
  display: grid;
  gap: 8px;
}
.block-confirm-dialog > footer button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #46554c;
  background: #edf1ef;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}
.block-confirm-dialog > footer button:hover { background: #e5ebe7; }
.block-confirm-dialog > footer .block-confirm-action {
  color: #fff;
  background: #e11d48;
}
.block-confirm-dialog > footer .block-confirm-action:hover { background: #be123c; }

/* Final desktop cohesion pass: one NOW green, quieter hierarchy and compact overlays. */
.verification-badge {
  cursor: help;
}
.verification-person,
.verification-creator,
.verification-organization {
  color: #fff !important;
  background: #2f7d32 !important;
}
.verification-now {
  color: #fff !important;
  background: #101a14 !important;
}
.verification-popover {
  position: fixed;
  z-index: 2147483647;
  width: max-content;
  max-width: min(230px, calc(100vw - 20px));
  padding: 7px 10px;
  border: 1px solid #dce6e0;
  border-radius: 9px;
  color: #fff;
  background: #101a14;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  pointer-events: none;
}

.account-menu > div > a,
.account-menu > div form button {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-menu > div > a svg,
.account-menu > div form button svg,
.account-menu > div > button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}
.account-menu > div > button {
  display: flex;
  align-items: center;
  gap: 13px;
}
.account-menu > div > a,
.account-menu > div form button { gap: 13px; }
.account-menu .edit-profile-menu-button { color: var(--ink) !important; }
.account-menu > div > small {
  margin-bottom: 7px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--soft-line);
}
.account-menu > div > a:hover,
.account-menu > div > button:hover,
.account-menu > div form button:hover {
  color: var(--green-ink);
  background: var(--green-softer);
}
.account-menu > div > a,
.account-menu > div > button,
.account-menu > div form button {
  padding-inline: 7px;
  border-radius: 8px;
}

.notification-actor-link {
  cursor: pointer;
  text-decoration: none;
}
.notification-actor-link:hover,
.notification-actor-link:focus-visible {
  color: #286b2b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notification-children {
  margin-left: 48px;
  border-top-color: var(--soft-line);
}
.notification-child {
  gap: 0;
  min-height: 56px;
  padding: 8px 6px;
}
.notification-child-rail { display: none; }
.notification-child-copy strong {
  color: var(--ink);
  font-weight: 650;
}
.notification-child-copy .notification-target,
.notification-copy .notification-target {
  display: block;
  max-width: 100%;
  margin: 3px 0 2px;
  overflow: hidden;
  color: #4f5d54;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-results,
.notification-drawer-list,
.conversation-list,
.message-stream,
.admin-inbox-list {
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: transparent transparent;
}
.global-search-results:hover,
.notification-drawer-list:hover,
.conversation-list:hover,
.message-stream:hover,
.admin-inbox-list:hover {
  scrollbar-color: #aebbb3 transparent;
}
.global-search-results::-webkit-scrollbar,
.notification-drawer-list::-webkit-scrollbar,
.conversation-list::-webkit-scrollbar,
.message-stream::-webkit-scrollbar,
.admin-inbox-list::-webkit-scrollbar { width: 5px; }
.global-search-results::-webkit-scrollbar-track,
.notification-drawer-list::-webkit-scrollbar-track,
.conversation-list::-webkit-scrollbar-track,
.message-stream::-webkit-scrollbar-track,
.admin-inbox-list::-webkit-scrollbar-track { background: transparent; }
.global-search-results::-webkit-scrollbar-thumb,
.notification-drawer-list::-webkit-scrollbar-thumb,
.conversation-list::-webkit-scrollbar-thumb,
.message-stream::-webkit-scrollbar-thumb,
.admin-inbox-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}
.global-search-results:hover::-webkit-scrollbar-thumb,
.notification-drawer-list:hover::-webkit-scrollbar-thumb,
.conversation-list:hover::-webkit-scrollbar-thumb,
.message-stream:hover::-webkit-scrollbar-thumb,
.admin-inbox-list:hover::-webkit-scrollbar-thumb { background: #aebbb3; }
.global-search-results::-webkit-scrollbar-button,
.notification-drawer-list::-webkit-scrollbar-button,
.conversation-list::-webkit-scrollbar-button,
.message-stream::-webkit-scrollbar-button,
.admin-inbox-list::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

.comments-panel {
  margin-top: -10px;
  padding: 10px 12px 11px;
  border-color: var(--line);
  border-radius: 13px;
  background: #fff;
}
.comments-panel .no-replies {
  padding: 1px 2px 2px;
  color: #89968e;
}
.reply-form {
  gap: 8px;
  margin-top: 8px;
  padding-top: 9px;
  border-top-color: var(--soft-line);
}
.reply-form input {
  min-height: 38px;
  padding: 8px 12px;
  border-color: #cfe0d5;
  border-radius: 11px;
  color: var(--ink);
  background: #fbfdfc;
}
.reply-form input::placeholder { color: #8a978f; }
.reply-form > button[type="submit"] {
  min-width: 54px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  color: #fff;
  background: #2f7d32;
}

/* Keep comment controls readable even when older hero styles are cached. */
.comments-panel .reply-item p,
.comments-panel .reply-item strong { color: #17201a !important; -webkit-text-fill-color: #17201a; }
.comments-panel .reply-meta time,
.comments-panel .reply-meta button { color: #68766d !important; -webkit-text-fill-color: #68766d; }
.comments-panel .reply-meta .reply-delete { color: #b42318 !important; -webkit-text-fill-color: #b42318; }
.comments-panel .reply-form input { color: #17201a !important; background: #fbfdfc !important; -webkit-text-fill-color: #17201a; }
.comments-panel .reply-form input::placeholder { color: #75827a !important; opacity: 1; -webkit-text-fill-color: #75827a; }
.hero-actions .like-toggle span,
.hero-actions .comment-toggle span {
  min-width: 8px;
  color: #526057 !important;
  -webkit-text-fill-color: #526057;
  font-size: 11px !important;
  font-weight: 750;
  line-height: 1;
}
.hero-actions .like-toggle,
.hero-actions .comment-toggle { gap: 4px; }

.now-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 148px;
  gap: 4px;
  margin: 10px 0 4px;
  overflow: hidden;
  border-radius: 13px;
  background: #edf3ef;
}
.now-image-grid.image-count-1 { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, 42vh); }
.now-image-grid.image-count-3 > button:first-child { grid-row: span 2; }
.now-image-grid button { min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 0; background: #edf3ef; cursor: zoom-in; }
.now-image-grid img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .16s ease; }
.now-image-grid button:hover img { transform: scale(1.015); }
.history-image-grid { grid-column: 2 / -1; justify-self: start; width: min(196px, 100%); grid-auto-rows: 96px; margin: 2px 0 8px; border-radius: 10px; }
.history-image-grid.image-count-1 { width: min(96px, 100%); grid-auto-rows: 96px; }

@media (max-width: 700px) {
  .now-image-grid { grid-auto-rows: 122px; border-radius: 12px; }
  .now-image-grid.image-count-1 { grid-auto-rows: minmax(190px, 36vh); }
  .history-image-grid { width: min(196px, 100%); grid-auto-rows: 96px; }
  .history-image-grid.image-count-1 { width: min(96px, 100%); grid-auto-rows: 96px; }
}

@media (min-width: 701px) {
  .topbar .notification-launch > b,
  .topbar .message-launch > b,
  .topbar .admin-inbox-launch > b {
    top: 1px;
    right: -1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid #fff;
    color: #fff !important;
    background: #2f7d32 !important;
    font-size: 9px;
    line-height: 1;
  }

  .messages-drawer,
  .messages-drawer::before,
  .messages-drawer-header,
  .chat-pane,
  .message-stream,
  .message-composer { background: #fff !important; }
  .conversation-list-pane { background: #f7faf8 !important; }
  .message-search { border-color: #e2ebe5; background: #f0f4f1 !important; }
  .conversation-row:hover,
  .conversation-row.active { background: #eaf4e8 !important; }
  .message-bubble {
    border: 1px solid #e5ebe7;
    color: #27342c;
    background: #f1f4f2 !important;
  }
  .message-bubble-row.own .message-bubble {
    border-color: #d3e8d8;
    color: #19552b;
    background: #eaf4e8 !important;
  }
  .message-bubble-row.own .message-reply-reference {
    border-color: #d3e8d8;
    background: #f4f9f3;
  }
  .message-receipt.seen,
  .chat-contact-copy small[data-online="true"] { color: #2f7d32 !important; }

  .rewind-dialog {
    width: min(780px, calc(100vw - 44px));
    height: min(690px, calc(100vh - 44px));
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    border-radius: 22px;
  }
  .rewind-topbar {
    min-height: 66px;
    padding: 11px 16px;
    border-bottom-color: rgba(255, 255, 255, .08);
  }
  .rewind-topbar > div:nth-child(2) > span { display: none; }
  .rewind-topbar h2 { margin: 0; font-size: 17px; }
  .rewind-close,
  .rewind-top-actions > button { width: 36px; height: 36px; }
  .rewind-top-actions select { height: 36px; }
  .rewind-progress { gap: 4px; padding: 9px 16px 0; }
  .rewind-stats,
  .rewind-list { display: none !important; }
  .rewind-content {
    display: block;
    min-height: 0;
    padding: 13px 16px 14px;
  }
  .rewind-stage {
    width: 100%;
    height: 100%;
    border-radius: 19px;
    background:
      radial-gradient(circle at 80% 12%, rgba(47, 125, 50, .35), transparent 40%),
      linear-gradient(150deg, #243127, #0c110e 72%);
  }
  .rewind-stage-shade {
    background: linear-gradient(180deg, rgba(5, 9, 6, .08), rgba(5, 9, 6, .25) 43%, rgba(5, 9, 6, .92));
  }
  .rewind-stage-copy {
    bottom: 44px;
    padding: clamp(25px, 5vw, 45px);
  }
  .rewind-stage-stamp {
    display: flex;
    align-items: flex-end;
    gap: 14px;
  }
  .rewind-stage-stamp time {
    color: #fff;
    font-family: inherit;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 350;
    line-height: .85;
    letter-spacing: -.06em;
  }
  .rewind-stage-stamp > span {
    display: grid;
    gap: 2px;
    padding-left: 13px;
    border-left: 3px solid #2f7d32;
  }
  .rewind-stage-stamp b,
  .rewind-stage-stamp small {
    display: block;
    color: #f5f8f6;
    font-size: 12px;
    line-height: 1.2;
  }
  .rewind-stage-stamp small { color: #b9c4bd; font-weight: 500; text-transform: capitalize; }
  .rewind-stage-copy p {
    max-width: 610px;
    margin-top: 24px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(8, 15, 10, .38);
    font-size: clamp(23px, 3.6vw, 38px);
    line-height: 1.08;
  }
  .rewind-stage-copy > span { margin: 10px 0 0 3px; }
  .rewind-stage-meta { padding: 14px 22px; }
  .rewind-controls { gap: 8px; padding: 0 16px 14px; }
  .rewind-controls button { width: 38px; height: 38px; }
  .rewind-controls .rewind-play { width: 42px; height: 42px; border-color: #2f7d32; color: #fff; background: #2f7d32; }
  .rewind-state { inset: 66px 0 0; }
}

@media (max-width: 700px) {
  .notification-children { margin-left: 42px; }
  .rewind-stats { display: none !important; }
  .rewind-dialog { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .rewind-stage-stamp { display: flex; align-items: flex-end; gap: 10px; }
  .rewind-stage-stamp time { color: #fff; font-size: 44px; line-height: .9; }
  .rewind-stage-stamp > span { display: grid; padding-left: 10px; border-left: 2px solid #2f7d32; }
  .rewind-stage-stamp b, .rewind-stage-stamp small { color: #fff; font-size: 10px; }
  .rewind-stage-copy p { margin-top: 18px; }
}

/* Support interest experiment and notification/inbox filters. */
.notification-tabs {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
  border-bottom: 1px solid var(--line);
}
.notification-tabs button {
  position: relative;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.notification-tabs button.active { color: var(--ink); }
.notification-tabs button.active::after {
  content: "";
  position: absolute;
  right: 30%;
  bottom: -1px;
  left: 30%;
  height: 3px;
  border-radius: 999px;
  background: var(--green-ink);
}
.notification-filter-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 36px 20px;
  color: var(--muted);
  text-align: center;
}
.notification-filter-empty[hidden] { display: none; }
.notification-filter-empty > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #829087;
}
.notification-filter-empty svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-filter-empty h3 { margin: 10px 0 5px; color: var(--ink); font-size: 15px; }
.notification-filter-empty p { max-width: 300px; margin: 0; font-size: 11px; line-height: 1.5; }

.admin-inbox-kind {
  display: inline-flex;
  margin-left: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #536159;
  background: #edf2ef;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}
.admin-inbox-kind.kind-support { color: #245f29; background: #e6f3e5; }
.admin-inbox-kind.kind-report { color: #9f2d23; background: #fff0ee; }

.support-overlay {
  position: fixed;
  z-index: 530;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 18, 13, .38);
}
.support-overlay[hidden] { display: none; }
.support-dialog {
  width: min(480px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.support-dialog > header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.support-dialog > header h2 { margin: 0; color: var(--ink); font-size: 17px; }
.support-dialog > header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.support-body { padding: 22px; }
.support-kicker {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #245f29;
  background: #e6f3e5;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.support-body h3 { margin: 14px 0 7px; color: var(--ink); font-size: 22px; letter-spacing: -.035em; }
.support-body > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.support-body ul { display: grid; gap: 9px; margin: 18px 0; padding: 0; list-style: none; }
.support-body li { position: relative; padding-left: 23px; color: #34453a; font-size: 12px; }
.support-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-ink);
  font-weight: 900;
}
.support-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7faf8;
}
.support-price span { color: var(--ink); font-size: 11px; }
.support-price strong { font-size: 22px; letter-spacing: -.03em; }
.support-price small { color: var(--muted); font-size: 9px; text-align: right; }
.support-interest-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--green-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.support-interest-button:disabled { opacity: .72; cursor: default; }
.support-interest-state { min-height: 18px; margin: 9px 0 0 !important; text-align: center; font-size: 10px !important; }
.support-interest-state.success { color: var(--green-ink); }
.support-interest-state.error { color: #b42318; }

.switch-account-overlay {
  position: fixed;
  z-index: 530;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 18, 13, .38);
}
.switch-account-overlay[hidden] { display: none; }
.switch-account-dialog {
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.switch-account-dialog > header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.switch-account-dialog > header h2 { margin: 0; color: var(--ink); font-size: 17px; }
.switch-account-dialog > header button {
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
}
.switch-account-dialog > div { padding: 20px; }
.switch-account-dialog p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.switch-account-dialog form { margin: 0; }
.switch-account-dialog form button,
.switch-account-dialog .switch-account-cancel {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.switch-account-dialog form button { color: #fff; background: var(--green-ink); }
.switch-account-dialog .switch-account-cancel { margin-top: 8px; color: #4e5d53; background: #eef3ef; }

body.switch-account-page { background: #fff; }
body.switch-account-page .auth-shell { width: min(420px, 100%); }
body.switch-account-page .auth-shell > .brand { width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; }
body.switch-account-page .auth-card.google-only { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 26px; border-radius: 18px; box-shadow: none; }
body.switch-account-page .auth-intro { grid-column: 1; grid-row: auto; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--soft-line); }
body.switch-account-page .auth-intro h1 { margin: 12px 0 7px; font-size: 28px; }
body.switch-account-page .auth-intro p { margin: 0; }
body.switch-account-page .google-login-form,
body.switch-account-page .google-login-button { grid-column: 1; }

.notification-empty-state {
  min-height: 260px;
  padding: 64px 20px 40px;
}
.notification-empty-state > span {
  width: 52px;
  height: 52px;
  border: 0;
  color: #829087;
}
.notification-empty-state svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-empty-state h3 { margin: 9px 0 0; font-size: 15px; }

/* Legal pages use the same clean black/white surface as the mobile app. */
body.legal-page { min-height: 100dvh; background: #fff; background-image: none; }
body.legal-page .legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  width: min(680px, 100%);
  height: 62px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
body.legal-page .legal-header > strong {
  overflow: hidden;
  font-size: 15px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
body.legal-page .legal-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body.legal-page .legal-back { grid-column: 1; }
body.legal-page .legal-header > strong { grid-column: 2; }
body.legal-page .legal-header > span:last-child { grid-column: 3; }
body.legal-page .settings-shell.legal-shell {
  width: min(680px, 100%);
  min-height: calc(100dvh - 62px);
  margin: 0 auto;
  padding: 26px 24px 56px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
body.legal-page .legal-shell .settings-title { margin: 0; }
body.legal-page .legal-shell .settings-title h1 { margin: 0; font-size: 30px; }
body.legal-page .legal-document { margin-top: 18px; border-top: 0; }
body.legal-page .legal-placeholder {
  margin-top: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}
body.legal-page .legal-placeholder h2 { font-size: 17px; }

@media (max-width: 700px) {
  body.legal-page .legal-header { grid-template-columns: 72px minmax(0, 1fr) 72px; height: 56px; padding: 0 14px; }
  body.legal-page .legal-back span { display: none; }
  body.legal-page .settings-shell.legal-shell { min-height: calc(100dvh - 56px); padding: 20px 20px 48px; }
  body.legal-page .legal-shell .settings-title h1 { font-size: 26px; }
  body.legal-page .legal-document { margin-top: 0; border-top: 0; }
  body.legal-page .legal-section {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 24px 0 8px;
  }
  body.legal-page .legal-section-heading { display: flex; align-items: baseline; gap: 10px; }
  body.legal-page .legal-section-heading span { margin: 0; }
  body.legal-page .legal-section-body { width: 100%; }
  body.legal-page .legal-section-intro { margin-bottom: 18px; font-size: 14px; line-height: 1.65; }
  body.legal-page .legal-alpha-list li { grid-template-columns: 18px minmax(0, 1fr); font-size: 13px; }
}
