/* Together's shared-surface language. Keep this last: component structure and
   interaction stay in their owning stylesheets; these are the visual primitives. */
:root {
  --ink: #274734;
  /* The concept's small copy is slightly darker for readable live content. */
  --muted: #596b59;
  --accent: #294833;
  --accent-hover: #203b2a;
  --accent-soft: #edf1e3;
  --lime: #e3edb6;
  --lime-hover: #d9e6a5;
  --lilac: #e5d9fa;
  --lilac-soft: #f1ebf9;
  --lilac-ink: #574467;
  --coral: #f6c7b5;
  --coral-soft: #fae6dc;
  --canvas: #f7f8ef;
  --paper: #fffef8;
  --surface: #f7f8ef;
  --conversation: #f7f8ef;
  --desk: #e9eddf;
  --line: #dfe5d5;
  --frame-line: #d8dfcd;
  --control-line: #b5c1aa;
  --well: #edf1e3;
  --on-solid: #f4f7e8;
  --radius: 21px;
  --shadow: 0 16px 44px #28402212;
  font-family: "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { transition-duration: 150ms; transition-timing-function: cubic-bezier(.2,.7,.2,1); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-color: var(--accent); outline-width: 2px;
}
::selection { background: var(--lilac); color: var(--ink); }
h1, h2, h3 { font-weight: 650; letter-spacing: -.035em; }
.muted, .small.muted { color: var(--muted); }
.eyebrow { font-size: 10px; letter-spacing: .065em; font-weight: 650; }

/* Controls have a small, rounded visual surface and a comfortable hit area. */
.btn { border-radius: 14px; min-height: 44px; padding: 11px 16px; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--on-solid); }
.btn.secondary { background: var(--lime); color: var(--ink); }
.btn.secondary:hover { background: var(--lime-hover); }
.btn.outline { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.outline:hover { background: var(--well); }
.btn.small { border-radius: 12px; min-height: 44px; padding: 9px 12px; font-size: 12px; }
.icon-btn { border-radius: 13px; color: var(--muted); }
.icon-btn:hover { background: var(--well); color: var(--ink); }
.icon-btn:active:not(:disabled) { background: var(--lilac-soft); }
.pill { background: var(--well); color: var(--muted); border-radius: 8px; padding: 4px 7px; font-weight: 600; }
.field { gap: 7px; font-weight: 600; }
.field input, .field textarea, .field select { border-color: var(--line); background: var(--paper); border-radius: 14px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #839676; box-shadow: 0 0 0 3px #2948330a; }
.notice { background: var(--well); border-radius: 15px; }
.notice.warning { background: #f7ecd4; }
.menu-item { border-radius: 13px; padding: 12px; gap: 11px; font-size: 14px; font-weight: 500; }
.menu-item:hover { background: var(--well); }
.menu-item.danger:hover { background: #faeae2; }

/* Portraits use the same illustrated assets as the concept, across the app. */
.avatar { border-radius: 14px; background: var(--lime); color: var(--ink); font-weight: 650; }
.avatar.tone1 { background: var(--lilac); color: var(--lilac-ink); }
.avatar.tone2 { background: #e1ead6; color: var(--ink); }
.avatar.tone3 { background: var(--coral); color: #714d40; }
.profile-button { border-radius: 16px; }
.profile-button .avatar { width: 38px; height: 40px; flex-basis: 38px; border-radius: 14px; background: var(--lilac); }
.profile-photo-preview .avatar { border-radius: 29px; }
.sidebar-bottom .avatar { border-radius: 12px; background: var(--lilac); color: var(--ink); }
.member-check .avatar, .moment-member-row > .avatar, .balance-row .avatar { border-radius: 12px; }
.member-handle, .account-label { color: var(--muted); }
.role-badge { border-radius: 6px; font-size: 9px; font-weight: 650; padding: 3px 5px; box-shadow: inset 0 1px 0 #fff9; }
.role-creator { color: #635126; border-color: #d5c898; background: linear-gradient(115deg,#eee8c8,#fffbea 48%,#e9dfb0); }
.role-moderator { color: var(--lilac-ink); border-color: #cfc0df; background: linear-gradient(115deg,#e8ddf3,#faf6ff 48%,#e0d1ef); }

/* Header remains a single compact row, with the title free to truncate. */
#chat-header { min-height: 68px; padding: 11px 12px 10px 4px; gap: 7px; background: var(--canvas); border-bottom-color: var(--line); }
#chat-header > .back { width: 29px; flex-basis: 29px; height: 44px; min-height: 44px; border-radius: 12px; color: var(--muted); }
#chat-header > .back svg { width: 18px; height: 18px; }
#chat-header > .avatar { width: 34px; height: 35px; flex-basis: 34px; border-radius: 13px 13px 9px 13px; font-size: 12px; background: var(--lime); color: var(--ink); }
#chat-header .group-heading { padding: 1px 0; min-width: 0; }
#chat-header h1 { font-size: 18px; line-height: 1.3; letter-spacing: -.045em; font-weight: 650; }
#chat-header .subtitle { font-size: 10px; line-height: 1.3; margin-top: 2px; color: var(--muted); }
#chat-header .group-add { position: relative; isolation: isolate; width: 40px; flex-basis: 40px; height: 44px; min-height: 44px; padding: 0; border-radius: 14px; background: transparent; color: var(--ink); }
#chat-header .group-add::before { content: ''; position: absolute; inset: 4px 2px; z-index: -1; border-radius: 13px; background: var(--lilac); transition: background 150ms ease; }
#chat-header .group-add:hover { background: transparent; color: var(--ink); }
#chat-header .group-add:hover::before { background: #dbcbf3; }
#chat-header .group-add svg { width: 19px; height: 19px; }
#chat-header > .icon-btn:last-child { width: 31px; flex-basis: 31px; padding: 4px; min-height: 44px; color: var(--muted); }
.sidekick-fan { width: 44px; flex-basis: 44px; border-radius: 13px; }
.sidekick-playing-card { left: 11px; top: 8px; width: 25px; height: 29px; border-radius: 8px; border: 2px solid var(--canvas); font-size: 15px; background: var(--lime); color: var(--ink); box-shadow: 0 1px 3px #27473414; }
.sidekick-playing-card:nth-child(1) { transform: translateX(-7px) rotate(-16deg); }
.sidekick-playing-card:nth-child(2) { transform: rotate(-1deg); }
.sidekick-playing-card:nth-child(3) { transform: translateX(7px) rotate(12deg); }
.sidekick-fan[data-count="0"], .sidekick-fan[data-count="1"] { width: 35px; flex-basis: 35px; }
.sidekick-fan[data-count="0"] .sidekick-playing-card, .sidekick-fan[data-count="1"] .sidekick-playing-card { left: 5px; }
.card-trip, .card-summarizer { background: var(--lilac); }
.card-roast { background: var(--coral); }
.card-tambola { background: #efe4ba; font-size: 13px; }
.card-factcheck { background: #d9e9d4; }
.card-empty { background: var(--well); border-color: var(--control-line); }
.fan-overflow { background: var(--accent); color: var(--on-solid); border-color: var(--canvas); font-size: 9px; border-radius: 6px; }

/* Conversation, with a clear side for each person. Compact surfaces retain
   Together’s soft palette; message actions keep their own 44px touch target. */
.main, .chat-stage { background: var(--canvas); }
.messages-scroll { padding: 18px 26px 20px; scrollbar-color: #cad5bf transparent; }
.conversation-list .message { display: flex; flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 7px; width: 100%; max-width: 820px; margin: 0 auto 4px; padding: 0; }
.conversation-list .message.message-cluster-start { margin-top: 16px; }
.conversation-list .message.own { flex-direction: row-reverse; margin-inline: auto; }
.conversation-list .message > .avatar { display: flex; visibility: hidden; align-items: center; justify-content: center; align-self: flex-end; width: 30px; height: 30px; flex: 0 0 30px; margin: 0 0 2px; border-radius: 11px; font-size: 10px; transform: none; }
.conversation-list .message:nth-of-type(even) > .avatar { transform: none; }
.conversation-list .message.message-cluster-end > .avatar, .conversation-list .message.bot-message > .avatar, .conversation-list .message.pending-message > .avatar { visibility: visible; }
.conversation-list .message .message-content { flex: 0 1 auto; min-width: 0; width: fit-content; max-width: min(70%,560px); padding: 0; border-radius: 0; background: transparent; }
.conversation-list .message.own .message-content { max-width: min(70%,560px); background: transparent; }
.conversation-list .message .message-header { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; min-height: 0; gap: 4px 6px; margin: 0 0 4px; padding: 0 4px; color: var(--muted); line-height: 1.4; }
.conversation-list .message-header strong { min-width: 0; max-width: 100%; color: var(--ink); font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.conversation-list .message-header .message-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-list .message.own .message-header, .conversation-list .message.grouped .message-header { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.conversation-list .message .message-kind { flex: 0 0 auto; font-size: 9px; font-weight: 500; color: var(--muted); }
.conversation-list .message .bubble { padding: 9px 11px 6px; border: 1px solid #e0e5d8; border-radius: 17px 17px 17px 6px; background: var(--paper); box-shadow: 0 1px 1px #27473404; font-size: 16px; line-height: 1.43; letter-spacing: -.012em; }
.conversation-list .message.own .bubble { background: #eee6fa; border-color: #e1d6ed; border-radius: 17px 17px 6px 17px; }
.conversation-list .message.bot-message .bubble { background: #f1f5e7; border-color: #dfe7d1; }
.conversation-list .message.grouped .bubble { border-top-left-radius: 7px; }
.conversation-list .message.own.grouped .bubble { border-top-left-radius: 17px; border-top-right-radius: 7px; }
.conversation-list .message .bubble::after { content: none; }
.conversation-list .message .message-text { display: block; line-height: 1.43; }
.conversation-list .message .message-text + .message-text { margin-top: 7px; }
.conversation-list .message .message-text.muted { font-size: 14px; color: var(--muted); }
.conversation-list .message .message-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-height: 12px; margin: 3px 0 0; padding: 0; color: #75816f; }
.conversation-list .message .message-time { display: inline-flex; float: none; flex: 0 0 auto; gap: 4px; margin: 0; min-height: 0; font-size: 10px; font-weight: 400; line-height: 1.3; color: #6b7966; letter-spacing: 0; white-space: nowrap; }
.conversation-list .message.own .message-time { color: #6f627a; }
.conversation-list .message .message-context { position: static; transform: none; align-self: center; width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; margin: 0; border-radius: 13px; color: #73816c; opacity: 1; }
.conversation-list .message .message-context:hover, .conversation-list .message .message-context:focus-visible { opacity: 1; background: var(--well); color: var(--ink); }
.conversation-list .message .message-context svg { width: 15px; height: 15px; }
.reply-quote { background: #edf1e38c; color: var(--muted); border-left: 2px solid #b5c598; border-radius: 3px 10px 10px 3px; padding: 7px 9px; }
.reply-quote strong { color: var(--ink); font-weight: 600; }
.conversation-list .message .reply-quote { margin: 0 0 7px; max-width: 100%; font-size: 12px; line-height: 1.4; border-radius: 4px 9px 9px 4px; }
.conversation-list .own .reply-quote { background: #fffef87a; border-left-color: #b5a3cd; }
.conversation-list .message-photo { width: fit-content; max-width: 100%; padding: 0; background: transparent; border-radius: 12px; margin: 0 0 7px; overflow: hidden; }
.conversation-list .own .message-photo { background: transparent; }
.conversation-list .message.has-photo .bubble { padding: 5px 5px 6px; }
.conversation-list .message.has-photo .bubble > .message-text, .conversation-list .message.has-photo .bubble > .message-meta, .conversation-list .message.has-photo .bubble > .message-recipient { margin-inline: 6px; }
.conversation-list .message.has-photo .bubble > .reply-quote { margin: 4px 5px 8px; }
.conversation-list .message-photo .message-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 12px; margin: 0; background: var(--well); }
.conversation-list .message .message-image:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.conversation-list .message .voice-player { min-width: 0; width: 280px; max-width: 100%; }
.voice-play { background: var(--lilac); color: var(--ink); border-radius: 15px; }
.own .voice-play { background: var(--paper); color: var(--ink); }
.voice-play:hover { background: #ded0ef; }
.conversation-list .message .bot-avatar { background: var(--lilac); color: var(--ink); font-size: 17px; }
.conversation-list .message .message-delivery { justify-content: flex-end; text-align: right; padding: 3px 2px 0; color: var(--muted); }
.conversation-list .message .message-delivery.failed { color: var(--danger); }
.conversation-list .day-divider { max-width: 820px; margin: 10px auto 16px; gap: 12px; font-size: 10px; color: var(--muted); }
.conversation-list .day-divider::before, .conversation-list .day-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.conversation-list .system-message { margin: 14px auto; padding-inline: 12px; color: var(--muted); }
.sidekick-result-body { background: var(--paper); border-color: #e3daed; border-radius: 8px 19px 19px; box-shadow: 0 2px 0 #27473404; }
.conversation-list .message .reaction-strip { justify-content: flex-start; gap: 3px; margin: -5px 2px -6px; }
.conversation-list .message.own .reaction-strip { justify-content: flex-end; }
.conversation-list .reaction-chip { display: inline-flex; align-items: center; justify-content: center; position: relative; isolation: isolate; min-height: 44px; min-width: 44px; padding: 8px 9px; gap: 4px; border: 0; background: transparent; color: var(--ink); box-shadow: none; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.conversation-list .reaction-chip::before { content: ''; position: absolute; inset: 8px 1px; z-index: -1; border: 1px solid #dce3d2; background: var(--paper); border-radius: 999px; }
.conversation-list .reaction-chip.is-mine, .conversation-list .reaction-chip:hover { background: transparent; color: var(--ink); }
.conversation-list .reaction-chip.is-mine::before { background: #e7edd4; border-color: #c8d6b3; }
.conversation-list .reaction-chip:hover::before { border-color: #aebea0; }
.conversation-list .reaction-people { display: inline-flex; align-items: center; padding-left: 0; }
.conversation-list .reaction-people > .avatar { display: inline-flex; width: 17px; height: 17px; flex: 0 0 17px; border-radius: 6px; border: 1px solid var(--paper); font-size: 7px; margin: 0; }
.conversation-list .reaction-people > .avatar + .avatar { margin-left: -5px; }
.conversation-list .reaction-count { font-size: 10px; font-weight: 600; color: var(--muted); }
.reaction-picker { background: var(--well); border-radius: 18px; }
.reaction-choice { border-radius: 13px; }
.reaction-choice:hover, .reaction-choice[aria-pressed=true] { background: var(--lilac); transform: none; }
.message-preview { color: var(--muted); background: var(--well); border-radius: 14px; }
.jump-latest { min-height: 44px; border-radius: 15px; background: var(--paper); border-color: var(--line); color: var(--ink); box-shadow: 0 4px 16px #27473412; font-weight: 600; }
.jump-latest:hover { background: var(--well); }

/* The composer and suggestions stay in normal flow through keyboard changes. */
.composer-wrap { background: var(--canvas); border-top-color: var(--line); padding: 10px 24px calc(13px + env(safe-area-inset-bottom)); }
.composer { border-color: var(--line); background: var(--paper); border-radius: 22px; padding: 4px; gap: 2px; box-shadow: 0 3px 0 #203e2505; }
.composer:focus-within { border-color: #adbfa0; box-shadow: 0 0 0 2px #29483306; }
.composer textarea { font-size: 16px; padding: 10px 4px; min-height: 44px; line-height: 1.45; letter-spacing: -.015em; }
.composer textarea::placeholder { color: var(--muted); }
.composer .icon-btn { border-radius: 15px; color: var(--muted); width: 44px; height: 44px; flex-basis: 44px; }
.composer .icon-btn:hover { background: var(--well); color: var(--ink); }
.composer .send-btn { position: relative; isolation: isolate; color: var(--ink); background: transparent; box-shadow: none; }
.composer .send-btn::before { content: ''; position: absolute; inset: 3px; z-index: -1; border-radius: 15px; background: var(--lilac); transition: background 150ms ease; }
.composer .send-btn:hover { background: transparent; color: var(--ink); }
.composer .send-btn:hover::before { background: #dac9ef; }
.composer .send-btn svg { width: 19px; height: 19px; }
.composer-context { background: var(--lilac); border: 0; border-radius: 12px; padding: 8px 11px; margin-bottom: 7px; }
.composer-context .grow p { color: var(--lilac-ink); }
.attachment-preview { padding: 8px; }
.attachment-thumb { border-radius: 11px; background: var(--paper); }
.gm-mention-menu { background: var(--paper); border-color: var(--line); border-radius: 16px; box-shadow: 0 5px 20px #2747340d; padding: 5px; }
.gm-mention-option { border-radius: 11px; padding: 9px 11px; min-height: 48px; }
.gm-mention-option:hover, .gm-mention-option[aria-selected=true] { background: var(--well); }
.gm-mention-avatar { width: 32px; height: 35px; flex-basis: 32px; border-radius: 11px; background: var(--lilac); color: var(--ink); }
.gm-mention-name { font-weight: 600; }
.gm-mention-handle, .gm-mention-tagline { color: var(--muted); }
.gm-mention-kind { font-weight: 600; background: var(--lilac-soft); color: var(--lilac-ink); border-radius: 6px; }
.gm-mention, .own .gm-mention { background: #dce7b0; color: var(--ink); font-weight: 600; }
.gm-mention-self, .own .gm-mention-self { background: var(--lilac); color: var(--lilac-ink); }

/* Sheets share the same materials. Anchored panel geometry is owned by app.js. */
.dialog-overlay { background: #2747342b; }
.dialog { background: var(--paper); border-color: var(--line); border-radius: 23px; box-shadow: 0 16px 45px #253c3226, 0 2px 5px #27473406; }
.dialog-head { padding: 19px 20px 10px; gap: 10px; }
.dialog-head h2 { font-size: 21px; letter-spacing: -.035em; font-weight: 600; }
.dialog-head .icon-btn { width: 44px; height: 44px; min-height: 44px; flex-basis: 44px; background: var(--well); color: var(--muted); border-radius: 14px; }
.dialog-head .icon-btn:hover { background: var(--lilac-soft); color: var(--ink); }
.dialog-body { padding: 7px 21px 22px; }
/* A photo fits the available viewing area even while a keyboard is closing. */
.dialog.image-dialog { height: min(820px,calc(var(--app-height,100dvh) - 32px - env(safe-area-inset-top))); }
.image-dialog .dialog-head { flex: 0 0 auto; }
.image-dialog .dialog-head h2 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.image-dialog .dialog-body { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 0; overflow: hidden; padding: 7px 16px 20px; }
.image-dialog .dialog-body img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 13px; }
.dialog p.intro { color: var(--muted); line-height: 1.5; }
.dialog-overlay.is-popover { position: fixed; display: block; padding: 0; background: #27473420; }
.dialog.is-popover { position: absolute; margin: 0; height: auto; border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 16px 45px #253c3229, 0 1px 4px #2747340a; animation: together-popover-in 150ms cubic-bezier(.2,.7,.2,1); }
.dialog.is-popover::before { display: none; }
@keyframes together-popover-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
.dialog.is-popover .dialog-head { padding: 10px 12px 5px 17px; gap: 9px; }
.dialog.is-popover .dialog-head h2 { font-size: 17px; letter-spacing: -.03em; font-weight: 600; }
.dialog.is-popover .dialog-head .icon-btn { position: relative; isolation: isolate; width: 44px; height: 44px; min-height: 44px; flex-basis: 44px; background: transparent; }
.dialog.is-popover .dialog-head .icon-btn::before { content: ''; position: absolute; inset: 4px; border-radius: 12px; background: var(--well); z-index: -1; }
.dialog.is-popover .dialog-head .icon-btn:hover::before { background: var(--lilac-soft); }
.dialog.is-popover .dialog-body { padding: 3px 12px 13px; }
.add-choices { gap: 3px; }
.add-choice { min-height: 70px; gap: 11px; padding: 11px 8px; border: 0; border-radius: 13px; background: transparent; }
.add-choice:hover { border-color: transparent; background: var(--well); }
.add-choice strong { font-size: 14px; font-weight: 600; }
.choice-icon { width: 39px; height: 41px; flex-basis: 39px; border-radius: 13px; background: var(--lime); color: var(--ink); }
.add-choice:nth-child(2) .choice-icon { background: var(--lilac); color: var(--ink); }
.choice-description { font-size: 11px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.add-choice > svg { color: var(--muted); }
.sidekick-shelf { gap: 4px; }
.sidekick-shelf-card { padding: 11px 8px; gap: 11px; border: 0; border-radius: 13px; min-height: 70px; background: transparent; color: var(--ink); }
.sidekick-shelf-card:hover { background: var(--well); }
.sidekick-shelf-card > .grow { gap: 3px; }
.sidekick-shelf-card strong { font-size: 14px; font-weight: 600; }
.shelf-headline { color: var(--muted); font-size: 11px; line-height: 1.4; }
.shelf-glyph { width: 39px; height: 41px; flex-basis: 39px; border-radius: 13px; background: var(--lime); color: var(--ink); font-size: 22px; }
.sidekick-shelf-card[data-sidekick=trip] .shelf-glyph, .sidekick-shelf-card[data-sidekick=summarizer] .shelf-glyph { background: var(--lilac); }
.sidekick-shelf-card[data-sidekick=roast] .shelf-glyph { background: var(--coral); }
.sidekick-shelf-card[data-sidekick=tambola] .shelf-glyph { background: #efe4ba; }
.sidekick-shelf-card[data-sidekick=factcheck] .shelf-glyph { background: #d9e9d4; }
.sidekick-shelf > .btn { margin-top: 8px; background: var(--well); border-color: transparent; border-radius: 13px; font-size: 12px; }
.sidekick-drawer .dialog-head h2 { font-size: 20px; }
.sidekick-drawer .dialog-body { padding-inline: 13px; }
.hub-card.skill-card { background: var(--paper); border-color: var(--line); border-radius: 18px; padding: 15px; gap: 11px; }
.hub-card.is-installed { background: var(--well); }
.hub-card-head .bot-icon { border-radius: 13px; background: var(--lilac); color: var(--ink); }
.hub-card h3 { font-size: 16px; font-weight: 600; }
.hub-label { letter-spacing: .075em; font-weight: 650; }
.hub-actions .btn, .hub-actions .icon-btn { min-height: 44px; }
.skill-description, .hub-intro { color: var(--muted); }
.hub-guide { background: var(--lilac-soft); border-radius: 17px; }
.summary-row-list, .expense-card, .trip-card { border-color: var(--line); background: var(--paper); border-radius: 19px; }
.summary-row-status { background: var(--lilac-soft); border-radius: 7px; }
.summary-pane { background: var(--canvas); }
.summary-discuss:active:not(:disabled) { background: var(--lime); }

/* Existing home and sidebar header controls. Card content is defined below. */
.moments-home, .moments-home .inbox-head { background: var(--canvas); }
.moments-home .inbox-head { padding: 19px 24px 10px; }
.inbox-brand-row { gap: 10px; }
.inbox-brand-row .brand { gap: 4px; }
.inbox-brand-row .brand-symbol { width: 30px; height: 30px; flex-basis: 30px; }
.inbox-brand-row .brand-wordmark { width: 110px; height: 28px; flex-basis: 110px; }
.inbox-brand-row .inbox-actions { flex-shrink: 0; gap: 4px; }
.inbox-brand-row .profile-button { width: 44px; height: 44px; border-radius: 15px; }
.inbox-brand-row .profile-button .avatar { width: 36px; height: 38px; flex-basis: 36px; border-radius: 13px; }
.inbox-brand-row .inbox-actions .inbox-add { width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; background: var(--lilac); }
.moments-home .inbox-title-row { margin-top: 13px; }
.inbox-title-row h1, .inbox-home-title { font-weight: 650; letter-spacing: -.045em; }
.moments-home .inbox-title-row h1 { font-size: 23px; }
.is-sidebar .inbox-brand-row .brand-symbol { width: 26px; height: 26px; flex-basis: 26px; }
.is-sidebar .inbox-brand-row .brand-wordmark { width: 94px; height: 25px; flex-basis: 94px; }
.is-sidebar .inbox-brand-row { gap: 6px; }
.is-sidebar .inbox-title-row { margin-top: 13px; }
.is-sidebar .inbox-home-title { font-size: 22px; }
.inbox-add, .moments-home .inbox-add { background: var(--lilac); color: var(--ink); border-radius: 14px; font-weight: 600; }
.inbox-add:hover, .moments-home .inbox-add:hover { background: #dac9ef; }
.inbox-actions .icon-btn { border-radius: 13px; }
.moment-search, .sidebar-search { background: var(--paper); border-color: var(--line); border-radius: 15px; color: var(--ink); }
.moment-search::placeholder, .sidebar-search::placeholder { color: var(--muted); }
.moment-starter { border-color: var(--line); border-radius: 12px; background: var(--paper); }
.moment-welcome { background: var(--paper); border-color: var(--line); border-radius: 23px; }
.badge-shelf { background: linear-gradient(140deg,#edf1d8,var(--paper) 76%); border-color: var(--line); border-radius: 19px; box-shadow: 0 3px 0 #27473404; }
.badge-collection-link { border-radius: 12px; background: var(--paper); border-color: var(--line); font-weight: 600; }
.badge-eyebrow { color: var(--muted); font-weight: 650; letter-spacing: 1px; }
.badge-shelf-heading h3 { font-size: 18px; font-weight: 600; }
.badge-progress { background: #fffef8ad; border-color: var(--line); border-radius: 12px; }
.collectible strong { font-weight: 600; }
.badge-detail h3 { font-weight: 650; }
.badge-story { color: var(--ink); }
.auth-box .phone-primary { background: var(--lime); color: var(--ink); border-radius: 16px; }
.auth-box .phone-primary:hover:not(:disabled) { background: var(--lime-hover); }
.phone-auth-form input:focus { border-color: #91a77d; box-shadow: 0 0 0 3px #29483308; }
.entry-title { font-weight: 650; }
#toast { border-radius: 16px; background: var(--accent); color: var(--on-solid); box-shadow: 0 7px 24px #27473422; }

@media (max-width:680px), (max-width:900px) and (pointer:coarse) {
  #chat-header { padding: calc(9px + env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) 9px max(3px,env(safe-area-inset-left)); gap: 5px; }
  #chat-header h1 { font-size: 18px; }
  .messages-scroll { padding: 13px 12px 16px; }
  .conversation-list .message { gap: 6px; }
  .conversation-list .message .message-content, .conversation-list .message.own .message-content { max-width: 85%; }
  .conversation-list .message > .avatar { width: 28px; height: 28px; flex-basis: 28px; border-radius: 10px; }
  .conversation-list .message .bubble { font-size: 16px; padding: 8px 10px 6px; }
  .conversation-list .message.has-photo .bubble { padding: 4px 4px 6px; }
  .conversation-list .message-photo .message-image { max-height: 360px; }
  .composer-wrap { padding: 8px max(11px,env(safe-area-inset-right)) calc(11px + env(safe-area-inset-bottom)) max(11px,env(safe-area-inset-left)); }
  .composer { border-radius: 22px; padding: 3px; gap: 1px; }
  .composer textarea { font-size: 16px; min-height: 44px; padding: 10px 3px; }
  .keyboard-open .composer-wrap { padding-bottom: 7px; }
  .field input, .field textarea, .field select, .sidebar-search { font-size: 16px; }
  .dialog:not(.is-popover):not(.sidekick-drawer) { border-radius: 25px 25px 0 0; }
  .dialog:not(.is-popover) .dialog-body { padding-bottom: calc(23px + env(safe-area-inset-bottom)); }
  .dialog::before { background: #cbd4bf; }
  .dialog.is-popover .dialog-body { padding-bottom: 13px; }
  .moments-home .inbox-head { padding: calc(12px + env(safe-area-inset-top)) 17px 9px; }
  .moments-home .inbox-title-row { margin-top: 11px; }
  .moments-home .inbox-title-row h1 { font-size: 23px; }
}
@media (max-width:360px) {
  .moments-home .inbox-head { padding-inline: 13px; }
  .moments-home .inbox-brand-row { gap: 6px; }
  .moments-home .inbox-brand-row .brand-symbol { width: 28px; height: 28px; flex-basis: 28px; }
  .moments-home .inbox-brand-row .brand-wordmark { width: 100px; height: 26px; flex-basis: 100px; }
  #chat-header { gap: 3px; }
  #chat-header h1 { font-size: 16px; }
  #chat-header > .avatar { width: 31px; height: 33px; flex-basis: 31px; border-radius: 12px 12px 8px 12px; }
  #chat-header .group-add { width: 37px; flex-basis: 37px; }
  #chat-header > .icon-btn:last-child { width: 28px; flex-basis: 28px; }
  .sidekick-fan { width: 40px; flex-basis: 40px; }
  .sidekick-playing-card { left: 9px; }
  .messages-scroll { padding-inline: 9px; }
  .conversation-list .message > .avatar { width: 25px; height: 25px; flex-basis: 25px; border-radius: 9px; }
  .conversation-list .message { gap: 5px; }
  .dialog.is-popover .dialog-head h2 { font-size: 16px; }
}
@media (prefers-reduced-motion:reduce) {
  .group-add::before, .send-btn::before, .moment-card, .icon-btn, .btn { transition: none; }
  .dialog, .dialog.is-popover, .sidekick-drawer, .dialog-overlay, .gm-mention-menu, .message, .composer .send-btn { animation: none; }
}
@media (forced-colors:active) {
  .dialog, .composer, .bubble, .moment-card, .sidekick-shelf-card, .add-choice, .gm-mention-menu, .summary-row-list, .badge-shelf, .role-badge { border: 1px solid CanvasText; box-shadow: none; }
  .dialog-head .icon-btn, .reaction-chip, #chat-header .group-add, .composer .send-btn { color: ButtonText; }
  .reaction-chip::before, #chat-header .group-add::before, .composer .send-btn::before, .dialog.is-popover .dialog-head .icon-btn::before { background: ButtonFace; border: 1px solid ButtonText; }
  .reaction-chip.is-mine::before { border: 2px solid Highlight; }
  .btn, .sidekick-playing-card, .pill, .moment-state, .fan-overflow { border: 1px solid ButtonText; }
  button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: Highlight; }
}

/* People discovery uses the existing small sheets and touch targets. */
.people-result{padding:16px;border:1px solid var(--line,#dce2d4);border-radius:22px;background:var(--surface,#fffef8)}
.people-identity{min-width:0}.people-identity .grow{min-width:0}.people-identity strong,.people-identity p{overflow-wrap:anywhere;margin:2px 0}
.people-settings{border:1px solid var(--line,#dce2d4);border-radius:22px;padding:0 16px}
.people-toggle{display:flex;align-items:center;gap:14px;padding:16px 0;cursor:pointer}.people-toggle+.people-toggle{border-top:1px solid var(--line,#dce2d4)}
.people-toggle strong,.people-toggle span.small{display:block}.people-toggle span.small{margin-top:5px;line-height:1.4}
.people-toggle input[type=checkbox]{width:24px;height:24px;min-width:24px;accent-color:#294e3b;margin:0;cursor:pointer}
.people-requests-inbox{white-space:nowrap;font-size:.78rem;padding:8px 12px!important;min-height:36px!important}
.inbox-title-row{gap:10px}.moment-member-row{flex-wrap:wrap}.member-identity{min-width:100px}

/* Conversation windows: quiet surfaces, paired portraits and real recent updates. */
.moments-home { --home-paper:#f6f6f0; background:var(--home-paper); }
.moments-home .inbox-head { padding:24px 24px 18px; background:var(--home-paper); border:0; }
.moments-home .inbox-brand-row { gap:8px; }
.moments-home .inbox-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.moments-home .inbox-identity .brand { gap:0; flex:none; }
.moments-home .inbox-identity .brand-symbol { display:none; }
.moments-home .inbox-identity .brand-wordmark { width:112px; height:34px; flex-basis:112px; }
.moments-home .inbox-title-row { margin:0; padding-left:12px; border-left:1px solid #cfd7cb; min-width:0; }
.moments-home .inbox-title-row h1 { margin:0; font-size:14px; font-weight:550; letter-spacing:-.025em; line-height:1.2; white-space:nowrap; }
.moments-home .inbox-actions { gap:2px; flex-shrink:0; }
.moments-home .inbox-actions .inbox-add { background:#183f32; color:#fff; border-radius:15px; }
.moments-home .people-requests-inbox { margin-top:8px; }
.moments-home .moment-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:max-content; align-content:start; align-items:stretch; gap:14px; padding:6px 24px 26px; background:var(--home-paper); }
.moments-home .moment-empty { grid-column:1/-1; }
.moments-home .moment-card { --moment-fill:#fff; position:relative; display:flex; flex-direction:column; align-items:stretch; min-width:0; min-height:220px; margin:0; padding:12px 13px 11px; border:1px solid transparent; border-radius:25px; background:var(--moment-fill); color:#193f32; box-shadow:none; text-align:left; transition:background 160ms ease,border-color 160ms ease; }
.moments-home .moment-card[hidden],.moments-home .moment-card [hidden] { display:none!important; }
.moments-home .moment-card.unread { --moment-fill:#e5efb9; }
.moments-home .moment-card.is-completed { --moment-fill:transparent; border-color:#e1e5da; color:#657366; }
.moments-home .moment-emblem { position:relative; width:30px; height:28px; flex:none; display:grid; place-items:center; margin:0 0 6px; isolation:isolate; }
.moments-home .moment-emblem-emoji { display:block; font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif; font-size:24px; line-height:28px; transform-origin:50% 85%; animation:moment-icon-sway 6s ease-in-out infinite; animation-play-state:paused; }
.moments-home [data-kind=palm] .moment-emblem-emoji { animation-name:moment-palm-sway; animation-duration:7s; }
.moments-home [data-kind=balloon] .moment-emblem-emoji { animation-name:moment-balloon-float; animation-duration:5s; }
.moments-home [data-kind=disco] .moment-emblem-emoji { animation-name:moment-disco-turn; animation-duration:9s; transform-origin:center; }
.moments-home [data-kind=disco]::after { content:''; position:absolute; inset:0; border-radius:50%; background:conic-gradient(from 0deg,transparent 0 20%,#b5aff570 28%,transparent 36% 52%,#abdce970 62%,transparent 72% 85%,#e1b5da70 94%,transparent); opacity:.55; filter:blur(3px); z-index:-1; animation:moment-party-light 10s linear infinite paused; }
.moments-home [data-kind=ride] .moment-emblem-emoji { animation-name:moment-ride; animation-duration:6s; }
.moments-home [data-kind=play] .moment-emblem-emoji { animation-name:moment-play; animation-duration:6s; }
.moments-home [data-kind=glow] .moment-emblem-emoji,.moments-home [data-kind=steam] .moment-emblem-emoji { animation-name:moment-glow; animation-duration:5s; }
.moments-home .moment-card[data-motion=running] .moment-emblem-emoji,.moments-home .moment-card[data-motion=running] [data-kind=disco]::after { animation-play-state:running; }
.moments-home .moment-heading { display:block; min-width:0; margin:0 0 8px; }
.moments-home .moment-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; min-width:0; min-height:40px; max-height:40px; margin:0; overflow:hidden; overflow-wrap:anywhere; color:inherit; font-size:17px; font-weight:650; line-height:1.18; letter-spacing:-.045em; }
.moments-home .moment-scene { display:block; position:relative; min-width:0; height:86px; flex:0 0 86px; margin:0 0 8px; overflow:hidden; contain:paint; }
.moments-home .moment-conversation-track { display:flex; flex-direction:column; gap:6px; }
.moments-home .moment-contribution { display:flex; align-items:center; gap:8px; height:40px; flex:0 0 40px; min-width:0; }
.moments-home .moment-card .moment-face { display:grid; place-items:center; flex:0 0 29px; width:29px; height:29px; margin:0; border:1.5px solid #fff; border-radius:50%; overflow:hidden; background:#eef1e7; color:var(--ink); font-size:11px; }
.moments-home .moment-card .moment-face img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.moments-home .moment-card .moment-helper { font-size:23px; }
.moments-home .moment-speech { position:relative; display:flex; align-items:center; flex:1; min-width:0; max-height:40px; padding:4px 8px; border-radius:14px; background:#f0f2e9; color:#244737; }
.moments-home .moment-speech::before { content:''; position:absolute; left:-4px; top:13px; width:8px; height:8px; background:inherit; transform:rotate(45deg); border-radius:2px; }
.moments-home .unread .moment-speech { background:#f8faee; }
.moments-home .moment-speech-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; font-size:13px; line-height:16px; font-weight:400; }
.moments-home .moment-first-hello { color:#657366; font-size:13px; padding:10px 0; }
.moments-home .moment-footer { display:flex; align-items:center; gap:5px; min-width:0; min-height:22px; margin-top:auto; color:#6a7668; font-size:11px; line-height:1.3; }
.moments-home .moment-when { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.moments-home .moment-meta { display:flex; margin-left:auto; }
.moments-home .moment-state { font-size:10px; white-space:nowrap; }
.moments-home .moment-unread { display:grid; place-items:center; flex:none; min-width:22px; height:22px; padding:2px 5px; border-radius:7px; background:#193f32; color:#fff; font-size:11px; font-weight:650; }
.moments-home .is-completed .moment-speech { color:#657366; }
.moments-home .is-completed .moment-emblem { filter:saturate(.55); }
.moments-home .moment-card:focus-visible { outline:3px solid #5c784e; outline-offset:3px; }
@keyframes moment-palm-sway { 0%,100%{transform:rotate(-5deg)}50%{transform:rotate(6deg)} }
@keyframes moment-balloon-float { 0%,100%{transform:translateY(1px) rotate(-7deg)}50%{transform:translateY(-4px) rotate(5deg)} }
@keyframes moment-disco-turn { 0%,100%{transform:rotate(-8deg) scaleX(.94)}50%{transform:rotate(8deg) scaleX(1)} }
@keyframes moment-party-light { to{transform:rotate(360deg)} }
@keyframes moment-ride { 0%,100%{transform:translateX(-2px) rotate(-2deg)}50%{transform:translateX(3px) rotate(2deg)} }
@keyframes moment-play { 0%,70%,100%{transform:rotate(-4deg)}80%{transform:translateY(-3px) rotate(6deg)}90%{transform:translateY(0) rotate(-4deg)} }
@keyframes moment-glow { 0%,100%{transform:scale(.96);opacity:.8}50%{transform:scale(1.03);opacity:1} }
@keyframes moment-icon-sway { 0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)} }
@media(max-width:680px),(max-width:900px) and (pointer:coarse) {
  .moments-home .inbox-head { padding:calc(14px + env(safe-area-inset-top)) 16px 15px; }
  .moments-home .inbox-identity { gap:8px; }
  .moments-home .inbox-identity .brand-wordmark { width:90px; height:29px; flex-basis:90px; }
  .moments-home .inbox-title-row { padding-left:8px; }
  .moments-home .inbox-title-row h1 { font-size:12px; }
  .moments-home .inbox-actions { gap:0; }
  .moments-home .inbox-actions .icon-btn,.moments-home .profile-button { width:44px; min-width:44px; height:44px; flex-basis:44px; }
  .moments-home .inbox-brand-row .profile-button .avatar { border-radius:50%; width:34px; height:34px; flex-basis:34px; }
  .moments-home .moment-cards { gap:12px; padding:5px 16px 24px; }
  .moments-home .moment-card { padding:12px 12px 11px; border-radius:22px; min-height:220px; }
  .moments-home .moment-title { font-size:17px; min-height:40px; max-height:40px; }
}
@media(max-width:360px) {
  .moments-home .inbox-head { padding-inline:12px; }
  .moments-home .inbox-identity { gap:6px; }
  .moments-home .inbox-identity .brand-wordmark { width:72px; flex-basis:72px; height:26px; }
  .moments-home .inbox-title-row { padding-left:6px; }
  .moments-home .inbox-title-row h1 { font-size:11px; }
  .moments-home .moment-cards { padding-inline:12px; gap:10px; }
  .moments-home .moment-card { padding-inline:10px; }
  .moments-home .moment-title { font-size:16px; }
  .moments-home .moment-card .moment-face { width:25px; height:25px; flex-basis:25px; }
  .moments-home .moment-contribution { gap:6px; }
  .moments-home .moment-speech { padding-inline:7px; }
  .moments-home .moment-speech-text { font-size:12px; }
  .moments-home .moment-state { font-size:9px; }
}
@media(min-width:1000px) { .moments-home .moment-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:300px) { .moments-home .moment-cards { grid-template-columns:minmax(0,1fr); } }
@media(hover:hover) { .moments-home .moment-card:hover { border-color:#b9c8ad; } }
@media(prefers-reduced-motion:reduce) { .moments-home .moment-card { transition:none; }.moments-home .moment-emblem-emoji,.moments-home [data-kind=disco]::after { animation:none!important; } }
@media(forced-colors:active) { .moments-home .moment-card,.moments-home .moment-speech { border:1px solid CanvasText; }.moments-home .moment-unread { background:Highlight; color:HighlightText; } }

/* Polls belong to the conversation, with calm results and one clear action. */
.poll-card { width:290px; max-width:100%; padding:4px 0; }
.poll-eyebrow { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:11px; font-weight:600; }
.poll-question { margin:9px 0 13px; font-size:18px; line-height:1.3; letter-spacing:-.025em; overflow-wrap:anywhere; }
.poll-choices { display:grid; gap:7px; }
.poll-option { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; gap:9px; width:100%; min-height:46px; padding:11px 10px; border:1px solid #cfd9c2; border-radius:12px; background:var(--paper); text-align:left; color:var(--ink); font:inherit; font-size:14px; }
.poll-option:disabled { opacity:1; cursor:default; }
.poll-option.is-selected { border-color:#6d8957; }
.poll-fill { position:absolute; z-index:-1; left:0; top:0; bottom:0; background:#e7efce; pointer-events:none; }
.poll-option.is-selected .poll-fill { background:#dcebb7; }
.poll-choice-mark { width:17px; height:17px; border:1px solid #b4c3a4; border-radius:50%; flex:0 0 17px; display:grid; place-items:center; }
.is-selected .poll-choice-mark { background:var(--accent); border-color:var(--accent); color:var(--on-solid); }
.poll-choice-label { flex:1; min-width:0; overflow-wrap:anywhere; line-height:1.35; }
.poll-choice-total { font-size:12px; font-weight:650; font-variant-numeric:tabular-nums; }
.poll-total { margin-top:10px; font-size:11px; color:var(--muted); }
.poll-controls { display:flex; justify-content:space-between; gap:10px; }
.poll-link { min-height:44px; padding:8px 0; background:none; border:0; color:var(--accent); font:inherit; font-size:12px; font-weight:650; }
.poll-option-field { display:flex; gap:6px; align-items:center; }.poll-option-field input { flex:1; min-width:0; width:100%; border:1px solid var(--line); border-radius:13px; padding:12px; font:inherit; background:var(--paper); color:var(--ink); }.poll-option-fields { display:grid; gap:8px; }
.poll-voters section { border-bottom:1px solid var(--line); padding:8px 0; overflow-wrap:anywhere; }
@media (max-width:360px) { .poll-card { width:244px; }.poll-option { font-size:13px; } }
@media (forced-colors:active) { .poll-fill { background:Canvas; }.poll-option.is-selected { border:2px solid Highlight; }.is-selected .poll-choice-mark { background:Highlight; color:HighlightText; } }

/* Shared conversation states and deliberate follow-ups for practical Sidekicks. */
.sidekick-conversation-status{display:flex;align-items:center;gap:6px;width:fit-content;max-width:100%;margin:0 0 9px;padding:4px 8px;border-radius:8px;background:var(--well,#eef1e5);color:var(--muted,#647165);font-size:10px;font-weight:650;line-height:1.4}
.sidekick-conversation-status:before{content:'';width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:currentColor}
.sidekick-conversation-status[data-sidekick-state=clarify],.sidekick-conversation-status[data-sidekick-state=review]{background:#ece4f7;color:#68507e}
.sidekick-conversation-status[data-sidekick-state=failed]{background:#f8ebe3;color:#98534b}
.sidekick-conversation-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px 16px;margin-top:9px}
.sidekick-chat-link{min-height:44px;max-width:100%;padding:8px 0;border:0;background:transparent;color:var(--accent,#456c43);font:inherit;font-size:12px;font-weight:650;cursor:pointer;overflow-wrap:anywhere}
.sidekick-chat-link:focus-visible{outline:3px solid var(--accent,#456c43);outline-offset:3px;border-radius:5px}
.sidekick-conversation-actions .btn{max-width:100%;min-height:44px;white-space:normal}
@media(forced-colors:active){.sidekick-conversation-status{border:1px solid CanvasText}}

/* Keep scrolled-to chat actions clear of the floating Latest control. */
.messages-scroll:has(.sidekick-conversation-actions){scroll-padding-bottom:76px}
.chat-stage:has(.sidekick-conversation-actions) .jump-latest{left:auto;right:12px;transform:none}

/* Saved trip decisions hand off to Nudge without taking over the chat. */
.trip-reminder-handoff{display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap;margin-top:8px;border-top:1px solid rgba(53,70,49,.1);padding-top:5px}
.trip-reminder-handoff .trip-reminder-summary{flex-basis:100%;margin:2px 0;line-height:1.4}
.trip-reminder-handoff .error-text{flex-basis:100%;margin:3px 0;overflow-wrap:anywhere}
.trip-reminder-handoff .sidekick-chat-link{margin-left:-8px}

/* Personal context uses the existing footer, preserving the conversation scene. */
.moments-home .has-personal-preview .moment-when { flex:1; white-space:normal; overflow:visible; color:var(--ink); font-weight:600; }
.preview-entry-status { position:absolute; inset:0; display:grid; place-content:center; margin:0; color:var(--muted); font-size:14px; background:var(--paper); z-index:1; }


/* Catch-up stays inside the conversation; one compact navigation cluster. */
.chat-jumps { position:absolute; z-index:4; bottom:12px; left:50%; transform:translateX(-50%); display:flex; max-width:calc(100% - 24px); gap:6px; }
.chat-stage .chat-jumps .jump-latest { position:static; left:auto; right:auto; transform:none; min-width:0; padding:9px 12px; }
.chat-jumps.at-latest { top:10px; bottom:auto; left:auto; right:12px; transform:none; }
.conversation-list .unread-divider { display:flex; align-items:center; gap:12px; max-width:820px; margin:16px auto; color:var(--accent); font-size:11px; font-weight:600; scroll-margin-top:12px; }
.unread-divider::before, .unread-divider::after { content:''; height:1px; background:var(--line); flex:1; }
.unread-divider span { white-space:nowrap; background:var(--well); padding:5px 10px; border-radius:999px; }
.moment-notification-entry { width:100%; display:flex; align-items:center; gap:10px; }
.moment-notification-entry .small { text-align:right; }
.moment-notification-choices { display:grid; gap:8px; border:0; margin:0; padding:0; min-width:0; }
.moment-notification-choice { display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--line); border-radius:16px; background:var(--paper); cursor:pointer; }
.moment-notification-choice:has(input:checked) { background:var(--well); border-color:var(--accent); }
.moment-notification-choice > span { min-width:0; display:grid; gap:4px; }
.moment-notification-choice input { width:18px; height:18px; flex:0 0 18px; margin:0; accent-color:var(--accent); }
.moment-notification-choice strong { font-size:14px; }
.moment-notification-choice .small { line-height:1.45; }
.moment-notification-choice:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
@media (forced-colors:active) { .unread-divider::before,.unread-divider::after { background:CanvasText; } .moment-notification-choice:has(input:checked) { border:2px solid Highlight; } }
