/* Flockin — forest, electric lime and lilac; quiet surfaces for lively conversations. */
:root {
  --ink: #20382e;
  --muted: #626d61;
  --accent: #194f3c;
  --accent-hover: #103e2e;
  --accent-soft: #edf5dd;
  --lime: #d7f476;
  --lime-hover: #c8e863;
  --lilac: #d8c9ff;
  --lilac-soft: #f0eaff;
  --lilac-ink: #554175;
  --canvas: #f8f9f3;
  --paper: #fdfefb;
  --surface: #fafcf7;
  --conversation: #eef2e9;
  --desk: #e2e8de;
  --frame-line: #ccd6c6;
  --control-line: #88967f;
  --line: #e5e9df;
  --danger: #ba3533;
  --positive: #28705b;
  --radius: 20px;
  --shadow: 0 12px 44px #30262012;
  /* Existing components use these token names. */
  --green: var(--accent);
  --green-light: var(--accent-soft);
  --cream: var(--canvas);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--desk);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .46; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #52714c;
  outline-offset: 3px;
}
button, a { transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
/* Press feedback changes the surface, not the size of readable content. */
.btn:active:not(:disabled) { box-shadow: inset 0 1px 3px #20382e20; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.035em; font-weight: 700; }
p { line-height: 1.55; }
svg { display: block; flex-shrink: 0; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
button, .btn { min-height: 44px; }
::selection { background: #d7f476; color: #194f3c; }

/* Shared controls. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 14px; background: var(--accent); color: white;
  font-size: 14px; font-weight: 650; text-decoration: none; line-height: 1.35;
  white-space: normal;
}
.btn:hover { background: var(--accent-hover); }
button[aria-busy=true] { cursor: progress; opacity: .72; }
button[aria-busy=true] svg { opacity: .65; }
.btn.secondary { background: var(--accent-soft); color: #194f3c; }
.btn.secondary:hover { background: #dfedc4; }
.btn.outline { background: var(--paper); color: var(--ink); border: 1px solid #e5e0da; }
.btn.outline:hover { background: #f4f1ed; }
.btn.danger { background: #fce9e6; color: var(--danger); }
.btn.danger:hover { background: #f9d9d3; }
.btn.small { padding: 9px 13px; font-size: 12px; border-radius: 11px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex: 0 0 44px; color: #756e68;
}
.icon-btn:hover { background: #f2efeb; color: var(--ink); }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.small { font-size: 13px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 99px;
  padding: 5px 9px; font-size: 10px; font-weight: 700; line-height: 1.4;
  background: #f0eeeb; color: #665c54;
}
.pill.pending { background: #fff1d7; color: #8c601b; }
.pill.error { background: #fce8e4; color: #aa3f32; }
.avatar {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: #d7f476; color: #194f3c; border-radius: 17px; font-size: 15px;
  font-weight: 700; flex: 0 0 46px; letter-spacing: -.04em;
}
.avatar.tone1 { background: #d8c9ff; color: #554175; }
.avatar.tone2 { background: #e6efcf; color: #3b5a35; }
.avatar.tone3 { background: #eee8fb; color: #65537c; }
.brand { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.brand-symbol {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-symbol img { display: block; width: 100%; height: 100%; border-radius: 26%; }
/* Outlined lettering keeps its optical spacing on every device. A currentColor
   mask retains cream lettering on the forest sign-in panel. */
.brand-wordmark {
  display: block; width: 136px; height: 34px; flex: 0 0 136px;
  background-color: currentColor;
  -webkit-mask: url('/icons/wordmark.svg') center / contain no-repeat;
  mask: url('/icons/wordmark.svg') center / contain no-repeat;
}
@media (forced-colors: active) {
  .brand-wordmark { background-color: CanvasText; forced-color-adjust: none; }
}
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.main > .boot { min-height: 0; flex: 1; }
.boot p { color: var(--muted); font-size: 13px; }
.error-text { font-size: 13px; color: var(--danger); line-height: 1.5; }
.notice { font-size: 13px; padding: 13px 15px; line-height: 1.55; background: #f3efea; border-radius: 14px; overflow-wrap: anywhere; }
.notice.warning { background: #fff3dd; color: #836021; }
.notice .btn { margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 650; }
.field input, .field textarea, .field select {
  background: #fff; border: 1px solid #e1dcd5; border-radius: 13px;
  padding: 13px 14px; min-height: 48px; color: var(--ink); width: 100%; font-size: 15px; outline-offset: 1px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select { white-space: normal; }
.field small { font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #749b65; box-shadow: 0 0 0 3px #194f3c09; }
.field input[type=checkbox] { width: 20px; min-height: 20px; accent-color: var(--accent); }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 52px 24px; gap: 12px; max-width: 430px; margin: auto;
}
.empty .empty-icon {
  display: flex; align-items: center; justify-content: center; width: 68px; height: 68px;
  background: #d8c9ff; border-radius: 24px; margin-bottom: 8px; color: #554175; transform: rotate(-5deg);
}
.empty .empty-icon svg { transform: rotate(5deg); }
.empty h2 { font-size: 26px; line-height: 1.2; }
.empty p { color: var(--muted); max-width: 300px; font-size: 14px; }
.empty .btn { margin-top: 7px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; }

/* The inbox. */
.app-shell { display: grid; grid-template-columns: 326px minmax(0,1fr); height: 100dvh; max-width: 1640px; margin: auto; background: var(--paper); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.sidebar { background: var(--surface); display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.sidebar-head { padding: 27px 23px 20px; }
.sidebar-head > .row > .icon-btn { background: var(--lime); color: var(--accent); width: 42px; height: 42px; flex-basis: 42px; border-radius: 15px; box-shadow: 0 4px 10px #194f3c12; }
.sidebar-head > .row > .icon-btn:hover { background: var(--lime-hover); }
.inbox-heading { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.inbox-heading h1, .inbox-heading h2 { font-size: 31px; letter-spacing: -.045em; }
.inbox-heading p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.sidebar-title { margin-top: 29px; margin-bottom: 10px; }
.sidebar-title button { min-height: 36px; padding: 4px 10px; color: var(--accent); border-radius: 10px; font-weight: 650; }
.sidebar-title button:hover { background: var(--accent-soft); }
.sidebar-search { width: 100%; border: 1px solid transparent; border-radius: 14px; background: #f5f3f0; padding: 12px 14px; min-height: 44px; color: var(--ink); font-size: 13px; outline-offset: 2px; }
.sidebar-search::placeholder { color: #736e69; }
.groups-list { padding: 0 10px 14px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #d9d3cb transparent; }
.group-row { width: 100%; padding: 14px 13px; display: flex; gap: 13px; text-align: left; align-items: center; border-radius: 14px; margin-bottom: 3px; min-height: 83px; position: relative; }
.group-row + .group-row::before { content: ""; position: absolute; left: 72px; right: 13px; top: -2px; height: 1px; background: var(--line); pointer-events: none; }
@media (hover: hover) { .group-row:hover { background: #f0f3eb; } }
.group-row.active { background: #e8efdd; box-shadow: inset 3px 0 var(--accent); }
.group-row:active { background: #e4ebdc; transform: none; }
.group-copy { flex: 1; min-width: 0; }
.group-top, .group-last { display: flex; align-items: center; gap: 10px; min-width: 0; }
.group-top { justify-content: space-between; }
.group-title { font-weight: 680; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; min-width: 0; }
.group-time { font-size: 10px; color: #736d66; flex-shrink: 0; font-weight: 450; white-space: nowrap; }
.group-last { margin-top: 4px; }
.group-row .preview { font-size: 12px; color: var(--muted); margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.5; min-width: 0; flex: 1; }
.group-last .preview { margin-top: 0; }
.unread-dot { min-width: 19px; height: 19px; padding: 2px 6px; border-radius: 20px; color: white; background: var(--accent); font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 650; flex-shrink: 0; }
.sidebar-empty { padding: 27px 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sidebar-bottom { padding: 15px 22px 18px; border-top: 1px solid #f1eeea; }
.sidebar-bottom .avatar { width: 35px; height: 35px; flex-basis: 35px; font-size: 12px; border-radius: 13px; background: #d8c9ff; color: #554175; }
.account-name { font-weight: 650; font-size: 12px; overflow-wrap: anywhere; }
.account-label { font-size: 11px; color: #746e68; margin-top: 3px; }

/* A group is a conversation first. */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--conversation); }
.welcome { display: flex; flex: 1; padding: 28px; background: var(--canvas); }
.welcome h2 { font-size: 36px; }
.welcome-mark { display: flex; gap: 8px; align-items: center; justify-content: center; width: 102px; height: 102px; background: #d8c9ff; border-radius: 34px; margin-bottom: 13px; transform: rotate(-7deg); }
.welcome-mark img { width: 78px; height: 78px; border-radius: 25px; transform: rotate(7deg); }
.chat-header { min-height: 83px; padding: 15px 27px; display: flex; align-items: center; gap: 12px; background: var(--surface); flex-shrink: 0; border-bottom: 1px solid var(--line); z-index: 2; }
.chat-header > .avatar { width: 42px; height: 42px; flex-basis: 42px; border-radius: 15px; font-size: 14px; }
.group-heading { padding: 1px 0; text-align: left; min-width: 0; border-radius: 8px; }
.chat-header h1 { font-size: 19px; line-height: 1.25; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header .subtitle { display: block; font-size: 11px; color: #756e65; margin-top: 4px; font-weight: 450; }
.chat-header .back { display: none; }
.chat-header .group-add { flex: 0 0 auto; min-height: 40px; padding: 8px 13px; gap: 5px; font-size: 12px; border-radius: 13px; background: var(--lilac); color: var(--lilac-ink); white-space: nowrap; }
.chat-header .group-add:hover { background: #c9b7f5; color: var(--lilac-ink); }
.chat-header .group-add svg { width: 16px; height: 16px; }
.connection, .header-connection { display: none; }
.tabs-bar { display: flex; align-items: center; padding: 9px 27px 10px; min-width: 0; min-height: 55px; flex-shrink: 0; background: var(--surface); border-bottom: 1px solid #d8e0d1; box-shadow: 0 1px 2px #20382e04; }
.tabs { display: flex; align-items: center; width: 100%; min-width: 0; gap: 7px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; overscroll-behavior-x: contain; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 13px; font-size: 12px; font-weight: 650; border-radius: 12px; color: #756c63; }
.tab svg { width: 16px; height: 16px; }
.tab:hover { background: #f5f1ec; color: #64584f; }
.tab.active, .tab[aria-selected=true] { color: var(--accent); background: var(--lime); }
.tab[data-view="expenses"][aria-selected=true] { color: var(--lilac-ink); background: var(--lilac); }
.chat-stage { position: relative; display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: hidden; }
.messages-scroll { flex: 1; min-height: 0; overflow: auto; padding: 22px 30px 20px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ded8cf transparent; scroll-padding-bottom: 18px; }
.messages-scroll > .empty { padding-top: 62px; }
.message { display: flex; gap: 8px; margin: 0 0 3px; align-items: flex-end; max-width: 760px; position: relative; }
.message.message-cluster-start { margin-top: 13px; }
.message.own { flex-direction: row-reverse; margin-left: auto; }
.message > .avatar { width: 28px; height: 28px; flex-basis: 28px; border-radius: 10px; font-size: 10px; margin: 0 0 1px; }
.message.own > .avatar { display: none; }
.message.grouped > .avatar { visibility: hidden; }
.message-content { max-width: min(78%,560px); min-width: 56px; position: relative; }
.message.own .message-content { max-width: min(82%,560px); }
.message-header, .message-meta { display: flex; gap: 7px; align-items: center; font-size: 11px; line-height: 1.4; color: #756d66; margin-bottom: 5px; padding-left: 12px; }
.message-header strong, .message-meta strong { font-size: 11px; font-weight: 650; color: #52714c; overflow-wrap: anywhere; min-width: 0; }
.own .message-header, .own .message-meta { justify-content: flex-end; padding-right: 12px; padding-left: 0; }
.bubble { padding: 7px 10px 5px; border-radius: 15px 17px 17px 5px; background: var(--paper); border: 1px solid #dae2d3; box-shadow: 0 1px 2px #20382e07; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; position: relative; }
.own .bubble { background: #e6efd9; border-color: #d6e3c5; border-radius: 17px 17px 5px 17px; }
.grouped .bubble { border-top-left-radius: 7px; }
.own.grouped .bubble { border-top-left-radius: 17px; border-top-right-radius: 7px; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.message-time { display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 10px; line-height: 1.2; font-weight: 400; color: #746d66; margin-top: 5px; min-height: 10px; }
.own .message-time { color: #5c6f50; }
.own .bubble .muted { color: #53634e; }
.message-context { min-height: 36px; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #756e67; align-self: center; opacity: 0; transition: opacity 130ms ease, background 130ms ease; }
.message-context svg { width: 17px; height: 17px; }
.message:hover .message-context, .message:focus-within .message-context { opacity: 1; }
.message-context:hover { color: #64564c; background: #eee9e1; }
.message-content > .message-context { position: absolute; top: 50%; right: -42px; transform: translateY(-50%); }
.own .message-content > .message-context { right: auto; left: -42px; }
.message-actions { display: flex; gap: 2px; margin-top: 2px; opacity: 0; justify-content: flex-end; }
.message:hover .message-actions, .message:focus-within .message-actions { opacity: 1; }
.message-actions button { font-size: 11px; padding: 0 10px; min-height: 36px; border-radius: 9px; color: var(--muted); }
.message-actions button:hover { background: #f0eae3; color: var(--ink); }
.reply-quote { border-left: 3px solid #a0be67; padding: 7px 10px; margin: 0 0 9px; background: #edf3e778; border-radius: 3px 9px 9px 3px; font-size: 11px; color: #64715e; max-height: 82px; overflow: hidden; }
.reply-quote strong { font-size: 11px; font-weight: 650; color: #4b6741; }
.reply-quote p { line-height: 1.45; margin-top: 3px; }
.own .reply-quote { background: #ffffff7a; }
.message-image { display: block; max-width: 100%; max-height: 380px; object-fit: contain; border-radius: 12px; margin: 0 auto 5px; background: #f3eee8; cursor: zoom-in; }
.message-audio { max-width: 100%; width: 280px; height: 42px; display: block; }
.voice-player { display: flex; align-items: center; gap: 10px; min-width: 190px; width: 260px; max-width: 100%; padding: 3px 0; position: relative; flex-wrap: wrap; }
.voice-play { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; border-radius: 50%; background: #eee7ff; color: #554175; }
.voice-play:hover { background: #e0d3f9; }
.own .voice-play { background: #d7f476; color: #194f3c; }
.voice-play svg { width: 18px; height: 18px; }
.voice-track { flex: 1; min-width: 0; }
.voice-progress { display: block; width: 100%; height: 32px; min-height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; accent-color: var(--accent); }
.voice-progress::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(to right,var(--accent) 0,var(--accent) var(--voice-progress,0%),#d3dfc2 var(--voice-progress,0%),#d3dfc2 100%); }
.voice-progress::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--accent); appearance: none; -webkit-appearance: none; }
.voice-progress::-moz-range-track { height: 4px; border: 0; border-radius: 99px; background: #d3dfc2; }
.voice-progress::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--accent); }
.voice-progress::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent); }
.voice-progress:disabled { opacity: .45; cursor: default; }
.voice-progress:focus-visible { outline: 2px solid #52714c; outline-offset: 2px; }
.voice-time { display: block; font-size: 9px; line-height: 1.3; color: #5c6f50; font-variant-numeric: tabular-nums; margin-top: 1px; }
.voice-error { flex: 0 0 100%; font-size: 11px; color: var(--danger); line-height: 1.4; padding-top: 3px; }
.voice-player.is-loading .voice-play { animation: pulse 1s ease infinite; }
.voice-player.is-playing .voice-play { background: var(--accent); color: #fff; }
.voice-player.has-error .voice-play { color: var(--danger); }
.pending-attachment { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #526746; padding: 3px 0 6px; }
.media-name { font-size: 10px; color: #756d65; margin-top: 5px; overflow-wrap: anywhere; }
.system-message { margin: 17px auto; max-width: 400px; text-align: center; color: #736d66; font-size: 10px; line-height: 1.6; }
.day-divider { display: flex; align-items: center; justify-content: center; margin: 9px 0 21px; font-size: 10px; font-weight: 550; color: #736d65; letter-spacing: .01em; }
.load-older { display: flex; margin: 0 auto 24px; font-size: 11px; color: #776d64; }
.pending-message .bubble { opacity: .76; }
.message-delivery { color: #796b61; font-size: 10px; line-height: 1.4; text-align: right; padding: 4px 5px 0; display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.message-delivery.failed { color: var(--danger); }
.jump-latest { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 9px 15px; border-radius: 99px; background: #fff; color: #6f5d50; box-shadow: 0 3px 16px #3d2a2020; border: 1px solid #ede7df; font-size: 12px; font-weight: 650; z-index: 4; white-space: nowrap; }
.jump-latest svg { width: 15px; height: 15px; }
.jump-latest:hover { background: #fff7ef; }
.jump-latest:active { transform: translateX(-50%); background: #e6edde; }
.message.message-arrive { animation: message-in 180ms cubic-bezier(.2,.8,.2,1); }
@keyframes message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* Write, speak, share. */
.composer-wrap { padding: 12px 26px calc(18px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid #d8e0d1; flex-shrink: 0; z-index: 5; }
.composer { background: var(--paper); border: 1px solid var(--control-line); border-radius: 22px; display: flex; align-items: flex-end; padding: 5px; gap: 1px; box-shadow: 0 2px 5px #20382e06; transition: border-color 140ms ease, box-shadow 140ms ease; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #194f3c12; }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 0; background: none; color: var(--ink); padding: 11px 5px; min-height: 44px; max-height: 150px; line-height: 1.5; font-size: 14px; outline: none; }
.composer textarea::placeholder { color: #746e67; }
.composer .icon-btn { border-radius: 50%; color: #756d63; }
.composer .icon-btn:hover { background: #f5f0e9; color: #7b6c5e; }
.composer .send-btn { background: var(--accent); color: var(--lime); box-shadow: 0 2px 5px #194f3c20; }
.composer .send-btn:hover { background: var(--accent-hover); color: var(--lime); }
.composer .send-btn svg { width: 19px; height: 19px; }
.composer.has-text .send-btn { animation: control-in 140ms ease-out; }
@keyframes control-in { from { opacity: .4; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.composer-note { display: none; }
.composer-context { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 9px; border-radius: 14px; border-left: 3px solid #a4be77; background: #eaf1dd; font-size: 12px; min-width: 0; }
.composer-context span { overflow-wrap: anywhere; }
.composer-context .grow p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-height: 40px; font-size: 11px; color: #64705b; margin-top: 3px; }
/* Stable, compact media draft: preview and status stay beside the composer. */
.attachment-preview { min-height:72px; padding:8px; gap:10px; }
.attachment-thumb { width:52px; height:52px; flex:0 0 52px; object-fit:cover; border-radius:10px; background:var(--paper); }
.attachment-placeholder { display:grid; place-items:center; color:var(--accent); }
.attachment-preview .grow { min-width:0; }
.attachment-preview strong { display:block; font-size:12px; font-weight:650; }
.attachment-preview .icon-btn { flex-shrink:0; }
.recording-status { color: var(--danger); font-size: 12px; padding: 7px 12px; display: flex; gap: 8px; align-items: center; }
.record-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.outbox-status { margin: 7px 0 10px; background: #fff0d9; padding: 11px 13px; border-radius: 14px; font-size: 12px; line-height: 1.5; }
.outbox-status .btn { margin: 7px 5px 0 0; }
.online-banner { padding: 10px 20px; background: #fff1db; color: #8b6735; text-align: center; font-size: 12px; flex-shrink: 0; }

/* Skills and shared expenses. */
.expense-inline { margin-top: 10px; border-top: 1px solid #e8ddd1; padding-top: 12px; min-width: 190px; }
.expense-inline strong { display: block; font-size: 25px; letter-spacing: -.045em; margin: 4px 0 5px; font-weight: 700; }
.expense-inline .btn { margin-top: 12px; width: 100%; }
.expense-inline > .pill { margin-bottom: 8px; }
.bubble > .expense-inline:first-child { margin-top: 0; padding-top: 0; border: 0; }
.message .bot-avatar { background: var(--lilac); font-size: 17px; }
.bot-message .bubble { background: #faf7ff; border-color: #e8def7; }
.expense-pane { flex: 1; overflow: auto; padding: 30px 32px; min-height: 0; scrollbar-width: thin; }
.expense-pane-inner { max-width: 850px; margin: 0 auto; }
.expense-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 25px; }
.expense-top h2 { font-size: 28px; }
.expense-top p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 29px; }
.stat { background: #fff; border: 1px solid #eee8e0; border-radius: 18px; padding: 19px 20px; }
.stat p { font-size: 11px; color: #776d61; }
.stat strong { display: block; font-size: 26px; letter-spacing: -.045em; margin-top: 10px; font-weight: 650; }
.stat.featured { background: #e9dfff; border-color: #e9dfff; color: #554175; }
.stat.featured p { color: #6a577f; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.section-label h3 { font-size: 16px; font-weight: 650; }
.section-label span { font-size: 11px; color: #796c5d; }
.expense-card { padding: 18px 20px; background: white; border: 1px solid #ece6de; border-radius: 17px; margin-bottom: 10px; overflow-wrap: anywhere; }
.expense-card h3 { font-size: 15px; letter-spacing: -.02em; line-height: 1.4; overflow-wrap: anywhere; }
.expense-card .amount { font-weight: 650; font-size: 20px; white-space: nowrap; letter-spacing: -.035em; }
.expense-card .subline { font-size: 12px; color: #796d61; margin-top: 5px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.expense-card .card-actions { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.expense-card.reversed { opacity: .6; }
.expense-card details { font-size: 12px; margin-top: 12px; }
.expense-card summary { display: flex; align-items: center; cursor: pointer; padding: 9px 0; min-height: 44px; color: var(--accent); }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eee8e1; font-size: 13px; overflow-wrap: anywhere; }
.share-row:last-child { border-bottom: 0; }
.share-row > span { min-width: 0; overflow-wrap: anywhere; }
.share-row > strong { flex-shrink: 0; white-space: nowrap; }
.balance-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.balance-row .avatar { width: 35px; height: 35px; flex-basis: 35px; font-size: 12px; border-radius: 13px; }
.balance-row .name { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.balance-row .net { font-size: 12px; font-weight: 650; text-align: right; }
.net.positive { color: var(--positive); }
.net.negative { color: #a05f37; }
.bot-install { padding: 20px; background: #f0eaff; border-radius: 20px; margin: 22px 0; display: flex; gap: 14px; align-items: flex-start; }
.bot-icon { font-size: 27px; display: flex; justify-content: center; align-items: center; background: #d8c9ff; width: 49px; height: 49px; border-radius: 17px; flex-shrink: 0; }
.bot-install h3 { font-size: 16px; }
.bot-install p { font-size: 12px; color: var(--muted); margin: 6px 0 12px; }
.add-choices { gap: 11px; }
.add-choice { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 17px 15px; text-align: left; border: 1px solid #ede6de; border-radius: 18px; background: #fff; }
.add-choice:hover { background: #f2f7e7; border-color: #d8e5c2; }
.add-choice strong { display: block; font-size: 15px; font-weight: 650; }
.choice-icon { width: 45px; height: 45px; flex: 0 0 45px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: #d7f476; color: #194f3c; }
.add-choice:nth-child(2) .choice-icon { background: #d8c9ff; color: #554175; }
.choice-description { display: block; font-size: 12px; line-height: 1.5; margin-top: 5px; color: #7b6d5f; white-space: normal; overflow-wrap: anywhere; }
.add-choice > svg { color: #7a6d62; width: 17px; }
.skill-card { display: flex; flex-direction: column; gap: 16px; border: 1px solid #e9e0d6; border-radius: 20px; padding: 21px; background: #fff; }
.skill-card h3 { font-size: 22px; }
.skill-description { font-size: 14px; line-height: 1.6; color: #7d6c5d; }
.skill-tab-preview { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #654482; }
.member-handle { display: block; font-size: 12px; color: #796c5d; margin-top: 3px; overflow-wrap: anywhere; }

/* Lightweight sheets, not stacked control panels. */
.dialog-overlay { position: fixed; inset: 0; z-index: 30; background: #20382e38; display: flex; align-items: center; justify-content: center; padding: 24px; animation: overlay-in 160ms ease-out; }
.dialog { background: var(--surface); border: 1px solid var(--frame-line); border-radius: 24px; box-shadow: 0 20px 60px #20382e26, 0 2px 6px #20382e0c; width: min(100%,490px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; overflow: hidden; animation: sheet-in 180ms cubic-bezier(.2,.8,.2,1); }
.dialog.wide { width: min(100%,620px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 23px 13px; gap: 15px; flex-shrink: 0; }
.dialog-head h2 { font-size: 23px; line-height: 1.2; }
.dialog-head .icon-btn { background: #f2ece4; width: 35px; height: 35px; min-height: 35px; flex-basis: 35px; }
.dialog-head .icon-btn:hover { background: #eae2d8; }
.dialog-head .icon-btn svg { width: 18px; height: 18px; }
.dialog-body { padding: 8px 25px 27px; overflow: auto; overscroll-behavior: contain; min-width: 0; min-height: 0; }
.dialog p.intro { font-size: 13px; color: #7a6c5d; margin-bottom: 19px; }
.dialog .member-check { display: flex; align-items: center; gap: 12px; min-height: 55px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.member-check input { accent-color: var(--accent); width: 19px; height: 19px; }
.member-check span { overflow-wrap: anywhere; }
.member-check .avatar { width: 33px; height: 33px; flex-basis: 33px; font-size: 11px; border-radius: 12px; }
.exact-preview { padding: 16px; border-radius: 15px; background: #edf3df; }
.exact-preview h3 { font-size: 13px; margin-bottom: 7px; }
.exact-preview .share-row { font-size: 12px; }
.amount-input { position: relative; }
.amount-input span { position: absolute; left: 14px; top: 13px; font-size: 16px; color: var(--muted); }
.amount-input input { padding-left: 33px; }
.member-heading { font-size: 13px; font-weight: 650; }
.review-stage { background: #eaf1da; padding: 17px; border-radius: 16px; }
.review-stage .amount { font-size: 35px; letter-spacing: -.055em; font-weight: 650; margin-top: 5px; overflow-wrap: anywhere; }
.review-stage .description { font-size: 15px; margin: 8px 0; overflow-wrap: anywhere; }
.readonly-box { background: white; border: 1px solid #e8ded2; border-radius: 13px; padding: 13px; font-size: 13px; overflow-wrap: anywhere; }
.member-list { display: flex; flex-direction: column; }
.member-list .row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-item { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; padding: 14px 12px; border-radius: 13px; font-size: 14px; min-height: 50px; }
.menu-item:hover { background: #edf3e2; }
.menu-item.danger { color: var(--danger); }
.menu-item:disabled:hover { background: none; }
.sheet-actions { display: flex; flex-direction: column; gap: 3px; }
.message-preview { padding: 14px 15px; margin-bottom: 12px; background: #eef2e5; border-radius: 15px; font-size: 13px; color: #626d61; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; max-height: 112px; overflow-y: auto; }
.message-preview strong { display: block; font-size: 11px; color: #53664a; margin-bottom: 5px; }
.image-dialog { width: min(100%,820px); }
.image-dialog img { display: block; max-width: 100%; max-height: 75dvh; margin: auto; border-radius: 15px; }
.review-stage p, .dialog .intro, .dialog .small, .member-list span { overflow-wrap: anywhere; }
#toast { position: fixed; z-index: 80; bottom: 26px; left: 50%; transform: translateX(-50%); max-width: min(90vw,440px); background: #194f3c; color: #fff8ef; padding: 13px 19px; border-radius: 16px; box-shadow: 0 5px 22px #30221726; font-size: 13px; text-align: center; line-height: 1.5; pointer-events: none; animation: toast-in 180ms ease-out; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: .7; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%,7px); } to { opacity: 1; transform: translate(-50%,0); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.loading-dot { display: inline-flex; gap: 5px; }
.loading-dot i { width: 5px; height: 5px; background: #bfab97; border-radius: 50%; animation: pulse 1.3s infinite; }
.loading-dot i:nth-child(2) { animation-delay: .15s; }
.loading-dot i:nth-child(3) { animation-delay: .3s; }

/* Desktop and narrow windows. */
/* A bounded desktop surface at ordinary laptop widths, without stealing phone space. */
@media (min-width: 901px) and (min-height: 600px) {
  .app-shell { width: calc(100% - 32px); margin: 16px auto; height: calc(100dvh - 32px); border-radius: 20px; overflow: hidden; max-width: 1380px; border: 1px solid var(--frame-line); box-shadow: 0 16px 44px #20382e12, 0 2px 5px #20382e08; }
}
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 292px minmax(0,1fr); }
  .sidebar-head { padding: 25px 20px 18px; }
  .chat-header { padding: 15px 20px; }
  .tabs-bar { padding: 8px 20px 9px; }
  .messages-scroll { padding: 22px 20px 16px; }
  .composer-wrap { padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); }
  .expense-pane { padding: 25px 22px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 23px; }
}
@media (max-width: 800px) and (pointer: fine) {
  .app-shell { grid-template-columns: 258px minmax(0,1fr); }
  .group-row { padding-left: 8px; padding-right: 8px; gap: 10px; }
  .group-row .avatar { width: 41px; height: 41px; flex-basis: 41px; border-radius: 15px; }
  .chat-header > .avatar { display: none; }
}

/* Phone / installed PWA. */
@media (max-width: 680px), (max-width: 900px) and (pointer: coarse) {
  :root { font-size: 15px; background: var(--canvas); }
  body.app-mode { overflow: hidden; overscroll-behavior: none; }
  .app-shell { display: block; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; margin: 0; }
  .app-mode .app-shell { position: fixed; left: 0; right: 0; top: var(--viewport-offset,0px); height: var(--app-height,100dvh); width: 100%; }
  .sidebar { height: 100%; border: 0; }
  .main { height: 100%; display: none; }
  .app-shell.group-open .sidebar { display: none; }
  .app-shell.group-open .main { display: flex; }
  .sidebar-head { padding: calc(23px + env(safe-area-inset-top)) 23px 21px; }
  .sidebar-head > .row > .icon-btn { width: 44px; height: 44px; flex-basis: 44px; }
  .inbox-heading { margin: 0; font-size: 30px; }
  .inbox-heading h1, .inbox-heading h2 { font-size: 35px; }
  .sidebar-title { margin-top: 27px; }
  .sidebar-search { min-height: 46px; padding: 12px 15px; }
  .groups-list { padding: 0 11px 15px; }
  .group-row { padding: 16px 12px; min-height: 87px; gap: 14px; }
  .group-row .avatar { width: 50px; height: 50px; flex-basis: 50px; border-radius: 18px; font-size: 16px; }
  .group-title { font-size: 15px; }
  .group-time { font-size: 11px; }
  .group-row .preview { font-size: 13px; }
  .sidebar-bottom { padding: 14px 23px calc(16px + env(safe-area-inset-bottom)); }
  .chat-header { min-height: 72px; padding: calc(9px + env(safe-area-inset-top)) 10px 9px; gap: 7px; }
  .chat-header .back { display: inline-flex; }
  .chat-header > .avatar { width: 37px; height: 37px; flex-basis: 37px; border-radius: 13px; font-size: 12px; }
  .chat-header h1 { font-size: 17px; line-height: 1.2; }
  .chat-header .subtitle { font-size: 10px; margin-top: 4px; }
  .chat-header .group-add { min-height: 44px; padding: 8px 10px; gap: 4px; font-size: 12px; border-radius: 13px; }
  .chat-header .icon-btn { width: 44px; min-height: 44px; flex-basis: 44px; height: 44px; }
  .chat-header .back { width: 44px; flex-basis: 44px; }
  .chat-header .back svg { width: 21px; height: 21px; }
  .tabs-bar { padding: 4px 15px 7px; min-height: 50px; }
  .tabs { gap: 6px; }
  .tab { min-height: 44px; padding: 8px 12px; }
  .messages-scroll { padding: 17px 12px 15px; }
  .message { gap: 6px; }
  .message.message-cluster-start { margin-top: 16px; }
  .message > .avatar { width: 25px; height: 25px; flex-basis: 25px; font-size: 9px; border-radius: 9px; }
  .message-content { max-width: calc(100% - 81px); }
  .message.own .message-content { max-width: calc(100% - 50px); }
  .bubble { padding: 7px 10px 5px; font-size: 16px; border-radius: 17px 17px 17px 5px; }
  .message-context { width: 44px; height: 44px; min-height: 44px; flex-basis: 44px; opacity: .82; }
  .message-content > .message-context { right: -50px; }
  .own .message-content > .message-context { right: auto; left: -50px; }
  .message-header, .message-meta { padding-left: 11px; margin-bottom: 4px; }
  .message-header strong, .message-meta strong { font-size: 11px; }
  .message-time { font-size: 10px; }
  .day-divider { margin: 8px 0 18px; }
  .composer-wrap { padding: 8px 10px calc(11px + env(safe-area-inset-bottom)); }
  .composer { padding: 4px; border-radius: 25px; gap: 0; }
  .composer .icon-btn { width: 44px; height: 44px; flex-basis: 44px; }
  .composer textarea { font-size: 16px; padding: 10px 3px; min-height: 44px; max-height: min(150px,calc(var(--app-height,100dvh) * .22)); line-height: 1.45; }
  .composer-context { font-size: 11px; }
  .keyboard-open .composer-wrap { padding-bottom: 7px; }
  .expense-pane { padding: 24px 18px; }
  .expense-top { align-items: flex-start; gap: 11px; }
  .expense-top h2 { font-size: 25px; }
  .expense-top .btn { font-size: 12px; padding: 10px 12px; }
  .stat-grid { gap: 8px; }
  .stat { padding: 15px 11px; border-radius: 15px; }
  .stat p { font-size: 10px; }
  .stat strong { font-size: 20px; overflow-wrap: anywhere; }
  .expense-card { padding: 16px; }
  .expense-card > .row { flex-wrap: wrap; }
  .expense-card .amount { font-size: 19px; max-width: 100%; }
  .section-label { flex-wrap: wrap; align-items: flex-start; }
  .field input, .field textarea, .field select, .sidebar-search { font-size: 16px; }
  .dialog-overlay { align-items: flex-end; top: var(--viewport-offset,0px); height: var(--app-height,100dvh); bottom: auto; padding: 0; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .dialog { width: 100%; max-height: calc(var(--app-height,100dvh) - 18px - env(safe-area-inset-top)); border-radius: 27px 27px 0 0; border-bottom: 0; animation-name: mobile-sheet-in; }
  .dialog::before { content: ''; display: block; flex: 0 0 4px; width: 32px; background: #dcd2c6; border-radius: 99px; margin: 10px auto 0; }
  .dialog-head { padding: 14px 20px 12px; }
  .dialog-head h2 { font-size: 22px; }
  .dialog-head .icon-btn { min-width: 44px; min-height: 44px; flex-basis: 44px; background: transparent; }
  .dialog-body { padding: 7px 22px calc(27px + env(safe-area-inset-bottom)); }
  .form-actions .btn { min-height: 48px; }
  .message-audio { width: 240px; }
  .voice-player { min-width: 160px; }
  .voice-time { font-size: 10px; }
  .message-actions { opacity: 1; }
  .message-actions button { min-height: 44px; }
  .welcome { display: none; }
  .bot-install { padding: 17px; }
  .exact-preview { padding: 14px; }
  .add-choice { padding: 16px 13px; gap: 12px; }
  .chat-header, .composer-wrap { padding-left: max(10px,env(safe-area-inset-left)); padding-right: max(10px,env(safe-area-inset-right)); }
  #toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
  @keyframes mobile-sheet-in { from { opacity: .7; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 380px) {
  .chat-header > .avatar { display: none; }
  .chat-header h1 { font-size: 16px; }
  .chat-header { gap: 5px; }
  .sidebar-head { padding-left: 21px; padding-right: 21px; }
  .group-row { gap: 11px; }
  .stat-grid { grid-template-columns: 1fr; gap: 7px; }
  .stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; }
  .stat strong { margin: 0; font-size: 22px; white-space: nowrap; }
  .stat p { font-size: 11px; }
  .expense-top { flex-wrap: wrap; }
  .expense-pane { padding: 22px 15px; }
  .expense-card { padding: 14px; }
  .dialog-head { padding-left: 19px; padding-right: 13px; }
  .dialog-body { padding-left: 19px; padding-right: 19px; }
  .review-stage .amount { font-size: 31px; }
  .add-choice > svg { display: none; }
  .skill-card { padding: 17px; }
  .expense-inline { min-width: 150px; }
}
@media (hover: none) {
  .message-context { opacity: .82; }
  .message-actions { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Phone-first arrival. Keep the conversation's forest, lime and lilac palette. */
.phone-auth-box > .phone-auth-form { margin-top: 30px; }
.phone-auth-form { gap: 17px; }
.phone-auth-form .field { font-size: 13px; gap: 9px; }
.phone-auth-form .field input { min-height: 56px; border-color: var(--line); border-radius: 16px; font-size: 17px; }
.phone-auth-form .field input:focus { border-color: #789b60; box-shadow: 0 0 0 4px #d7f47645; }
.phone-auth-form input.phone-number { font-size: 22px; font-weight: 600; letter-spacing: .035em; }
.phone-auth-form input.phone-code { font-size: 29px; font-weight: 650; letter-spacing: .34em; text-align: center; padding: 15px 14px 15px 24px; font-variant-numeric: tabular-nums; }
.phone-auth-form input.phone-code::placeholder { color: #a5ada0; opacity: .65; }
.phone-auth-form .error-text:empty { display: none; }
.phone-primary { min-height: 54px; border-radius: 16px; justify-content: space-between; padding: 15px 19px; font-size: 15px; }
.phone-link { color: var(--accent); font-size: 13px; font-weight: 650; border-radius: 12px; padding: 10px 12px; min-height: 44px; }
.phone-link:hover:not(:disabled) { background: var(--accent-soft); }
.phone-legacy { display: block; width: 100%; margin-top: 17px; }
.phone-resend { align-self: center; }
.phone-destination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -4px; }
.phone-destination p { font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.phone-destination .phone-link { flex-shrink: 0; }
.phone-demo { padding: 13px 16px; background: var(--lilac-soft); color: var(--lilac-ink); border: 1px solid #d8c9ff; border-radius: 14px; font-size: 12px; line-height: 1.5; }
.phone-demo strong { font-weight: 650; }
.phone-demo p { margin-top: 4px; }
.phone-demo [data-demo-code] { font-variant-numeric: tabular-nums; letter-spacing: .1em; font-weight: 750; user-select: all; }
.phone-unavailable { margin: 24px 0; padding: 16px 17px; border-radius: 16px; background: var(--lilac-soft); color: var(--lilac-ink); font-size: 13px; }
.phone-unavailable p { margin-top: 5px; font-size: 12px; }
.phone-link-flow .phone-auth-form { margin-top: 0; }
.account-mobile { padding: 13px 15px; border-radius: 15px; background: var(--accent-soft); }
.account-mobile .menu-item { width: 100%; padding: 0; margin-bottom: 5px; }
.phone-verified { display: flex; gap: 11px; align-items: center; color: var(--accent); }
.phone-verified strong { font-size: 13px; }
.phone-verified p { margin-top: 3px; }
@media (max-width: 680px) {
  .phone-auth-box > .phone-auth-form { margin-top: 26px; }
  .phone-auth-form .field input { font-size: 17px; }
  .phone-auth-form input.phone-number { font-size: 21px; }
  .phone-auth-form input.phone-code { font-size: 28px; }
  .phone-auth-box .auth-note { margin-top: 18px; }
}
@media (max-width: 380px) {
  .phone-auth-form { gap: 14px; }
  .phone-destination { gap: 4px; }
  .phone-destination p { font-size: 14px; }
  .phone-destination .phone-link { padding-left: 8px; padding-right: 8px; }
}

/* In high-contrast modes, native system colours define real boundaries. */
@media (forced-colors: active) {
  .app-shell, .sidebar, .chat-header, .tabs-bar, .composer-wrap, .composer, .bubble, .dialog { border-color: CanvasText; box-shadow: none; }
  .btn, .icon-btn, .profile-button { border: 1px solid ButtonText; }
  .group-row.active { outline: 2px solid Highlight; outline-offset: -2px; box-shadow: none; }
  .group-row.active:focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
  .tab[aria-selected=true] { outline: 2px solid Highlight; outline-offset: -2px; }
  .tab[aria-selected=true]:focus-visible { outline: 3px solid Highlight; outline-offset: -3px; }
  .composer:focus-within { outline: 2px solid Highlight; outline-offset: 2px; }
  .group-row + .group-row::before { background: CanvasText; }
}

/* Rally: one quiet identity, with readable code-rendered explanations. */
.sidekick-portrait{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.sidekick-diagram{list-style:none;display:flex;flex-direction:column;gap:22px;padding:0;margin:14px 0 8px;max-width:360px}
.sidekick-diagram li{position:relative;border:1px solid #dce3d8;background:#f6f7f0;border-radius:12px;padding:10px 14px;font:inherit;font-size:.9em;line-height:1.4;text-align:center;color:#21463a;overflow-wrap:anywhere}
.sidekick-diagram li+li:before{content:'↓';position:absolute;left:calc(50% - 5px);top:-23px;color:#7d8a80;font-size:16px;line-height:20px}

/* An @ mention stays part of the conversation, with a small floating people list. */
.gm-mention-anchor { position: relative; min-width: 0; }
.gm-mention-menu {
  position: relative; z-index: 15; width: 100%; margin: 0 0 8px;
  max-width: 100%; max-height: min(240px,34dvh); overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; background: #fff; border: 1px solid #e8e0d5;
  border-radius: 20px; box-shadow: 0 8px 28px #38271915; padding: 6px;
  scrollbar-width: thin; text-align: left; animation: mention-in 130ms ease-out;
}
.gm-mention-menu[hidden] { display: none !important; }
.gm-mention-option {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 3px; width: 100%; max-width: 100%; min-width: 0; min-height: 57px;
  padding: 10px 14px; margin: 0; border: 0; border-radius: 14px;
  background: transparent; color: var(--ink,#20382e); font: inherit; text-align: left;
  cursor: pointer; touch-action: pan-y; transition: background-color 100ms ease;
}
.gm-mention-option:hover, .gm-mention-option[aria-selected=true] { background: #edf5dd; }
.gm-mention-option:focus-visible { outline: 2px solid var(--accent,#194f3c); outline-offset: -2px; }
.gm-mention-name { display: block; width: 100%; font-size: 13px; font-weight: 650; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-mention-handle { display: block; width: 100%; font-size: 11px; line-height: 1.4; color: #66705f; overflow-wrap: anywhere; white-space: normal; }
.gm-mention-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gm-mention { color: #244e35; background: #ddedba; border-radius: 5px; padding: 1px 3px; font-weight: 600; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.own .gm-mention { background: #d7f476; }
.gm-mention-self { background: #e8ddff; color: #554175; }
.own .gm-mention-self { background: #d8c9ff; color: #554175; }
@keyframes mention-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px), (max-width: 900px) and (pointer: coarse) {
  .gm-mention-menu { border-radius: 18px; }
}
@media (max-width: 360px) { .gm-mention-option { padding-left: 11px; padding-right: 11px; } }
@media (prefers-reduced-motion: reduce) { .gm-mention-menu { animation: none; scroll-behavior: auto; } }

/* Sidekicks are explicit recipients, never disguised member mentions. */
.gm-mention-option.gm-mention-sidekick { flex-direction:row; align-items:center; justify-content:flex-start; gap:11px; }
.gm-mention-avatar { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border-radius:12px; background:#e9ddff; color:#554175; font-size:20px; font-weight:700; overflow:hidden; }
.gm-mention-content { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.gm-mention-heading { display:flex; align-items:center; gap:7px; min-width:0; }
.gm-mention-heading .gm-mention-name { width:auto; min-width:0; flex:0 1 auto; }
.gm-mention-kind { flex-shrink:0; font-size:9px; line-height:1.5; font-weight:650; color:#554175; background:#f1eafa; border-radius:99px; padding:2px 6px; }
.gm-mention-tagline { color:#66705f; font-size:10px; line-height:1.4; overflow-wrap:anywhere; }
@media (max-width:360px) { .gm-mention-option.gm-mention-sidekick { gap:8px; } .gm-mention-avatar { width:31px; height:34px; flex-basis:31px; font-size:18px; } }

/* Tambola is a shared caller. The paper tickets stay in people's hands. */
.tambola-pane { min-height:0; flex:1; overflow:auto; overscroll-behavior:contain; background:var(--canvas); padding:28px; }
.tmb-wrap { max-width:1060px; margin:0 auto; color:var(--ink); }
.tmb-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:24px; }
.tmb-heading h2 { font-size:38px; letter-spacing:-.055em; margin:6px 0; }
.tmb-heading p { font-size:13px; color:var(--muted); }
.tmb-badge { color:var(--lilac-ink); font-size:9px; font-weight:750; letter-spacing:.13em; }
.tmb-phase { flex-shrink:0; font-size:11px; font-weight:650; padding:8px 12px; border-radius:99px; color:var(--lilac-ink); background:var(--lilac-soft); max-width:180px; text-align:center; }
.tmb-phase.is-playing { background:var(--accent-soft); color:var(--accent); }
.tmb-layout { display:grid; grid-template-columns:minmax(270px,.9fr) minmax(330px,1.1fr); gap:20px; align-items:start; }
.tmb-call-card,.tmb-board-card { border:1px solid var(--line); background:#fff; border-radius:26px; padding:24px; min-width:0; }
.tmb-call-card { text-align:center; background:linear-gradient(160deg,#f0eaff 0%,#fff 50%,#f5f9e8 100%); }
.tmb-card-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.tmb-current-label,.tmb-small-label { font-size:9px; letter-spacing:.11em; font-weight:750; color:#77668d; }
.tmb-count { font-size:11px; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
.tmb-ball { position:relative; width:168px; height:168px; display:grid; place-items:center; margin:26px auto 18px; border-radius:50%; background:radial-gradient(circle at 34% 24%,#edfcb5,#d7f476 64%,#c5e65b); color:var(--accent); box-shadow:0 10px 0 #cadaad55,0 18px 32px #194f3c0a; border:1px solid #d0e88a; }
.tmb-ball::before { content:''; position:absolute; inset:12px; border:1px solid #fcffeac4; border-radius:50%; }
.tmb-current { font-size:86px; line-height:1; letter-spacing:-.08em; font-variant-numeric:tabular-nums; font-weight:750; padding-right:5px; }
.tmb-ball.is-new { animation:tmb-land 300ms cubic-bezier(.2,.8,.2,1); }
.tmb-call-line { font-size:18px; font-weight:650; letter-spacing:-.025em; min-height:28px; }
.tmb-host { font-size:12px; color:var(--muted); margin-top:8px; overflow-wrap:anywhere; }
.tmb-countdown { display:inline-block; color:var(--accent); margin-top:8px; font-size:11px; font-weight:650; font-variant-numeric:tabular-nums; }
.tmb-recent-wrap { margin-top:23px; }
.tmb-recent { display:flex; justify-content:center; gap:8px; list-style:none; margin:10px 0 0; padding:0; }
.tmb-recent li { display:grid; place-items:center; width:37px; height:37px; border-radius:50%; background:#fff; border:1px solid #e7e2ef; font-size:14px; font-weight:650; font-variant-numeric:tabular-nums; }
.tmb-recent .is-latest { background:var(--lilac-soft); border-color:var(--lilac); color:var(--lilac-ink); }
.tmb-controls { display:flex; flex-direction:column; gap:12px; margin-top:23px; }
.tmb-primary { background:var(--accent); color:var(--lime); width:100%; min-height:52px; border-radius:16px; font-size:15px; }
.tmb-main-actions { display:flex; gap:8px; }
.tmb-main-actions .btn { flex:1; min-width:0; padding-inline:12px; white-space:nowrap; }
.tmb-main-actions:empty { display:none; }
.tmb-segmented { display:flex; padding:4px; background:#efede9; border-radius:13px; gap:3px; }
.tmb-segmented button { flex:1; min-height:39px; border-radius:10px; font-size:12px; font-weight:650; }
.tmb-segmented [aria-pressed=true] { background:#fff; box-shadow:0 2px 4px #20382e0a; color:var(--accent); }
.tmb-pace { display:flex; justify-content:center; gap:6px; }
.tmb-pace button { min-width:60px; border:1px solid var(--line); border-radius:10px; min-height:36px; font-size:11px; color:var(--muted); }
.tmb-pace [aria-pressed=true] { background:var(--lilac-soft); border-color:var(--lilac); color:var(--lilac-ink); }
.tmb-auto-hint { font-size:11px; color:var(--muted); max-width:250px; margin:0 auto; }
.tmb-link { min-height:36px; font-size:11px; color:var(--accent); padding:6px 10px; border-radius:10px; font-weight:650; }
.tmb-link:hover { background:var(--accent-soft); }
.tmb-end { color:#786d72; align-self:center; }
.tmb-waiting { font-size:12px; color:var(--muted); margin-top:22px; }
.tmb-voice { display:flex; align-items:center; text-align:left; justify-content:center; gap:10px; padding-top:20px; margin-top:20px; border-top:1px solid #e5dfed; font-size:12px; color:var(--ink); cursor:pointer; }
.tmb-voice input { width:18px; height:18px; accent-color:var(--accent); flex-shrink:0; }
.tmb-voice small { display:block; color:var(--muted); font-size:10px; margin-top:3px; }
.tmb-board-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:10px; }
.tmb-board-heading h3 { font-size:18px; }
.tmb-board-heading span { font-size:11px; color:var(--muted); }
.tmb-board { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:5px; }
.tmb-number { display:grid; place-items:center; aspect-ratio:1; border:1px solid #e9ece4; border-radius:9px; color:#697262; background:#f8f9f4; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; transition:background-color 140ms,color 140ms; }
.tmb-number.is-called { background:var(--accent-soft); color:var(--accent); border-color:#d6e6b4; font-weight:750; }
.tmb-number.is-current { background:var(--accent); color:var(--lime); border-color:var(--accent); box-shadow:0 2px 7px #194f3c1c; }
.tmb-history { border-top:1px solid var(--line); padding-top:18px; margin-top:22px; }
.tmb-history summary { font-size:12px; font-weight:650; cursor:pointer; min-height:30px; padding:4px 0; color:var(--ink); }
.tmb-history-list { display:flex; flex-wrap:wrap; gap:6px; list-style:none; padding:10px 0 0; margin:0; }
.tmb-history-list li { display:flex; gap:5px; align-items:baseline; padding:6px 8px; border-radius:8px; background:#f3f5ef; }
.tmb-history-list span { font-size:9px; color:var(--muted); }
.tmb-history-list strong { font-size:12px; }
.tmb-round-note { color:var(--muted); font-size:11px; line-height:1.65; margin-top:20px; }
.tmb-connection { display:flex; align-items:center; justify-content:space-between; gap:10px; background:#fff2db; border-radius:14px; padding:12px 15px; margin-bottom:16px; }
.tmb-sync { font-size:12px; color:#7c5f2a; }
.tmb-recovery { padding:13px 16px; border:1px solid #efceca; border-radius:14px; margin-bottom:16px; }
.tmb-recovery .btn { margin-top:9px; }
.tmb-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skill-card.tambola-sidekick .bot-icon { background:var(--accent); color:var(--lime); font-size:26px; font-weight:750; }
.message .tambola-avatar { background:var(--accent); color:var(--lime); font-size:12px; font-weight:750; border-radius:50%; }
.tambola-announcement .bubble { background:var(--accent-soft); border-color:#d7e9b7; }
.tambola-announcement .btn { margin-top:12px; }
@keyframes tmb-land { 0% { transform:translateY(-7px) scale(.9); opacity:.7; } 65% { transform:translateY(2px) scale(1.03); opacity:1; } 100% { transform:none; } }
@media (max-width:1050px) { .tmb-layout { grid-template-columns:1fr; } .tmb-wrap { max-width:560px; } }
@media (max-width:680px) {
  .tambola-pane { padding:21px 12px 30px; }
  .tmb-heading { align-items:flex-start; margin-bottom:18px; gap:8px; }
  .tmb-heading h2 { font-size:30px; }
  .tmb-heading p { font-size:11px; }
  .tmb-phase { max-width:112px; font-size:10px; padding:7px 9px; margin-top:5px; }
  .tmb-badge { font-size:8px; letter-spacing:.09em; }
  .tmb-layout { gap:14px; }
  .tmb-call-card,.tmb-board-card { padding:19px 17px; border-radius:22px; }
  .tmb-ball { width:142px; height:142px; margin:21px auto 17px; }
  .tmb-current { font-size:76px; }
  .tmb-call-line { font-size:17px; }
  .tmb-controls { margin-top:20px; }
  .tmb-segmented button,.tmb-pace button,.tmb-link,.tmb-history summary { min-height:44px; }
  .tmb-board { gap:4px; }
  .tmb-number { font-size:12px; border-radius:7px; }
  .tmb-board-heading { margin-bottom:16px; }
  .tmb-voice { min-height:58px; }
}
@media (max-width:350px) { .tmb-heading { flex-wrap:wrap; } .tmb-phase { max-width:none; margin-top:0; } .tmb-board-card { padding:17px 12px; } .tmb-board { gap:3px; } .tmb-number { font-size:11px; border-radius:6px; } }
@media (prefers-reduced-motion:reduce) { .tmb-ball.is-new { animation:none; } .tmb-number { transition:none; } }

.party-pane { overflow:auto; min-height:0; flex:1; overscroll-behavior:contain; }
.party-wrap { max-width:640px; margin:auto; padding:24px 20px 40px; display:grid; gap:16px; color:var(--ink); }
.party-heading { display:flex; gap:13px; align-items:center; margin-bottom:8px; }.party-heading h2 { font-size:30px; letter-spacing:-.06em; margin:0; }.party-heading p { margin:3px 0 0; font-size:13px; }
.party-emblem { display:grid; place-items:center; width:50px; height:50px; border-radius:18px; background:#dfd2fa; color:#345338; font-size:35px; }
.party-welcome { padding:24px; border:1px solid #d8dfcd; border-radius:25px; background:#e6eecb; }.party-mafia { background:#eae1f5; border-color:#ded2ed; }.party-kicker { display:block; font-size:10px; font-weight:750; letter-spacing:.08em; }.party-welcome h3,.party-round h3,.party-result h3 { font-size:25px; letter-spacing:-.035em; margin:8px 0; }.party-welcome p { font-size:14px; line-height:1.5; }.party-welcome>.btn { width:100%; margin:7px 0 12px; }.party-wrap details summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-size:13px; font-weight:650; }.party-wrap details p { line-height:1.6; }
.party-round,.party-private,.party-result { border:1px solid #d9dfcf; border-radius:23px; padding:20px; background:var(--paper); }.party-status { display:flex; align-items:center; justify-content:space-between; gap:10px; }.party-phase { font-size:11px; font-weight:700; color:#476341; }.party-timer { font-size:12px; font-variant-numeric:tabular-nums; border-radius:10px; padding:5px 9px; background:#eef0e7; }.party-round p,.party-result p { font-size:14px; line-height:1.5; margin-bottom:0; }.party-private { background:#f0ebf8; border-color:#ded5eb; }.party-reveal { display:block; width:100%; min-height:44px; background:none; border:0; color:var(--ink); text-align:left; font:inherit; font-size:14px; font-weight:700; }.party-secret { display:block; font-size:30px; letter-spacing:-.04em; padding:8px 0; overflow-wrap:anywhere; }.party-private p { margin:5px 0; }.party-invite-count { font-weight:650; margin:0; }.party-choices { display:grid; gap:9px; }.party-choices h4,.party-roster h4 { margin:0; font-size:15px; }.party-choices p { margin:0 0 7px; }
.party-person { display:flex; align-items:center; gap:12px; width:100%; min-height:57px; border:1px solid #d9dfcf; border-radius:16px; background:var(--paper); padding:8px 12px; color:var(--ink); text-align:left; font:inherit; font-size:14px; }.party-person.selected { border-color:#78985b; background:#e8efcf; }.party-roster { display:grid; gap:10px; padding:8px 0; }.party-roster-person,.party-result-row { display:flex; align-items:center; gap:10px; font-size:13px; min-width:0; }.party-roster-person .grow,.party-result-row .grow { overflow-wrap:anywhere; min-width:0; }.party-result-row { flex-wrap:wrap; margin-top:12px; }.party-result-row strong { font-size:12px; }.party-wrap .avatar { width:33px; height:35px; flex:0 0 33px; border-radius:12px; }.party-roster-person.is-out { opacity:.6; }.party-locked { background:#e9efda; border-radius:16px; padding:16px; font-size:14px; line-height:1.5; }.party-waiting,.party-spectator { font-size:14px; line-height:1.5; }.party-end { background:none; border:0; color:#765252; font:inherit; font-size:13px; min-height:44px; }.party-error { border:1px solid #e3c2b1; background:#fff3e8; border-radius:15px; padding:14px; font-size:13px; }.party-rules { border-top:1px solid var(--line); padding-top:6px; }.party-wrap button:focus-visible,.party-wrap summary:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }.party-wrap button:disabled { opacity:.5; }
@media(max-width:360px){.party-wrap { padding:18px 14px 30px; }.party-welcome,.party-round,.party-private,.party-result { padding:16px; }.party-secret { font-size:26px; }}
@media(forced-colors:active){.party-person.selected { border:2px solid Highlight; }.party-emblem,.party-phase { color:CanvasText; }}

.party-host-odd .party-emblem { background:#e3ecb9; }.party-host-mafia .party-emblem { background:#dfd2fa; }.party-welcome h3 { max-width:25ch; font-size:24px; line-height:1.15; }.party-how { list-style:none; margin:20px 0 12px; padding:0; display:grid; gap:12px; }.party-how li { display:flex; align-items:center; gap:10px; font-size:14px; }.party-how li>span { display:grid; place-items:center; width:25px; height:25px; flex:none; border-radius:9px; background:rgba(255,255,255,.65); font-size:11px; font-weight:750; }.party-host-busy { padding:13px; border:1px solid rgba(47,75,47,.18); border-radius:13px; background:rgba(255,255,255,.5); }

/* A shared plan, with suggestions kept separate from saved decisions. */
.trip-pane { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; background:var(--canvas); padding:30px; }
.trip-wrap { max-width:1120px; margin:auto; color:var(--ink); }
.trip-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:26px; }
.trip-heading h2 { max-width:620px; font-size:34px; line-height:1.12; letter-spacing:-.05em; margin-top:7px; overflow-wrap:anywhere; }
.trip-eyebrow { display:block; color:var(--lilac-ink); font-size:9px; font-weight:750; letter-spacing:.12em; }
.trip-phase { background:var(--accent-soft); color:var(--accent); padding:8px 11px; border-radius:99px; font-size:11px; font-weight:650; flex-shrink:0; margin-top:4px; }
.trip-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(270px,1fr); gap:20px; align-items:start; }
.trip-main,.trip-side { display:flex; flex-direction:column; gap:18px; min-width:0; }
.trip-card,.trip-ask,.trip-job { border:1px solid var(--line); background:#fff; border-radius:23px; padding:23px; min-width:0; }
.trip-card h3,.trip-ask h3,.trip-job h3 { font-size:21px; letter-spacing:-.035em; line-height:1.25; }
.trip-saved { background:linear-gradient(155deg,#f0f7df 0%,#fff 65%); }
.trip-saved > .trip-eyebrow { margin-bottom:15px; color:var(--accent); }
.trip-empty-mark { display:grid; place-items:center; width:48px; height:48px; border-radius:16px; background:var(--lime); color:var(--accent); font-size:30px; font-weight:650; margin-bottom:24px; transform:rotate(-6deg); }
.trip-overview { margin-top:15px; font-size:14px; line-height:1.65; white-space:pre-wrap; }
.trip-facts { display:flex; flex-wrap:wrap; gap:7px; }
.trip-facts span { padding:7px 10px; border:1px solid #dfe8d0; background:#fff9; color:var(--accent); border-radius:11px; font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.trip-days { list-style:none; padding:0; margin:22px 0 0; }
.trip-days > li { display:grid; grid-template-columns:28px minmax(0,1fr); gap:12px; padding:14px 0; border-top:1px solid #e7eadf; }
.trip-day-number { font-size:12px; color:var(--accent); background:var(--accent-soft); border-radius:8px; width:28px; height:28px; display:grid; place-items:center; font-weight:700; }
.trip-days h4,.trip-questions h4,.trip-stay h4 { font-size:14px; font-weight:650; line-height:1.5; }
.trip-days ul,.trip-questions ul { padding-left:18px; margin-top:7px; font-size:12px; line-height:1.7; color:var(--muted); }
.trip-days li,.trip-questions li { overflow-wrap:anywhere; }
.trip-questions { margin-top:15px; background:#f5f1fa; padding:16px; border-radius:14px; }
.trip-questions h4 { color:var(--lilac-ink); }
.trip-proposals { display:flex; flex-direction:column; gap:12px; }
.trip-job { border-color:#d8c9ef; background:#fcfaff; }
.trip-job > .trip-eyebrow { margin-bottom:10px; }
.trip-job .btn { margin-top:14px; }
.trip-job-compact { padding:14px 17px; background:#f7f5f9; }
.trip-job-compact strong { font-size:12px; }
.trip-job-compact .trip-hint { margin-top:3px; }
.trip-request-quote { border-left:2px solid var(--lilac); padding-left:11px; margin-top:13px; color:var(--muted); font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.trip-ask { display:flex; flex-direction:column; gap:14px; background:#f3eefb; border-color:#e3d8f0; }
.trip-ask h3 { margin-top:5px; }
.trip-ask textarea { background:#fffdff; resize:vertical; min-height:98px; max-height:300px; }
.trip-check { display:flex; align-items:flex-start; gap:10px; cursor:pointer; font-size:12px; line-height:1.5; padding:4px 0; }
.trip-check input { flex:0 0 18px; width:18px; height:18px; margin-top:1px; accent-color:var(--accent); }
.trip-check small { display:block; color:var(--muted); font-size:11px; margin-top:2px; line-height:1.5; }
.trip-primary { align-self:flex-start; color:var(--lime); }
.trip-hint { color:var(--muted); font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.trip-saved > .trip-hint,.trip-card > .trip-hint { margin-top:8px; }
.trip-section-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.trip-count { flex-shrink:0; color:var(--accent); background:var(--accent-soft); font-size:11px; font-variant-numeric:tabular-nums; font-weight:650; border-radius:99px; padding:5px 8px; }
.trip-correction summary,.trip-add-stay summary { min-height:44px; display:flex; align-items:center; cursor:pointer; font-size:13px; font-weight:650; color:var(--accent); list-style:none; }
.trip-correction summary::after { content:'+'; margin-left:auto; font-size:20px; font-weight:400; }
.trip-correction[open] summary::after { content:'−'; }
.trip-correction { padding-block:9px; }
.trip-edit-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:13px; padding:12px 0 14px; }
.trip-edit-form .field,.trip-stay-form .field { font-size:11px; min-width:0; }
.trip-edit-form input { min-width:0; width:100%; }
.trip-wide { grid-column:1/-1; }
.trip-edit-form > .btn { justify-self:start; grid-column:1/-1; }
.trip-inline-form { display:flex; gap:8px; margin-top:14px; }
.trip-inline-form input { min-width:0; flex:1; font-size:12px; padding:10px; }
.trip-inline-form .btn { flex-shrink:0; padding-inline:10px; }
.trip-empty-small { font-size:12px; color:var(--muted); padding:20px 0 6px; }
.trip-task { display:flex; align-items:flex-start; gap:11px; padding:15px 0 10px; border-bottom:1px solid var(--line); }
.trip-task-check { width:26px; height:26px; min-height:26px; border-radius:9px; border:1px solid #d5deca; color:var(--accent); flex:0 0 26px; margin-top:1px; font-size:14px; }
.trip-task-check[aria-pressed=true] { background:var(--lime); border-color:var(--lime); }
.trip-task-content { min-width:0; flex:1; }
.trip-task strong { font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.trip-task.is-done strong { text-decoration:line-through; color:var(--muted); }
.trip-task-actions { display:flex; gap:10px; flex-wrap:wrap; }
.trip-text-button { min-height:34px; padding:4px 0; font-size:10px; font-weight:650; color:var(--accent); text-align:left; overflow-wrap:anywhere; }
.trip-muted-action { color:var(--muted); font-weight:500; }
.trip-stay { border:1px solid var(--line); border-radius:16px; padding:15px; margin-top:15px; overflow-wrap:anywhere; }
.trip-stay.is-selected { border-color:#c6dda4; background:#f5f9eb; }
.trip-choice { display:block; color:var(--accent); font-size:10px; font-weight:650; margin-bottom:9px; }
.trip-stay > p { font-size:12px; color:var(--muted); margin-top:7px; line-height:1.5; white-space:pre-wrap; }
.trip-stay .trip-price-note { border-top:1px solid var(--line); padding-top:10px; }
.trip-price-note strong { font-size:9px; font-weight:650; display:block; margin-bottom:4px; }
.trip-price-note span { display:block; font-size:12px; }
.trip-stay-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.trip-stay-actions .btn { font-size:10px; min-height:38px; padding:8px 10px; }
.trip-stay [aria-pressed=true] { color:var(--lilac-ink); background:var(--lilac-soft); border-color:var(--lilac); }
.trip-provider-note { margin-top:14px; font-size:10px; color:var(--muted); line-height:1.6; }
.trip-add-stay { margin-top:9px; }
.trip-stay-form { padding-top:7px; }
.trip-connection,.trip-recovery { border-radius:14px; padding:14px; margin-bottom:14px; background:#fff1db; color:#7b5d29; font-size:12px; line-height:1.5; }
.trip-recovery .btn { margin-top:10px; }
.trip-wrap > .error-text { margin-bottom:14px; }
.skill-classification { display:inline-flex; align-self:flex-start; font-size:10px; font-weight:650; border-radius:99px; padding:5px 8px; background:var(--lilac-soft); color:var(--lilac-ink); }
.skill-classification.is-classic { color:var(--accent); background:var(--accent-soft); }
.skill-card.trip-sidekick .bot-icon { color:var(--accent); background:var(--lime); font-size:30px; font-weight:650; }
.skill-guide { display:flex; align-items:flex-start; gap:12px; padding:17px; border-radius:19px; background:#f0ebf7; }
.skill-guide h3 { font-size:17px; margin-bottom:5px; }
.skill-guide p { font-size:12px; line-height:1.6; color:var(--muted); }
.skill-guide .btn { margin-top:12px; }
.guide-result { padding:0; }
.guide-result:not(:empty) { border-top:1px solid var(--line); padding-top:18px; }
.guide-answer { font-size:15px; line-height:1.65; white-space:pre-wrap; margin:10px 0; overflow-wrap:anywhere; }
.guide-result .btn { margin-top:14px; }
@media (max-width:1120px) { .trip-layout { grid-template-columns:minmax(0,1fr); } .trip-wrap { max-width:680px; } .trip-side { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; } }
@media (max-width:850px) { .trip-side { display:flex; } }
@media (max-width:680px) {
  .trip-pane { padding:23px 13px 32px; }
  .trip-heading { gap:12px; margin-bottom:20px; flex-wrap:wrap; }
  .trip-heading h2 { font-size:29px; max-width:370px; }
  .trip-phase { font-size:10px; margin-top:0; }
  .trip-layout,.trip-main,.trip-side { gap:14px; }
  .trip-card,.trip-ask,.trip-job { padding:20px 17px; border-radius:21px; }
  .trip-correction { padding-block:8px; }
  .trip-card h3,.trip-ask h3,.trip-job h3 { font-size:20px; }
  .trip-hint,.trip-check small { font-size:12px; }
  .trip-check { font-size:13px; padding-block:6px; }
  .trip-text-button { min-height:44px; font-size:11px; }
  .trip-task-check { min-height:44px; height:44px; width:44px; flex-basis:44px; }
  .trip-stay-actions .btn { min-height:44px; font-size:11px; }
  .trip-edit-form input { font-size:14px; }
  .trip-edit-form .field { font-size:11px; }
  .trip-primary { width:100%; }
  .trip-task strong { font-size:13px; }
  .trip-day-number { font-size:11px; }
  .trip-days ul,.trip-questions ul { font-size:13px; }
  .trip-days > li { gap:9px; }
  .trip-job-compact { padding:14px 17px; }
  .tabs .tab { flex-shrink:0; }
}
@media (max-width:350px) { .trip-pane { padding-inline:10px; } .trip-heading h2 { font-size:26px; } .trip-card,.trip-ask,.trip-job { padding-inline:14px; } .trip-edit-form { grid-template-columns:minmax(0,1fr); } .trip-facts span { font-size:10px; } }

.trip-find-stays { display:flex; flex-wrap:wrap; align-items:center; column-gap:12px; margin-top:9px; font-size:10px; color:var(--muted); }
.trip-find-stays a { color:var(--accent); font-weight:650; min-height:44px; display:flex; align-items:center; }

.trip-wrap input:not([type=checkbox]),.trip-wrap textarea,.guide-form > textarea { font:inherit; font-size:14px; width:100%; border:1px solid #dedfd6; border-radius:13px; padding:12px 13px; background:#fff; color:var(--ink); outline:none; }
.trip-wrap input:not([type=checkbox]):focus,.trip-wrap textarea:focus,.guide-form > textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px #194f3c12; }
.trip-alerts { position:sticky; top:0; z-index:3; }
.trip-alerts > .error-text:not([hidden]) { background:#fff1eb; border:1px solid #ebd0c4; border-radius:14px; padding:12px 14px; margin-bottom:12px; box-shadow:0 4px 14px #30262008; }
@media (max-width:680px) { .trip-wrap input:not([type=checkbox]),.trip-wrap textarea,.guide-form > textarea { font-size:16px; } }

/* Conversation-native Sidekicks. The same forest, lime and lilac, with room to breathe. */
.sidekick-hub { display:grid; gap:24px; }
.hub-intro { color:var(--muted); font-size:14px; margin-top:-3px; }
.hub-section { display:grid; gap:10px; }
.hub-label { color:var(--muted); font-size:10px; font-weight:750; letter-spacing:.12em; margin:0 0 1px; }
.hub-card.skill-card { padding:17px; border-radius:20px; display:grid; gap:13px; }
.hub-card-head { display:flex; align-items:center; gap:11px; min-width:0; }
.hub-card-head .bot-icon { width:42px; height:42px; flex:0 0 42px; font-size:23px; border-radius:14px; }
.hub-card h3 { font-size:16px; line-height:1.3; }
.hub-card .small { font-size:11px; line-height:1.5; margin-top:3px; }
.hub-card .skill-classification { flex:0 0 auto; font-size:9px; white-space:nowrap; padding:5px 7px; margin:0; }
.hub-card .skill-description { font-size:13px; line-height:1.55; margin:0; }
.hub-card.is-installed { background:#f8faf2; border-color:#e6eadb; }
.hub-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.hub-actions .btn { min-height:40px; flex:1 1 auto; padding:10px 12px; font-size:12px; }
.hub-actions .icon-btn { flex:0 0 40px; width:40px; height:40px; }
.hub-guide { display:flex; align-items:center; gap:12px; padding:16px; border-radius:18px; background:var(--lilac-soft); color:var(--lilac-ink); flex-wrap:wrap; }
.hub-guide strong { font-size:13px; }
.hub-guide p { font-size:11px; margin-top:4px; line-height:1.5; }
.hub-guide .btn { padding:9px 11px; font-size:11px; min-height:40px; background:#ffffff80; }
.recipient-card { border:1px solid #dcd3ee; border-bottom:0; background:#f3effa; border-radius:19px 19px 0 0; padding:12px 14px 13px; margin:0 9px -3px; }
.recipient-heading { display:flex; align-items:center; gap:10px; }
.recipient-glyph { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; border-radius:12px; background:var(--lilac); color:var(--lilac-ink); font-size:20px; font-weight:750; }
.recipient-glyph.tambola { background:var(--accent); color:var(--lime); font-size:15px; }
.recipient-heading strong { display:block; color:var(--ink); font-size:12px; line-height:1.4; }
.recipient-heading .grow > span { display:block; font-size:10px; line-height:1.45; color:var(--muted); }
.recipient-heading .icon-btn { width:34px; height:34px; flex:0 0 34px; min-height:34px; }
.sidekick-starters { display:flex; flex-wrap:wrap; gap:6px; padding-top:10px; }
.starter { text-align:left; font-size:11px; line-height:1.4; background:#fff; border:1px solid #ded6ea; border-radius:11px; padding:9px 11px; color:#4d4261; min-height:36px; }
.starter:hover { background:#faf8ff; border-color:#a58bc9; }
.recipient-consent { display:flex; gap:9px 15px; flex-wrap:wrap; margin-top:10px; }
.recipient-consent label { display:flex; align-items:center; gap:6px; font-size:11px; color:#59476d; min-height:28px; }
.recipient-consent input { width:16px; height:16px; accent-color:var(--accent); margin:0; }
.message-recipient { display:flex; align-items:center; gap:5px; color:#67478b; font-size:10px; font-weight:650; margin:0 0 5px; }
.message.own .message-recipient { color:#416344; }
.sidekick-result.message { max-width:590px; margin:14px 0 16px 42px; }
.sidekick-result-body { width:100%; min-width:0; border:1px solid #e1d8ef; background:#fff; border-radius:8px 22px 22px; padding:16px 18px 10px; box-shadow:0 3px 12px #26302404; }
.sidekick-result-heading { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.sidekick-result-heading strong { font-size:12px; color:var(--ink); }
.result-status { display:block; color:#76648b; font-size:10px; margin-top:3px; }
.sidekick-result-body h3 { font-size:17px; line-height:1.35; margin-bottom:6px; }
.result-summary { font-size:13px; line-height:1.6; overflow-wrap:anywhere; color:#53604e; white-space:pre-line; }
.result-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.result-actions .btn { font-size:11px; min-height:38px; padding:9px 12px; }
.sidekick-result .message-time { display:block; margin-top:10px; text-align:right; }
.balance-mini { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-top:12px; }
.balance-mini strong { font-size:23px; letter-spacing:-.04em; }
.balance-mini span { color:var(--muted); font-size:10px; }
.balance-transfer { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:12px; padding:9px 0; border-bottom:1px solid var(--line); }
.chat-plan-preview { display:grid; gap:16px; }
.chat-plan-preview .form-actions { position:sticky; bottom:-1px; background:#fff; padding:14px 0 2px; margin-top:0; }
/* Keep reactions in flow so extra emoji rows reserve space, while the first
   row nestles over the bubble border. Never cover message text or timestamps. */
.reaction-strip { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:3px; margin:-5px 7px 0; }
.reaction-strip:empty { display:none; }
.own .reaction-strip { justify-content:flex-end; }
.reaction-chip { display:flex; align-items:center; gap:4px; min-height:24px; padding:2px 7px; border-radius:999px; font-size:12px; line-height:1.4; color:var(--muted); background:#fff; border:1px solid #d7dfce; box-shadow:0 1px 2px #20382e0c; }
.reaction-chip.is-mine { border-color:#77965a; background:#edf5df; color:var(--accent); }
.reaction-chip:hover { border-color:var(--accent); }
.reaction-picker { display:flex; justify-content:space-between; gap:4px; padding:7px; border-radius:22px; background:#f3f5ed; margin-bottom:4px; }
.reaction-choice { display:grid; place-items:center; width:44px; min-height:44px; font-size:25px; border-radius:14px; flex:1 1 0; }
.reaction-choice:hover, .reaction-choice[aria-pressed=true] { background:#e0eccb; transform:translateY(-2px); }
.reply-jump { display:block; text-align:left; width:100%; cursor:pointer; color:inherit; }
.reply-jump:hover { background:#e0e8d580; }
.message-highlight .bubble { animation:reply-highlight 1.8s ease-out; }
@keyframes reply-highlight { 0%,35% { box-shadow:0 0 0 4px #b7cc74; } 100% { box-shadow:0 0 0 0 transparent; } }
@media(max-width:680px) {
  .hub-card.skill-card { padding:15px; }
  .sidekick-hub { gap:22px; }
  .sidekick-result.message { margin-left:31px; margin-right:2px; width:calc(100% - 33px); }
  .sidekick-result-body { padding:14px 15px 9px; }
  .sidekick-result-body h3 { font-size:16px; }
  .result-actions .btn { min-height:42px; }
  .recipient-card { margin-left:5px; margin-right:5px; padding:11px 12px 12px; }
  .recipient-consent { gap:2px 12px; }
  .reaction-chip { min-height:26px; padding:3px 7px; }
  .reaction-choice { width:36px; font-size:23px; }
  .reaction-picker { gap:0; padding:5px; }
  .hub-guide { gap:10px; }
  .hub-guide .btn { width:100%; }
}
@media(max-width:380px) {
  .hub-card-head { flex-wrap:wrap; gap:9px; }
  .hub-card-head .skill-classification { margin-left:51px; margin-top:-4px; }
  .hub-card-head .grow { flex-basis:calc(100% - 55px); }
  .recipient-heading .grow > span { font-size:9px; }
  .recipient-consent label { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) { .message-highlight .bubble { animation:none; outline:2px solid #b7cc74; } .reaction-choice:hover { transform:none; } }

/* The message renderer owns scroll anchoring; browser anchoring must not apply a second offset. */
.messages-scroll { overflow-anchor:none; }

/* Chat-only Sidekicks keep the workspace quiet. */
.social-controls{display:flex;flex-wrap:wrap;gap:9px 12px;margin-top:10px}
.social-controls>.field{flex:1 1 110px;min-width:0}.social-controls select{width:100%;min-width:0;font-size:13px;padding:8px 10px;min-height:40px}
.social-context-note{flex-basis:100%;font-size:11px;line-height:1.4;margin:0}
.recipient-glyph.roast{background:#ffe3bd;color:#824514}.recipient-glyph.factcheck{background:#dcf0e6;color:#19573f}.recipient-glyph.summarizer{background:#e6dcfb;color:#564078}
.social-reply{min-width:0}.fact-citation{display:inline;padding:2px 3px;color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.recap-points{display:grid;gap:10px;margin-top:12px}.recap-point{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 7px;font-size:13px;line-height:1.5}.recap-label{font-size:10px;font-weight:750;color:var(--accent)}
.recap-sources{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%}.recap-source{font-size:10px;min-height:26px;padding:3px 7px;border-radius:8px;background:var(--canvas);color:var(--accent);border:1px solid var(--line)}
.social-coverage{font-size:10px;color:var(--muted);margin-top:12px;line-height:1.5}

.social-result .sidekick-result-body{padding:13px 15px 9px}
.social-result .result-actions:empty{display:none}
.social-result .message-time{margin-top:6px}
.social-result .social-coverage{margin-top:8px}
.social-result .result-summary{font-size:14px;line-height:1.5;color:var(--ink)}

/* Shared Moment home and compact in-conversation navigation. */
.app-shell.home-open { display:flex; background:var(--conversation); }
.app-shell.home-open > .sidebar { display:none; }
.app-shell.home-open > .main { display:flex; flex:1; background:var(--conversation); }
.moments-home { width:100%; max-width:820px; margin:0 auto; flex:1; min-height:0; display:flex; flex-direction:column; background:var(--surface); border-inline:1px solid var(--line); }
.inbox-head { padding:31px 30px 21px; flex-shrink:0; background:var(--surface); border-bottom:1px solid var(--line); }
.inbox-brand-row { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.profile-button { display:grid; place-items:center; padding:0; width:44px; height:44px; border-radius:50%; flex-shrink:0; }
.profile-button .avatar { width:40px; height:40px; flex-basis:40px; border-radius:50%; background:var(--lilac); color:var(--lilac-ink); font-size:13px; }
.profile-button:hover { background:var(--lilac-soft); }
.inbox-title-row { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:33px; }
.inbox-title-row h1,.inbox-home-title { font-size:31px; line-height:1.2; letter-spacing:-.05em; font-weight:750; }
.inbox-home-title { text-align:left; border-radius:9px; padding:4px 0; }
.inbox-actions { display:flex; align-items:center; gap:8px; }
.inbox-actions .icon-btn { width:44px; height:44px; flex-basis:44px; background:transparent; }
.inbox-actions .icon-btn:hover { background:var(--lilac-soft); }
.inbox-add { min-height:44px; border-radius:15px; padding:10px 15px; font-size:14px; background:var(--lime); color:var(--accent); gap:5px; }
.inbox-add:hover { background:var(--lime-hover); }
.inbox-search { display:flex; gap:5px; align-items:center; margin-top:16px; }
.moment-search { flex:1; min-width:0; width:100%; border:1px solid var(--control-line); border-radius:15px; padding:12px 14px; background:var(--paper); color:var(--ink); font-size:16px; min-height:47px; }
.inbox-search .icon-btn { background:transparent; flex-shrink:0; }
.moment-cards { padding:10px 17px 24px; overflow-y:auto; flex:1; min-height:0; overscroll-behavior:contain; background:var(--paper); }
.moment-empty { padding:clamp(36px,8vh,85px) 15px 32px; text-align:center; color:var(--muted); }
.moment-empty-mark { width:66px; height:66px; display:grid; place-items:center; background:var(--lilac); color:var(--lilac-ink); border-radius:24px; margin:0 auto 22px; transform:rotate(-5deg); }
.moment-empty-mark svg { transform:rotate(5deg); }
.moment-empty h2,.moment-empty h3 { font-size:25px; letter-spacing:-.035em; color:var(--ink); max-width:300px; margin:0 auto 10px; }
.moment-empty p { font-size:14px; line-height:1.6; }
.moment-empty .btn { display:flex; margin:24px auto 3px; font-size:14px; border-radius:16px; }
.moment-empty .phone-link { font-size:12px; }
.sidebar { background:var(--surface); }
.inbox-head.is-sidebar { padding:25px 22px 16px; }
.is-sidebar .brand-symbol { width:34px; height:34px; flex-basis:34px; }
.is-sidebar .brand-wordmark { width:121px; height:31px; flex-basis:121px; }
.is-sidebar .inbox-brand-row { gap:6px; }
.is-sidebar .inbox-title-row { margin-top:27px; gap:6px; }
.is-sidebar .inbox-home-title { font-size:25px; }
.is-sidebar .inbox-actions { gap:3px; }
.is-sidebar .inbox-add { padding:9px 11px; font-size:12px; }
.sidebar .group-title { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.sidebar .moment-empty { padding:32px 12px; }
.sidebar .moment-empty h3 { font-size:21px; }
.sidebar .moment-empty p { font-size:12px; }
.moment-starters { display:flex; flex-wrap:wrap; gap:8px; }
.moment-starter { border:1px solid #dfe4d7; padding:9px 14px; border-radius:999px; font-size:12px; font-weight:600; background:#fff; min-height:44px; }
.moment-starter:hover,.moment-starter[aria-pressed=true] { background:var(--lilac); border-color:var(--lilac); color:#33284b; }
@media(max-width:680px),(max-width:900px) and (pointer:coarse) {
  .moments-home { border-inline:0; }
  .inbox-head { padding:calc(21px + env(safe-area-inset-top)) 23px 17px; }
  .inbox-title-row { margin-top:29px; }
  .inbox-title-row h1 { font-size:29px; }
  .moment-cards { padding:8px 10px calc(22px + env(safe-area-inset-bottom)); }
}
@media(max-width:360px) {
  .inbox-head { padding-left:18px; padding-right:18px; }
  .inbox-actions { gap:3px; }
  .inbox-add { padding:10px 13px; }
  .inbox-title-row h1 { font-size:28px; }
}
@media(max-height:520px) and (min-width:681px) { .inbox-head { padding-top:16px; } .inbox-title-row { margin-top:17px; } }

.create-starters { margin:0 0 2px; gap:7px; }
.create-starters .moment-starter { font-size:11px; min-height:38px; padding:8px 12px; }
.moment-create .intro { margin-bottom:0; }
.moment-create-hint { font-size:12px; color:#554175; padding:13px 15px; background:var(--lilac-soft); border-radius:13px; }
.moment-create-note { font-size:12px; color:var(--muted); }
.moment-invitation { padding:23px; border-radius:21px; background:var(--lilac); color:#33284b; overflow-wrap:anywhere; }
.moment-invitation .eyebrow { color:#554175; font-size:10px; }
.moment-invitation h2, .moment-invitation h3 { font-size:28px; line-height:1.16; margin:13px 0 10px; }
.moment-invitation p { font-size:13px; }
.moment-welcome { width:100%; max-width:480px; margin:30px auto; padding:27px 26px; border:1px solid #e1e9d8; border-radius:25px; background:#ffffffd9; text-align:left; }
.moment-welcome .eyebrow { color:var(--accent); font-size:10px; }
.moment-welcome h2 { margin:14px 0 12px; font-size:30px; line-height:1.14; overflow-wrap:anywhere; }
.moment-welcome > p { color:var(--muted); font-size:14px; overflow-wrap:anywhere; white-space:pre-wrap; }
.moment-welcome-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:24px; }
.moment-welcome-actions .btn { font-size:12px; padding:11px 14px; }
.moment-welcome .moment-welcome-hint { margin-top:18px; font-size:11px; line-height:1.65; }
.chat-header .back { display:flex; }
@media (min-width:681px) { .chat-header .back { width:32px; flex-basis:32px; margin-right:0; } }

@media (forced-colors:active) { .moments-home, .inbox-head, .moment-search { border-color:CanvasText; } }

/* Shared profile assets and the existing home header. Card layout is in polish.css. */
.moments-home { max-width:1100px; background:var(--paper); }
.moments-home .inbox-head { padding:24px 24px 18px; border-bottom:0; background:var(--paper); }
.moments-home .inbox-title-row { margin-top:24px; }
.moments-home .inbox-title-row h1 { font-size:27px; letter-spacing:-.045em; }
.moments-home .inbox-add { background:var(--lilac); color:var(--ink); }
.avatar { position:relative; overflow:hidden; }
.profile-photo,.default-avatar { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.profile-photo-preview { display:flex; justify-content:center; padding:14px; }
.profile-photo-preview .avatar { width:96px; height:96px; flex-basis:96px; border-radius:50%; font-size:30px; }
@media(max-width:680px),(max-width:900px) and (pointer:coarse){
 .moments-home .inbox-head { padding:calc(18px + env(safe-area-inset-top)) 18px 17px; }
 .moments-home .inbox-title-row { margin-top:22px; }
 .moments-home .inbox-title-row h1 { font-size:26px; }
}
@media(max-width:360px){
 .moments-home .inbox-head { padding-inline:14px; }
 .moments-home .inbox-title-row h1 { font-size:24px; }
 .inbox-actions { gap:0; }
 .inbox-add { padding:10px 11px; }
}


/* Small lifecycle controls, using the existing palette and no animated rewards. */
.lifetime-choice{border:1px solid #dce3d5;border-radius:999px;padding:9px 14px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer;min-height:40px}
.lifetime-choice[aria-pressed=true]{background:#e6eed9;border-color:#b9cba7;font-weight:750}
.lifetime-fields{display:grid;gap:10px;padding:15px;border:1px solid #dde3d8;border-radius:18px;background:#f6f8f1}
.lifetime-choices{display:flex;gap:8px}.lifetime-choice{flex:1}.lifetime-hint{margin:0}.lifetime-fields input{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.moment-lifetime-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-block:1px solid #e5e8e0;font-size:14px}
.moment-achievements{padding:18px;border:1px solid #dfe5d5;border-radius:20px;background:linear-gradient(125deg,#eef3df,#f2ecff)}
.moment-achievement-badge{font-size:13px;font-weight:750;color:#466346;display:inline-block}
.moment-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 10px}.moment-stats>div{display:flex;flex-direction:column;gap:4px}.moment-stats strong{font-size:25px;letter-spacing:-1px}.moment-stats span{font-size:12px}.moment-achievements p{margin:0;font-size:11px}

/* A quiet arrival. One reason to join; one action to take. */
.auth-page { min-height:100svh; display:flex; align-items:center; justify-content:center; padding:48px 24px; background:var(--canvas); }
.auth-box { width:100%; max-width:360px; }
.entry-brand { display:flex; justify-content:center; }
.entry-title { font-size:44px; line-height:1.08; letter-spacing:-.055em; font-weight:750; text-align:center; margin:42px -6px 38px; }
.entry-step-title { font-size:36px; }
.auth-box .phone-auth-form { margin-top:0; }
.auth-box .btn { width:100%; }
.auth-box .phone-primary { background:var(--lime); color:var(--accent); min-height:56px; justify-content:center; gap:12px; }
.auth-box .phone-primary:hover:not(:disabled) { background:var(--lime-hover); }
.auth-box .phone-primary:disabled { opacity:.62; }
.auth-box .phone-legacy { color:var(--muted); font-size:12px; font-weight:500; margin-top:15px; }
.auth-box .phone-legacy + .phone-legacy { margin-top:0; }
.auth-box .field input { background:var(--paper); }
.entry-status { font-size:12px; color:var(--muted); text-align:center; margin-top:14px; }
.entry-invitation { margin:-15px 0 25px; text-align:center; font-size:13px; overflow-wrap:anywhere; }
.entry-invitation span { display:block; color:var(--muted); margin-bottom:4px; }
.entry-invitation strong { font-weight:650; }
.auth-box [data-phone-expiry]:empty { display:none; }

/* Three short, user-paced scenes. Nothing starts until the person chooses. */
.intro-page { max-width:700px; min-height:100svh; margin:0 auto; padding:30px 32px; display:flex; flex-direction:column; color:var(--ink); }
.intro-top { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.intro-skip,.intro-back { min-height:44px; padding:10px 13px; border-radius:14px; font-size:13px; font-weight:600; color:var(--muted); }
.intro-skip:hover,.intro-back:hover { background:var(--lilac-soft); color:var(--ink); }
.intro-content { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px 0; }
.intro-art { width:min(100%,350px); height:258px; position:relative; margin:8px auto 30px; }
.intro-copy { text-align:center; max-width:375px; }
.intro-copy h1 { font-size:36px; line-height:1.1; letter-spacing:-.055em; margin:0 0 16px; outline-offset:6px; }
.intro-copy h1:focus { outline:none; }
.intro-copy p { max-width:300px; margin:auto; color:var(--muted); font-size:16px; line-height:1.6; text-wrap:pretty; }
.intro-footer { width:100%; max-width:380px; margin:0 auto; padding:8px 0 0; }
.intro-progress { display:flex; justify-content:center; gap:0; margin:0 0 18px; }
.intro-dot { width:38px; height:44px; display:grid; place-items:center; border-radius:12px; }
.intro-dot::before { content:''; width:7px; height:7px; background:#c8d0c0; border-radius:9px; transition:width 160ms ease; }
.intro-dot[aria-current=step]::before { width:23px; background:var(--accent); }
.intro-actions { display:flex; align-items:center; justify-content:flex-end; gap:16px; }
.intro-next { min-height:52px; border-radius:17px; flex:1; background:var(--lime); color:var(--accent); justify-content:center; }
.intro-next:hover:not(:disabled) { background:var(--lime-hover); }
.intro-footer .error-text { text-align:center; margin-bottom:14px; }
.intro-plan { position:absolute; width:245px; min-height:158px; border-radius:27px; padding:24px; font-size:19px; font-weight:700; letter-spacing:-.03em; box-shadow:0 12px 22px #194f3c09; }
.intro-plan-back { top:10px; right:4px; transform:rotate(7deg); background:var(--lilac); color:var(--lilac-ink); }
.intro-plan-front { top:84px; left:3px; transform:rotate(-5deg); background:var(--accent); color:var(--lime); }
.intro-plan-mark { display:block; font-size:28px; margin-bottom:7px; }
.intro-people { display:flex; margin-top:19px; }
.intro-people .avatar { width:31px; height:31px; flex-basis:31px; font-size:9px; border-radius:50%; border:2px solid var(--accent); margin-right:-7px; }
.intro-link { display:flex; align-items:center; justify-content:center; gap:8px; width:260px; padding:18px 14px; border-radius:20px; color:var(--accent); background:var(--lime); font-size:14px; font-weight:650; position:absolute; top:25px; left:calc(50% - 130px); transform:rotate(-5deg); }
.intro-bubble { position:absolute; display:flex; align-items:center; gap:10px; font-size:17px; font-weight:650; }
.intro-bubble .avatar { width:39px; height:39px; flex-basis:39px; border-radius:15px; font-size:11px; }
.intro-bubble > span:not(.avatar) { padding:16px 21px; border-radius:23px 23px 23px 6px; background:var(--paper); box-shadow:0 7px 22px #194f3c08; }
.intro-bubble-one { top:110px; left:10px; transform:rotate(-2deg); }
.intro-bubble-two { top:185px; right:3px; transform:rotate(3deg); }
.intro-bubble-two > span:not(.avatar) { background:var(--lilac); border-radius:23px 23px 6px 23px; }
.intro-sidekick { display:grid; grid-template-columns:45px 1fr; column-gap:12px; width:255px; border-radius:24px; position:absolute; padding:17px 20px; box-shadow:0 10px 25px #194f3c09; }
.intro-sidekick > span { grid-row:span 2; display:grid; place-items:center; font-size:26px; font-weight:750; }
.intro-sidekick strong { font-size:17px; letter-spacing:-.025em; }
.intro-sidekick small { font-size:12px; margin-top:3px; }
.intro-goat { top:12px; left:5px; transform:rotate(-6deg); background:var(--lime); color:var(--accent); }
.intro-trip { top:98px; right:0; transform:rotate(5deg); background:var(--lilac); color:var(--lilac-ink); }
.intro-game { top:182px; left:20px; transform:rotate(-3deg); background:var(--accent); color:#f2f6e9; }
@media(max-width:680px) {
  .auth-page { padding:max(38px,env(safe-area-inset-top)) 27px max(34px,env(safe-area-inset-bottom)); }
  .entry-title { font-size:40px; margin:40px -4px 34px; }
  .entry-step-title { font-size:33px; }
  .intro-page { padding:calc(22px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); }
  .intro-copy h1 { font-size:32px; }
  .intro-copy p { font-size:15px; }
  .intro-art { margin-top:15px; margin-bottom:26px; }
}
@media(max-width:360px) {
  .auth-page { padding-left:23px; padding-right:23px; }
  .entry-title { font-size:36px; }
  .intro-page { padding-left:19px; padding-right:19px; }
  .intro-top { gap:6px; }
  .intro-top .brand-symbol { width:34px; height:34px; flex-basis:34px; }
  .intro-top .brand-wordmark { width:121px; height:31px; flex-basis:121px; }
  .intro-copy h1 { font-size:29px; }
  .intro-art { height:249px; }
  .intro-plan { width:230px; padding:21px; }
  .intro-sidekick { width:240px; }
}
@media(max-height:620px) {
  .auth-page { align-items:flex-start; padding-top:30px; padding-bottom:30px; }
  .entry-title { margin-top:26px; margin-bottom:26px; }
  .intro-art { margin-top:15px; margin-bottom:22px; }
  .intro-content { padding-top:8px; }
}
@media(max-height:520px) and (min-width:520px) {
  .intro-page { padding:14px 24px; max-width:760px; }
  .intro-content { flex-direction:row; gap:25px; padding:5px 0; min-height:190px; }
  .intro-art { width:270px; flex:0 0 270px; height:258px; margin:-35px -28px; transform:scale(.7); }
  .intro-copy { max-width:300px; text-align:left; }
  .intro-copy h1 { font-size:27px; margin-bottom:12px; }
  .intro-copy p { font-size:14px; }
  .intro-footer { display:flex; align-items:center; gap:18px; max-width:none; padding:0; }
  .intro-progress { margin:0; flex:1; justify-content:flex-start; }
  .intro-actions { min-width:235px; }
  .intro-next { min-height:44px; }
  .intro-footer .error-text { flex:1; margin:0; font-size:12px; }
}
/* Keep all three scenes and their actions in view on short, narrow phones. */
@media(max-width:380px) and (max-height:720px) {
  .intro-page { padding-top:calc(18px + env(safe-area-inset-top)); padding-bottom:calc(18px + env(safe-area-inset-bottom)); }
  .intro-content { padding:12px 0; }
  .intro-art { margin-top:10px; }
  .intro-progress { margin-bottom:10px; }
}
@media(forced-colors:active) { .intro-dot::before { background:CanvasText; forced-color-adjust:none; } }

/* OTP leads; passkeys remain a smaller optional sign-in action. */
.passkey-entry{gap:10px}.passkey-entry .error-text:empty{display:none}.passkey-entry .phone-primary{width:100%;justify-content:center;min-height:56px}.passkey-otp{display:block;width:max-content;margin:6px auto 0;align-self:center;text-align:center;min-height:44px;font-size:14px}.passkey-note{text-align:center;color:var(--muted);font-size:12px;line-height:1.4;margin:0}.passkey-record{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.passkey-record p{margin:5px 0 0}.passkey-record .phone-link{flex-shrink:0;min-height:44px}

/* Useful lines to discuss, not another control dashboard. */
.sidekick-summary-pane { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; background:var(--canvas); }
.sidekick-summary { width:100%; max-width:700px; margin:0 auto; padding:29px 30px 35px; color:var(--ink); }
.summary-header { margin-bottom:26px; }
.summary-header h2 { margin:0; font-size:29px; line-height:1.15; letter-spacing:-.045em; overflow-wrap:anywhere; }
.summary-headline { margin-top:8px; font-size:14px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.summary-guidance { margin-top:13px; font-size:12px; color:var(--accent); }
.summary-announcement { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.summary-sections { display:flex; flex-direction:column; gap:25px; }
.summary-section { min-width:0; }
.summary-section h3 { margin:0 0 10px; font-size:11px; line-height:1.5; letter-spacing:.02em; font-weight:650; color:var(--muted); }
.summary-row-list { border:1px solid var(--frame-line,var(--line)); border-radius:19px; background:var(--paper); overflow:hidden; }
.summary-row { min-width:0; }
.summary-row+.summary-row { border-top:1px solid var(--line); }
.summary-discuss { display:flex; width:100%; align-items:center; gap:14px; text-align:left; min-height:73px; padding:16px 18px; border-radius:0; color:inherit; background:transparent; }
.summary-discuss:hover:not(:disabled) { background:var(--accent-soft); }
.summary-discuss:active:not(:disabled) { background:#e2edce; }
.summary-discuss:focus-visible { position:relative; outline:2px solid var(--accent); outline-offset:-4px; z-index:1; }
.summary-row-copy { display:flex; flex:1; min-width:0; flex-direction:column; align-items:flex-start; gap:5px; }
.summary-row-label { font-size:11px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.summary-row-value { font-size:16px; font-weight:600; line-height:1.4; letter-spacing:-.015em; overflow-wrap:anywhere; white-space:pre-wrap; }
.summary-row[data-kind=balance] .summary-row-value,.summary-row[data-kind=settlement] .summary-row-value,.summary-row[data-kind=expense] .summary-row-value { font-variant-numeric:tabular-nums; }
.summary-row-arrow { flex:0 0 auto; font-size:17px; line-height:1; color:var(--accent); opacity:.7; }
.summary-row-meta { display:flex; align-items:center; flex-wrap:wrap; gap:5px 9px; margin-top:2px; }
.summary-row-attribution { font-size:10px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.summary-row-status { color:var(--lilac-ink); font-size:10px; line-height:1.4; padding:4px 7px; background:var(--lilac-soft); border:1px solid transparent; border-radius:7px; }
.summary-row[data-status=legacy] .summary-row-status { color:var(--muted); background:var(--surface,var(--canvas)); border-color:var(--line); }
.summary-row-actions { display:flex; flex-wrap:wrap; column-gap:17px; align-items:center; padding:0 18px 7px; }
.summary-row-actions button { min-height:36px; padding:5px 0; color:var(--accent); font-size:11px; line-height:1.5; text-align:left; background:transparent; border-radius:6px; }
.summary-row-actions button:hover:not(:disabled) { text-decoration:underline; text-underline-offset:4px; }
.summary-footer { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding-top:25px; }
.summary-ask,.summary-board { border:1px solid transparent; border-radius:14px; padding:12px 18px; font-size:13px; font-weight:650; line-height:1.4; min-height:46px; color:var(--accent); background:var(--lime); }
.summary-ask:hover:not(:disabled),.summary-board:hover:not(:disabled) { background:var(--lime-hover); }
.summary-history,.summary-more,.summary-retry { padding:9px 4px; min-height:44px; color:var(--accent); font-size:12px; font-weight:600; line-height:1.4; border-radius:8px; }
.summary-more { margin-top:4px; }
.summary-history:hover:not(:disabled),.summary-more:hover:not(:disabled),.summary-retry:hover:not(:disabled) { text-decoration:underline; text-underline-offset:4px; }
.summary-empty { padding:22px 0 8px; color:var(--muted); font-size:14px; line-height:1.6; max-width:420px; }
.summary-connection { padding:11px 15px; margin:0 0 19px; border:1px solid var(--lilac); border-radius:14px; background:var(--lilac-soft); color:var(--lilac-ink); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px 15px; }
.summary-connection p { flex:1; min-width:150px; font-size:12px; line-height:1.5; }
.summary-connection .summary-retry { color:inherit; }
@media (max-width:680px),(max-width:900px) and (pointer:coarse) {
  .sidekick-summary { padding:25px 20px calc(30px + env(safe-area-inset-bottom)); }
  .summary-header { margin-bottom:23px; }
  .summary-header h2 { font-size:27px; }
  .summary-headline { font-size:13px; }
  .summary-discuss { padding:15px 16px; gap:10px; }
  .summary-row-value { font-size:16px; }
  .summary-row-actions { padding-left:16px; padding-right:16px; }
  .summary-row-actions button { min-height:44px; }
}
@media (max-width:360px) { .sidekick-summary { padding-left:16px; padding-right:16px; } .summary-discuss { padding-left:14px; padding-right:14px; } .summary-row-actions { padding-left:14px; padding-right:14px; } }
@media (prefers-reduced-motion:reduce) { .sidekick-summary button { transition:none; animation:none; } }
@media (forced-colors:active) {
  .summary-row-list,.summary-row+.summary-row,.summary-row-status,.summary-connection,.summary-ask,.summary-board { border-color:CanvasText; }
  .summary-discuss:focus-visible { outline-color:Highlight; }
  .summary-row-arrow { opacity:1; }
}

/* Saved work sits over the conversation; closing it keeps the exact chat draft. */
.dialog.sidekick-context-dialog { width:min(680px,100%); max-height:min(82dvh,calc(var(--app-height,100dvh) - 24px)); }
.sidekick-context-dialog .dialog-body { display:flex; flex-direction:column; min-height:0; padding:0; overflow:hidden; }
.sidekick-context-dialog .sidekick-summary-pane { max-height:65dvh; background:var(--paper); }
.sidekick-context-dialog .sidekick-summary,.sidekick-context-dialog .splitzy-summary,.sidekick-context-dialog .nudge-summary { padding:12px 22px 24px; }
.sidekick-context-dialog .summary-header h2,.sidekick-context-dialog .splitzy-heading h2,.sidekick-context-dialog .nudge-header h2 { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.sidekick-context-dialog .summary-header { margin-bottom:18px; }
.sidekick-context-dialog .summary-header .summary-headline { margin-top:0; }
.sidekick-context-overlay { top:var(--viewport-offset,0px); bottom:auto; height:var(--app-height,100dvh); }
@media(max-width:600px){
  .sidekick-context-overlay { align-items:flex-end; padding:0; }
  .dialog.sidekick-context-dialog { width:100%; max-height:82%; border-radius:25px 25px 0 0; }
  .sidekick-context-dialog .dialog-head h2 { font-size:19px; }
  .sidekick-context-dialog .sidekick-summary-pane { max-height:calc(var(--app-height,100dvh) * .68); }
  .sidekick-context-dialog .sidekick-summary,.sidekick-context-dialog .splitzy-summary,.sidekick-context-dialog .nudge-summary { padding:8px 18px calc(22px + env(safe-area-inset-bottom)); }
}

/* One quiet doorway to Sidekicks; conversation remains the primary surface. */
.sidekick-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:8px 22px;border-bottom:1px solid var(--line,#d8dfd8);background:#f6f7f2;min-height:54px}
.sidekick-bar-label{font-size:12px;color:#526459}
.sidekick-launcher{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 11px;border:1px solid #cbd8c9;border-radius:12px;background:#fffefa;color:#194f3c;font-weight:700;font-size:13px;cursor:pointer}
.sidekick-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 4px;background:#edf2e9;border-radius:7px;font-size:11px}
.sidekick-shelf{display:grid;gap:10px}
.sidekick-shelf-card{display:flex;align-items:center;gap:13px;width:100%;min-width:0;padding:17px 14px;text-align:left;border:1px solid #d7ded3;border-radius:16px;background:#fffefa;color:#213b2f;cursor:pointer}
.sidekick-shelf-card>.grow{min-width:0;display:grid;gap:5px}.sidekick-shelf-card strong{font-size:16px}.shelf-headline{font-size:13px;color:#526459;overflow-wrap:anywhere}
.shelf-glyph{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#eaf1d8;font-weight:800;font-size:21px}
.sidekick-shelf-card[data-sidekick=trip] .shelf-glyph{background:#e9e1f7}.sidekick-shelf-card[data-sidekick=tambola] .shelf-glyph{background:#f3e7d7;font-size:16px}
.summary-pane{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#f4f6ef}
.sidekick-shelf-card:hover,.sidekick-launcher:hover{background:#f2f5ea}.sidekick-shelf-card:focus-visible,.sidekick-launcher:focus-visible,.summary-source-link:focus-visible{outline:3px solid #326941;outline-offset:3px}
.decision-card{display:grid;gap:8px;max-width:480px!important}.decision-eyebrow{font-size:11px;font-weight:700;letter-spacing:.025em;color:#53624b}.decision-title{font-size:16px}.decision-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:3px}.decision-actions .btn{min-height:36px}.decision-source{margin:0;padding:12px 14px;border-left:3px solid #b4c78c;background:#f4f5ed;color:#465749;max-height:160px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.trip-avatar{background:#e9e1f7;color:#4c3f6c}
.summary-source-link{border:0;background:transparent;color:#194f3c;padding:7px 0 2px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:32px;text-align:left}.summary-quote{margin-bottom:8px}.summary-quote p{white-space:pre-wrap;overflow-wrap:anywhere}.summary-retry-context{padding:12px;border:1px solid #d7ded3;border-radius:12px;background:#f6f7f1;display:grid;gap:8px}
@media(max-width:600px){.sidekick-bar{padding:7px 13px;min-height:51px}.sidekick-bar .btn{padding:6px 9px;min-height:36px}.sidekick-shelf-card{padding:15px 12px}.decision-actions .btn{font-size:12px;padding:7px 9px}.sidekick-bar-label{font-size:11px}}
@media(forced-colors:active){.sidekick-launcher,.sidekick-shelf-card,.summary-retry-context{border:1px solid ButtonText}.decision-source{border-left-color:Highlight}.sidekick-count{border:1px solid CanvasText}}

/* Compact Moment header: one doorway to the Sidekicks, no chat toolbar row. */
#chat-header { min-height:68px; padding:10px 15px 10px 6px; gap:6px; }
#chat-header>.back { display:flex; width:28px; flex-basis:28px; height:44px; min-height:44px; margin:0; padding:2px; }
#chat-header>.back svg { width:17px; height:17px; }
#chat-header>.avatar { display:flex; width:35px; height:35px; flex-basis:35px; border-radius:12px; font-size:12px; }
#chat-header .group-heading { min-width:0; padding:3px 0; }
#chat-header .group-add { display:grid; place-items:center; width:36px; flex-basis:36px; min-height:44px; height:44px; padding:0; border-radius:12px; }
#chat-header .group-add svg { width:21px; height:21px; }
#chat-header>.icon-btn:last-child { width:32px; flex-basis:32px; padding:4px; }
.sidekick-fan { position:relative; display:inline-block; width:56px; height:44px; flex:0 0 56px; border:0; border-radius:12px; padding:0; background:transparent; cursor:pointer; }
.sidekick-playing-card { position:absolute; left:16px; top:6px; display:grid; place-items:center; width:28px; height:33px; border:1.5px solid #fffefa; border-radius:9px; box-shadow:0 1px 4px #233d3125; font-size:17px; font-weight:800; background:#e8efcf; color:#294835; transform-origin:50% 95%; }
.sidekick-playing-card:nth-child(1) { transform:translateX(-10px) rotate(-17deg); }
.sidekick-playing-card:nth-child(2) { transform:rotate(-2deg); }
.sidekick-playing-card:nth-child(3) { transform:translateX(10px) rotate(14deg); }
.sidekick-fan[data-count="1"] .sidekick-playing-card,.sidekick-fan[data-count="0"] .sidekick-playing-card { transform:rotate(-7deg); }
.card-trip,.card-summarizer { background:#ded0fc; }.card-tambola { background:#f3dfb5;font-size:14px; }.card-roast { background:#ffded1; }.card-factcheck { background:#cfebdf; }.card-empty { background:#edf0e8; border-style:dashed; border-color:#a8b8a2; box-shadow:none; }
.fan-overflow { position:absolute; right:0; top:0; display:grid; place-items:center; height:15px; min-width:18px; padding:0 3px; border-radius:6px; background:#294835; color:#fffefa; font-size:9px; border:1px solid var(--surface); }
.sidekick-fan:focus-visible { outline:3px solid #326941; outline-offset:1px; }
.sidekick-fan:active { background:var(--lilac-soft); }
.sidekick-drawer-overlay { justify-content:flex-end; align-items:stretch; padding:0; }
.sidekick-drawer { width:min(365px,94vw); height:100%; max-height:100%; border-radius:25px 0 0 25px; padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom); animation:sidekick-drawer-in 190ms ease-out; }
@keyframes sidekick-drawer-in { from{transform:translateX(35px);opacity:.4}to{transform:none;opacity:1} }
.app-shell { position:relative; }
.app-shell.moment-swiping { overflow:hidden; }
#main.swipe-moving { position:relative; z-index:3; will-change:transform; box-shadow:-6px 0 25px #20382e20; user-select:none; -webkit-user-select:none; }
.moment-swipe-underlay { position:absolute; inset:0; z-index:1; overflow:hidden; pointer-events:none; background:var(--paper); }
.moment-swipe-underlay .moments-home { height:100%; width:100%; border:0; }
.moment-swipe-underlay .moment-cards { overflow:hidden; }
.swipe-to-sidekicks { display:flex; justify-content:flex-end; align-items:center; background:#ece5f7; }
.sidekick-swipe-hint { display:flex; flex-direction:column; align-items:center; gap:12px; width:135px; text-align:center; padding:12px; color:var(--ink); }
.sidekick-swipe-hint .sidekick-fan { scale:1.25; margin-bottom:8px; }.sidekick-swipe-hint strong{font-size:15px}.sidekick-swipe-hint>span:last-child{font-size:11px;line-height:1.4;color:var(--muted)}
@media(max-width:680px),(max-width:900px) and (pointer:coarse){
 #chat-header{min-height:64px;padding:calc(7px + env(safe-area-inset-top)) max(5px,env(safe-area-inset-right)) 7px max(3px,env(safe-area-inset-left));gap:4px}
 #chat-header h1{font-size:17px}#chat-header .subtitle{margin-top:3px}.sidekick-fan{width:52px;flex-basis:52px}.sidekick-playing-card{left:13px}
 .sidekick-drawer-overlay{align-items:stretch;justify-content:flex-end}.sidekick-drawer{width:min(365px,94vw);max-height:100%;height:100%;border-radius:23px 0 0 23px;animation-name:sidekick-drawer-in}
}
@media(max-width:360px){#chat-header{gap:3px}#chat-header h1{font-size:16px}#chat-header>.avatar{width:32px;height:32px;flex-basis:32px}#chat-header .group-add{width:32px;flex-basis:32px}.sidekick-fan{width:48px;flex-basis:48px}.sidekick-playing-card{left:11px;width:26px;height:31px}}
@media(prefers-reduced-motion:reduce){.sidekick-drawer{animation:none}#main.swipe-moving{transition:none!important}}
@media(forced-colors:active){.sidekick-playing-card,.fan-overflow{border-color:ButtonText}}
.sidekick-drawer::before { display:none; }
.sidekick-drawer:focus { outline:none; }
.sidekick-fan[data-count="0"],.sidekick-fan[data-count="1"] { width:38px; flex-basis:38px; }
.sidekick-fan[data-count="0"] .sidekick-playing-card,.sidekick-fan[data-count="1"] .sidekick-playing-card { left:5px; }

/* Reserve horizontal chat gestures before the browser claims a scroll. */
#messages-scroll { touch-action:pan-y pinch-zoom; }

/* A still metallic finish: recognisable roles, without sparkle or motion. */
.role-badge{display:inline-flex;align-items:center;gap:3px;flex-shrink:0;white-space:nowrap;vertical-align:middle;padding:2px 5px;border-radius:5px;border:1px solid;font-size:9px;font-weight:750;line-height:1.2;letter-spacing:.005em;box-shadow:inset 0 1px 0 #ffffffdf,0 1px 1px #213b2f0b}
.role-badge svg{flex-shrink:0;stroke-width:2}
.role-creator{color:#624610;border-color:#d1b775;background:linear-gradient(115deg,#eee0af 0%,#fff9df 40%,#f1e2ac 75%,#e7d39b 100%)}
.role-moderator{color:#514069;border-color:#b9aad0;background:linear-gradient(115deg,#e5daf1 0%,#faf6ff 40%,#e2d5f0 75%,#d7c7e8 100%)}
.message-header{flex-wrap:wrap;gap:4px 6px;padding-left:9px;margin-bottom:3px;min-width:0}
.own .message-header{padding-right:8px}.message-header .role-badge{margin-left:1px}
.member-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;min-width:0}.member-name-row strong{min-width:0;overflow-wrap:anywhere}.member-identity{min-width:0}
.moment-member-row{padding:9px 0;gap:10px}.moment-member-row>.btn{flex-shrink:0;min-height:40px}.member-handle{overflow-wrap:anywhere}
.role-permission-note{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--canvas);font-size:13px;line-height:1.5;color:var(--ink)}
/* Simple text shares its last line with the time where there is room. Rich
   messages keep their separate time line and full-sized accessible controls. */
.plain-text .message-text{display:inline}
.plain-text .message-time{display:inline-block;float:right;margin:7px 0 0 10px;white-space:nowrap;line-height:1.2;min-height:0}
.plain-text .bubble::after{content:'';display:table;clear:both}
.message:not(.bot-message) .reply-quote{margin-bottom:6px}
@media(max-width:600px){.message-header{margin-bottom:3px;padding-left:9px}.role-badge{font-size:9px}.message.message-cluster-start{margin-top:12px}}
@media(forced-colors:active){.role-badge{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}}

/* Three small, tangible counters. The values are the reward; there are no ranks. */
.moment-achievements{padding:0;border:0;background:none}
.badge-shelf.activity-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px 4px 12px;border:1px solid var(--line,#dfe5d5);border-radius:20px;background:var(--paper,#fffef8);box-shadow:inset 0 1px 0 #fff,0 3px 0 #27473404}
.activity-counter{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border:0;border-radius:16px;padding:0 3px 5px;background:transparent;color:var(--ink,#274734);font:inherit;text-align:center;transition:background .15s ease,transform .15s ease}
button.activity-counter{cursor:pointer;min-height:108px;touch-action:manipulation}
button.activity-counter:hover{background:var(--well,#edf1e3)}
button.activity-counter:active{transform:scale(.97)}
button.activity-counter:focus-visible{outline:2px solid var(--ink,#274734);outline-offset:1px}
.activity-counter-art{display:block;width:51px;height:54px;margin-bottom:2px;flex:none;transform:rotate(-6deg);filter:drop-shadow(0 2px 2px #27473408);transition:transform .18s ease}
.activity-counter:nth-child(2) .activity-counter-art{transform:rotate(3deg)}
.activity-counter:nth-child(3) .activity-counter-art{transform:rotate(7deg)}
.activity-counter-art svg,.activity-detail-art svg,.badge-toast-art svg{width:100%;height:auto;display:block}
button.activity-counter:hover .activity-counter-art{transform:translateY(-2px) rotate(0)}
.activity-counter-value{font-size:24px;line-height:1.12;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.045em;max-width:100%;overflow-wrap:anywhere}
.activity-counter-label{display:block;max-width:84px;min-height:29px;font-size:11px;line-height:1.3;font-weight:550;margin-top:4px;color:#4b604c}
.activity-count-detail{text-align:center;padding:4px 10px 16px}
.activity-detail-art{display:block;width:96px;margin:0 auto 8px}
.activity-detail-value{display:block;font-size:44px;line-height:1.1;font-weight:750;letter-spacing:-.055em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.activity-detail-label{font-size:15px;line-height:1.3;margin:5px 0 14px!important;font-weight:650;color:var(--ink,#274734)}
.activity-detail-definition{font-size:13px;line-height:1.55;color:#4b604c;max-width:290px;margin:0 auto!important}
.badge-toast.activity-toast{display:flex;align-items:center;gap:10px;text-align:left}
.activity-toast .badge-toast-art{display:block;width:42px;flex:none}
.activity-toast strong{display:block;font-size:23px;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.activity-toast small{display:block;font-size:11px;line-height:1.4;margin-top:2px}
@keyframes activity-count-pop{0%{transform:scale(.84) rotate(-8deg)}65%{transform:scale(1.07) rotate(3deg)}100%{transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:no-preference){.activity-counter.is-increased .activity-counter-art,.activity-toast .badge-toast-art{animation:activity-count-pop .5s cubic-bezier(.2,.8,.25,1) both}.activity-counter.is-increased .activity-counter-value{animation:activity-count-pop .4s ease both}}
@media(prefers-reduced-motion:reduce){.activity-counter,.activity-counter-art{transition:none}.activity-counter.is-increased .activity-counter-art,.activity-counter.is-increased .activity-counter-value,.activity-toast .badge-toast-art{animation:none}button.activity-counter:hover .activity-counter-art,button.activity-counter:active{transform:none}}
@media(max-width:350px){.badge-shelf.activity-counts{gap:2px;padding:8px 2px 10px}.activity-counter-art{width:47px;height:50px}.activity-counter-label{font-size:10px;max-width:75px}.activity-counter-value{font-size:22px}}
@media(forced-colors:active){.badge-shelf.activity-counts{border-color:CanvasText;box-shadow:none;background:Canvas}.activity-counter,.activity-counter-label,.activity-detail-definition{color:CanvasText}.activity-counter:focus-visible{outline-color:Highlight}}

/* 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); }

/* Brand typography stays in discovery. Conversations use the device's reading
   face, with one strong emphasis level and quieter surrounding controls. */
#chat-header, .chat-stage, .composer-wrap, .private-chat {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: normal;
}
/* Header remains a single compact row, with the title free to truncate. */
#chat-header { min-height: 60px; 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: 17px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
#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: 50%; background: #eeebf3; 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 { background: var(--canvas); }
.chat-stage, .private-chat-list { background: #f1f3ee; }
.messages-scroll { padding: 16px 24px 20px; scrollbar-color: #cad5bf transparent; }
.conversation-list .message { position:relative; 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: 12px; }
.conversation-list .message.own { flex-direction: row-reverse; margin-inline: auto; }
.conversation-list .message.own > .avatar { display:none; }
.conversation-list .message > .avatar { display: flex; visibility: hidden; align-items: center; justify-content: center; align-self: flex-end; width: 25px; height: 25px; flex: 0 0 25px; margin: 0 0 2px; border-radius: 9px; 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: #506259; font-size: 12px; font-weight: 600; 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:8px 10px 5px; border:0; border-radius:13px 13px 13px 5px; background:#fff; box-shadow:none; color:#25342d; font-size:16px; line-height:1.42; letter-spacing:normal; }
.conversation-list .message.own .bubble { background: #eae4f3; border-color: transparent; border-radius: 13px 13px 5px 13px; }
.conversation-list .message.bot-message .bubble { background: #fff; border-color: transparent; }
.conversation-list .message.grouped .bubble { border-top-left-radius: 7px; }
.conversation-list .message.own.grouped .bubble { border-top-left-radius: 13px; border-top-right-radius: 5px; }
.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: #69746d; }
.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: #657269; letter-spacing: 0; white-space: nowrap; }
.conversation-list .message.own .message-time { color: #6f627a; }
/* Action targets stay keyboard reachable, but appear only for the message
   being touched/focused/hovered. They take no space from the reading column. */
.conversation-list .message .message-context { position:absolute; top:50%; right:0; transform:translateY(-50%); width:44px; height:44px; min-height:44px; padding:0; margin:0; border-radius:50%; color:#627269; opacity:0; pointer-events:none; }
.conversation-list .message.own .message-context { right:auto; left:0; }
.conversation-list .message.is-selected .message-context, .conversation-list .message:focus-within .message-context { opacity:1; pointer-events:auto; }
@media (hover:hover) and (pointer:fine) { .conversation-list .message:hover .message-context { opacity:1; pointer-events:auto; } }
.conversation-list .message .message-context:hover, .conversation-list .message .message-context:focus-visible { background:#e2e8de; }
.conversation-list .message .message-context svg { width:16px; height:16px; }
/* Short notes and their time share a line when space allows. */
.conversation-list .message.plain-text .bubble { display:flow-root; }
.conversation-list .message.plain-text .message-text { display:inline; }
.conversation-list .message.plain-text .message-meta { float:right; margin:8px 0 0 10px; }
.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: #edf0e9; 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: 12px auto; gap: 0; font-size: 11px; color: var(--muted); }
.conversation-list .day-divider::before, .conversation-list .day-divider::after { content:none; }
.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: #f7f8f0; border-top-color: #e3e7da; padding: 10px 24px calc(13px + env(safe-area-inset-bottom)); }
.composer { border-color: #d8dfd5; background: #fff; border-radius: 22px; padding: 4px; gap: 2px; box-shadow:none; }
.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: 17px; }
  .messages-scroll { padding: 13px 12px 16px; }
  .conversation-list .message { gap: 6px; }
  .conversation-list .message .message-content { max-width:78%; }
  .conversation-list .message.own .message-content { max-width:85%; }
  .conversation-list .message > .avatar { width: 24px; height: 24px; flex-basis: 24px; border-radius: 8px; }
  .conversation-list .message .bubble { font-size:16px; padding:7px 10px 5px; }
  .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. */
/* Compact, stationary Moments: an occasion, its people and one real update. */
@font-face { font-family:Flockin Moments; src:url('/icons/nunito.ttf') format('truetype'); font-weight:200 1000; font-style:normal; font-display:swap; }
.moments-home { --home-paper:#f5f5ee; 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 { transform:translateY(3px); 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:12px; padding:5px 24px 26px; background:var(--home-paper); }
.moments-home .moment-empty { grid-column:1/-1; }
.moments-home .moment-card { --moment-fill:#fffefb; position:relative; display:flex; flex-direction:column; min-width:0; min-height:170px; margin:0; padding:13px 14px 11px; border:1px solid transparent; border-radius:24px; background:var(--moment-fill); color:#1b4032; box-shadow:0 2px 6px #183f3205; text-align:left; font-family:'Flockin Moments',ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; transition:transform 140ms ease,border-color 140ms ease; }
.moments-home .moment-card[hidden],.moments-home .moment-card [hidden] { display:none!important; }
.moments-home .moment-card[data-kind=family] { --moment-fill:#eff4dc; }
.moments-home .moment-card[data-kind=play] { --moment-fill:#efebf7; }
.moments-home .moment-card.is-completed { --moment-fill:#f1f2eb; border-color:#dfe4d8; }
.moments-home .moment-open { position:absolute; inset:0; z-index:1; width:100%; height:100%; padding:0; border:0; border-radius:inherit; background:transparent; }
.moments-home .moment-card:has(.moment-open:active) { transform:scale(.985); }
.moments-home .moment-heading { display:flex; align-items:center; gap:7px; min-width:0; min-height:40px; }
.moments-home .moment-emblem { width:27px; height:30px; flex:none; display:grid; place-items:center; }
.moments-home .moment-emblem-emoji { display:block; font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif; font-size:25px; line-height:30px; }
.moments-home .moment-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; min-width:0; margin:0; overflow:hidden; overflow-wrap:anywhere; color:inherit; font-family:inherit; font-size:18px; font-weight:800; line-height:20px; letter-spacing:-.4px; }
.moments-home .moment-participants { display:flex; align-items:center; min-width:0; height:44px; flex:0 0 44px; }
.moments-home .moment-people { position:relative; z-index:2; display:flex; align-items:center; justify-content:flex-start; min-width:44px; max-width:100%; height:44px; padding:0; border:0; border-radius:12px; background:transparent; }
.moments-home .moment-people .moment-face,.moments-home .moment-people-more { display:grid; place-items:center; flex:0 0 27px; width:27px; height:27px; margin:0; border:2px solid var(--moment-fill); border-radius:50%; overflow:hidden; background:#edf1e3; color:#506354; font-size:11px; }
.moments-home .moment-people .moment-face+.moment-face,.moments-home .moment-people-more { margin-left:-6px; }
.moments-home .moment-people .moment-face img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.moments-home .moment-people-more { font-family:inherit; font-weight:800; }
.moments-home .moment-preview { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; min-width:0; min-height:36px; margin:0 0 8px; color:#506354; font-size:13px; font-weight:500; line-height:18px; }
.moments-home .moment-author { color:#1b4032; font-weight:800; }
.moments-home .moment-footer { display:flex; align-items:center; justify-content:space-between; gap:5px; min-width:0; min-height:18px; margin-top:auto; color:#647361; font-size:11px; line-height:1.3; }
.moments-home .unread .moment-footer { padding-right:28px; }
.moments-home .moment-when { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.moments-home .moment-state { font-size:11px; white-space:nowrap; }
/* The lower corner keeps a long name readable beside its emoji, even at 320px. */
.moments-home .moment-unread { position:absolute; bottom:11px; right:12px; display:grid; place-items:center; min-width:22px; height:22px; padding:2px 5px; border-radius:8px; background:#1b4b38; color:#fffef3; font-size:11px; font-weight:800; }
.moments-home .moment-open:focus-visible,.moments-home .moment-people:focus-visible { outline:3px solid #5c784e; outline-offset:3px; }
.moment-roster { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
.moment-roster-person { display:flex; align-items:center; gap:9px; min-width:0; font-size:14px; }
.moment-roster-person .avatar { width:36px; height:36px; flex:0 0 36px; border-radius:50%; }
.moment-roster-person>span:not(.avatar) { min-width:0; overflow-wrap:anywhere; }
.moment-roster-person small { font-size:11px; }
@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-inline:12px; }
  .moments-home .moment-title { font-size:17px; }
}
@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; border-radius:22px; }
  .moments-home .moment-heading { gap:5px; }
  .moments-home .moment-title { font-size:16px; }
  .moments-home .moment-emblem { width:24px; }
  .moments-home .moment-emblem-emoji { font-size:23px; }
  .moments-home .moment-people .moment-face,.moments-home .moment-people-more { width:24px; height:24px; flex-basis:24px; }
  .moments-home .moment-people .moment-face+.moment-face,.moments-home .moment-people-more { margin-left:-7px; }
  .moments-home .is-completed .moment-footer { flex-wrap:wrap; }
}
@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; } }
@media(forced-colors:active) { .moments-home .moment-card { 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-stage .chat-jumps:has(#jump-unread[hidden]) { left:auto; right:12px; transform:none; }
.chat-stage #jump-latest { position:relative; width:44px; height:44px; padding:0; border-radius:50%; }
.chat-stage #jump-latest .jump-count { position:absolute; top:-5px; right:-3px; background:var(--accent); color:white; border-radius:9px; font-size:10px; padding:2px 4px; min-width:16px; }
.conversation-list .message .splitzy-chat-action { background:transparent; border:0; color:#355c48; padding:8px 0; margin-top:2px; font-size:13px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.conversation-list .message .sidekick-conversation-status { background:none; padding:0; border-radius:0; margin-bottom:7px; font-weight:500; }
.conversation-list .message .sidekick-conversation-status::before { content:none; }
.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; } }

/* Clear hierarchy without adding chrome to the conversation. */
.conversation-list .message.message-cluster-start { margin-top:12px; }
.conversation-list .message-recipient { width:fit-content; padding:3px 7px; border-radius:7px; background:#fff8; font-weight:700; }
.conversation-list .message-text .gm-mention { font-weight:600; color:#345f49; background:transparent; border-radius:0; padding:0; }
.conversation-list .own .message-text .gm-mention { background:transparent; color:#614a78; }
.conversation-list .message-text .gm-mention-self { color:#614a78; background:transparent; }
.conversation-list .message-text .gm-mention-bot { box-shadow:none; }
.profile-page { display:grid; gap:20px; }
.profile-identity { display:flex; align-items:center; gap:14px; padding:2px 2px 0; }
.profile-identity h2 { font-size:24px; line-height:1.15; letter-spacing:-.04em; font-weight:780; overflow-wrap:anywhere; }
.profile-identity p { color:var(--muted); font-size:13px; margin-top:5px; }
.profile-portrait { position:relative; flex:none; padding:0; border-radius:22px; }
.profile-portrait .avatar { width:64px; height:64px; flex-basis:64px; border-radius:22px; }
.profile-photo-edit { position:absolute; right:-3px; bottom:-3px; width:24px; height:24px; display:grid; place-items:center; border-radius:9px; background:var(--ink); color:white; border:2px solid var(--paper); }
.profile-section h3 { font-size:11px; font-weight:700; color:var(--muted); margin:0 4px 8px; }
.profile-section-items { border:1px solid var(--line); border-radius:19px; overflow:hidden; background:#fff; }
.profile-page .profile-item { min-height:49px; gap:12px; margin:0; padding:12px 14px; border:0; border-radius:0; background:transparent; }
.profile-section-items > * + * { border-top:1px solid #edf0e7!important; }
.profile-page .profile-item > svg:first-child { color:#6d8064; flex:none; }
.profile-page .profile-item > svg:last-child { color:#8d9785; width:14px; flex:none; }
.profile-item strong { display:block; font-size:13px; font-weight:650; }
.profile-item-copy { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.profile-page .account-mobile { padding:12px 14px; }
.profile-page .phone-verified { padding:0; background:transparent; border:0; }
.profile-page .phone-verified strong { font-size:12px; font-weight:650; }
.profile-page .phone-verified p { font-size:11px; }
.profile-page .moment-achievements { margin:0; padding:0; }
.profile-page .profile-data { border-top:1px solid var(--line); padding-top:13px; }
.profile-data summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--muted); font-size:12px; font-weight:650; }
.profile-data summary::after { content:'›'; margin-left:auto; font-size:20px; }
.profile-data[open] summary::after { transform:rotate(90deg); }
.profile-data p { line-height:1.6; margin:0 0 9px; }
.profile-page .profile-signout { margin-top:-15px; min-height:44px; font-size:13px; }
.profile-page .motion-setting { padding:12px 14px; border-radius:0; border:0; }

/* Splitzy keeps the answer first and the ledger one tap away. */
.splitzy-overview { max-width:760px; margin:0 auto; padding:22px 18px 36px; color:var(--ink); }
.splitzy-content { display:grid; gap:22px; }
.splitzy-heading,.splitzy-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.splitzy-heading h2 { font-size:28px; margin:0; letter-spacing:-.055em; }
.splitzy-heading p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.splitzy-link { color:var(--ink); font:inherit; font-size:12px; font-weight:650; border:0; background:transparent; padding:8px; border-radius:10px; min-height:40px; cursor:pointer; }
.splitzy-link:hover { background:var(--well); }
.splitzy-totals { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.splitzy-total { display:flex; flex-direction:column; gap:6px; padding:18px; border-radius:21px; border:1px solid #2747340d; min-width:0; }
.splitzy-total span { font-size:12px; font-weight:550; }
.splitzy-total strong { font-size:clamp(22px,5vw,31px); letter-spacing:-.06em; overflow-wrap:anywhere; line-height:1.25; }
.splitzy-owe { background:var(--lilac); }
.splitzy-owed { background:var(--lime); }
/* Group payoff is one net result, followed by the complete payment route. */
.splitzy-total-expenses { padding:4px 2px; margin:-4px -2px; min-height:32px; border:0; border-radius:5px; background:transparent; color:var(--ink); font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.splitzy-total-expenses:hover { background:var(--well); }
.splitzy-payments { display:grid; gap:12px; padding:18px; border:1px solid var(--line); border-radius:23px; background:var(--paper); }
.splitzy-payments .splitzy-section-heading h3 { font-size:18px; letter-spacing:-.025em; }
.splitzy-payments-subtitle { margin:3px 0 0; color:var(--muted); font-size:12px; }
.splitzy-net { display:flex; align-items:center; justify-content:space-between; gap:14px; border-radius:16px; padding:15px; background:var(--well); }
.splitzy-net.is-positive { background:var(--lime); }
.splitzy-net.is-negative { background:var(--lilac); }
.splitzy-net > span { font-size:13px; font-weight:600; }
.splitzy-net > strong { font-size:clamp(23px,5vw,28px); letter-spacing:-.045em; line-height:1.2; overflow-wrap:anywhere; }
.splitzy-net.is-settled > strong { font-size:22px; color:var(--muted); }
.splitzy-payment { padding:12px 0 0; border-top:1px solid var(--line); }
.splitzy-payment-main { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; }
.splitzy-payment-route { display:flex; flex-wrap:wrap; align-items:center; gap:4px 7px; min-width:0; line-height:1.5; }
.splitzy-payment-route strong { font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.splitzy-payment-arrow { color:var(--muted); font-size:14px; }
.splitzy-payment-amount { font-size:16px; font-weight:650; letter-spacing:-.03em; line-height:1.5; white-space:nowrap; }
.splitzy-payment-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding-top:7px; }
.splitzy-payment-actions .btn { min-height:40px; font-size:12px; }
.splitzy-payments .splitzy-empty { padding:2px 0; margin:0; }
.splitzy-balances { border:1px solid var(--line); border-radius:17px; padding:0 14px; }
.splitzy-balances > summary { display:flex; align-items:center; gap:10px; min-height:52px; font-size:13px; font-weight:600; cursor:pointer; list-style:none; }
.splitzy-balances > summary::-webkit-details-marker { display:none; }
.splitzy-balances > summary::after { content:'+'; color:var(--muted); font-size:19px; font-weight:400; }
.splitzy-balances[open] > summary::after { content:'−'; }
.splitzy-balance-count { margin-left:auto; color:var(--muted); font-size:11px; font-weight:400; }
.splitzy-balance { display:flex; align-items:center; gap:10px; min-width:0; padding:12px 0; border-top:1px solid var(--line); }
.splitzy-balance > .avatar { width:31px; height:33px; flex-basis:31px; border-radius:10px; }
.splitzy-balance-name { flex:1; min-width:0; overflow-wrap:anywhere; font-size:12px; font-weight:600; }
.splitzy-balance > span:last-child { display:flex; flex-direction:column; align-items:flex-end; gap:3px; }
.splitzy-balance small { font-size:10px; font-weight:400; }
.splitzy-balance > span:last-child > strong { font-size:13px; font-weight:650; white-space:nowrap; }
.splitzy-total-expenses:focus-visible,.splitzy-balances > summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.splitzy-section { display:grid; gap:7px; }
.splitzy-section-heading h3 { font-size:15px; margin:0; }
.splitzy-section-heading > span { font-size:11px; color:var(--muted); }
.splitzy-review-section { background:var(--paper); border:1px solid var(--line); padding:14px; border-radius:20px; }
.splitzy-count { border-radius:9px; background:var(--lilac); padding:3px 7px; }
.splitzy-review { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:11px 0; border-top:1px solid var(--line); font-size:13px; }
.splitzy-review:first-of-type { border-top:0; }
.splitzy-review strong { font-weight:650; overflow-wrap:anywhere; }
.splitzy-review small { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
.splitzy-review .btn { grid-column:1 / -1; justify-self:start; }
.splitzy-person,.splitzy-group { display:flex; align-items:center; gap:10px; border:0; border-bottom:1px solid var(--line); background:transparent; width:100%; padding:13px 0; color:var(--ink); text-align:left; font:inherit; cursor:pointer; min-width:0; }
.splitzy-person:hover,.splitzy-group:hover { background:var(--well); border-radius:12px; }
.splitzy-person .avatar { width:37px; height:38px; flex-basis:37px; border-radius:13px; }
.splitzy-person > strong,.splitzy-group > strong { font-size:14px; font-weight:650; white-space:nowrap; letter-spacing:-.025em; }
.splitzy-person-copy,.splitzy-group > span:first-child { flex:1; min-width:0; }
.splitzy-person-copy strong,.splitzy-group > span > strong { display:block; font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.splitzy-person small,.splitzy-group small { display:block; font-size:11px; color:var(--muted); margin-top:2px; }
.splitzy-person > span:last-child,.splitzy-group > span:last-child { color:var(--muted); font-size:22px; }
.splitzy-initial { display:grid; place-items:center; width:37px; height:38px; border-radius:13px; background:var(--lilac); flex-shrink:0; }
.splitzy-positive { color:#326341; }
.splitzy-negative { color:#66416f; }
.splitzy-note { font-size:11px; color:var(--muted); line-height:1.55; margin:0; }
.splitzy-empty { padding:18px 0; font-size:13px; color:var(--muted); line-height:1.6; }
.splitzy-expense { border-bottom:1px solid var(--line); padding:5px 0 7px; }
.splitzy-expense-main { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; padding:9px 0; border:0; background:transparent; text-align:left; font:inherit; cursor:pointer; color:var(--ink); }
.splitzy-expense-main > span { min-width:0; }
.splitzy-expense-main strong { font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.splitzy-expense-main > strong { white-space:nowrap; }
.splitzy-expense-main small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.splitzy-row-actions { display:flex; gap:2px; margin-left:-8px; }
.splitzy-row-actions .splitzy-link { min-height:32px; padding:5px 8px; font-size:11px; }
.splitzy-footer { display:flex; flex-wrap:wrap; gap:8px; }
.splitzy-footer .btn { font-size:12px; }
.splitzy-pending-payments { display:flex; justify-content:space-between; gap:12px; padding:15px; border:1px solid var(--line); border-radius:15px; background:var(--lilac-soft); color:var(--ink); text-align:left; font:inherit; font-size:12px; cursor:pointer; }
.splitzy-job,.splitzy-connection { padding:14px; border-radius:15px; background:var(--well); font-size:12px; }
.splitzy-job { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.splitzy-account { display:grid; gap:19px; }
.splitzy-account-heading { display:flex; align-items:center; gap:12px; }
.splitzy-account-heading h3,.splitzy-account-heading p { margin:0; }
.splitzy-account-heading h3 { font-size:18px; }
.splitzy-account .splitzy-total { padding:16px; }
.splitzy-account .splitzy-total strong { font-size:26px; }
.splitzy-profile-entry { background:var(--lime); border:1px solid #2747340a; font-weight:650; }
.splitzy-chat-action { margin-top:9px; display:flex; width:max-content; max-width:100%; }
.splitzy-modes { display:flex; padding:4px; background:var(--well); border-radius:14px; gap:4px; }
.splitzy-mode { flex:1; border:0; padding:11px; min-height:43px; border-radius:10px; background:transparent; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; }
.splitzy-mode[aria-pressed="true"] { color:var(--ink); background:var(--paper); font-weight:650; box-shadow:0 2px 5px #27473412; }
.splitzy-members .member-check { gap:8px; padding:10px; min-width:0; }
.splitzy-members .member-check .grow { font-size:13px; min-width:0; overflow-wrap:anywhere; }
.splitzy-members .member-check .avatar { width:30px; height:32px; flex-basis:30px; }
.splitzy-percentage-input { display:flex; align-items:center; gap:4px; flex-shrink:0; font-size:12px; }
.splitzy-percentage-input input { width:76px; height:44px; min-height:44px; padding:10px 7px; text-align:right; font-size:16px; border:1px solid var(--line); background:var(--paper); border-radius:10px; }
.splitzy-percentage-input[hidden] { display:none; }
.splitzy-percentage-input input:disabled { opacity:.4; }
.splitzy-percentage-total { font-size:12px; font-weight:600; color:#79521d; margin:0; }
.splitzy-percentage-total.is-valid { color:#326341; }
.splitzy-share-percent { color:var(--muted); font-size:11px; margin-left:5px; }
@media(max-width:360px) { .splitzy-payments { padding:14px; } .splitzy-net { padding:12px; } .splitzy-payment-main { gap:8px; } .splitzy-payment-amount { font-size:14px; } .splitzy-overview { padding:18px 13px 28px; } .splitzy-total { padding:15px 12px; } .splitzy-person > strong,.splitzy-group > strong { font-size:12px; } .splitzy-account .splitzy-total strong { font-size:22px; } }
@media(prefers-reduced-motion:reduce) { .splitzy-overview *, .splitzy-account * { animation:none!important; transition:none!important; } }

/* Feedback never changes layout, hit areas, focus, or readable message geometry. */
.feedback-press { box-shadow: inset 0 1px 2px #27473412; }
:is(.icon-btn,.send-btn,.group-add,.reaction-choice,.reaction-chip).feedback-press { scale: .975; }
:is(.icon-btn,.send-btn,.group-add,.reaction-choice,.reaction-chip) { transition: scale 120ms cubic-bezier(.2,.7,.3,1), background-color 140ms ease; }
.reaction-emoji { display: inline-block; transform-origin: 50% 65%; }
.btn.feedback-complete:disabled { opacity: 1; color: #244b39; background: #e6efc4; border-color: #cad7ab; }
.sidekick-playing-card { transition: transform 260ms cubic-bezier(.22,.72,.26,1); backface-visibility: hidden; }
.sidekick-fan.is-expanded .sidekick-playing-card:nth-child(1) { transform: translateX(-10px) translateY(-1px) rotate(-25deg); }
.sidekick-fan.is-expanded .sidekick-playing-card:nth-child(2) { transform: translateY(-2px) rotate(-1deg); }
.sidekick-fan.is-expanded .sidekick-playing-card:nth-child(3) { transform: translateX(10px) translateY(-1px) rotate(22deg); }
.sidekick-fan:is([data-count="0"],[data-count="1"]).is-expanded .sidekick-playing-card { transform: translateY(-2px) rotate(4deg); }
.feedback-shelf .sidekick-shelf-card { animation: feedback-shelf-arrive 220ms both cubic-bezier(.22,.72,.26,1); }
.feedback-shelf .sidekick-shelf-card:nth-child(2) { animation-delay: 15ms; }
.feedback-shelf .sidekick-shelf-card:nth-child(3) { animation-delay: 30ms; }
.feedback-shelf .sidekick-shelf-card:nth-child(n+4) { animation-delay: 40ms; }
@keyframes feedback-shelf-arrive { from { opacity: .5; transform: translate3d(0,3px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
.together-feedback-layer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none !important; overflow: hidden; contain: strict; user-select: none; }
.together-feedback-layer * { pointer-events: none !important; }
.together-feedback-particle { position: absolute; display: block; width: 5px; height: 10px; border-radius: 2px; opacity: 0; font-style: normal; translate: -50% -50%; will-change: transform, opacity; backface-visibility: hidden; }
.together-feedback-particle.is-dot { width: 6px; height: 6px; border-radius: 50%; }
.together-feedback-particle.is-glyph { width: 13px; height: 13px; background: transparent !important; border-radius: 0; font: 15px/13px system-ui,sans-serif; text-align: center; }
.together-feedback-particle.is-heart { width: 14px; height: 14px; font-size: 14px; line-height: 14px; }
.together-feedback-halo { position: absolute; display: block; border: 2px solid #b1cd45; border-radius: 17px; opacity: 0; background: transparent; will-change: transform, opacity; }
.together-feedback-halo.tone-lilac { border-color: #b99bd9; }
@media (prefers-reduced-motion: reduce) {
  .together-feedback-layer { display: none; }
  .feedback-press { scale: none !important; }
  .sidekick-playing-card, :is(.icon-btn,.send-btn,.group-add,.reaction-choice,.reaction-chip) { transition: none !important; }
  .feedback-shelf .sidekick-shelf-card { animation: none !important; }
}
@media (forced-colors: active) {
  .together-feedback-layer { display: none; }
  .feedback-press { outline: 1px solid Highlight; }
}

/* One contained Sidekick sheet for added helpers, discovery and details. */
.dialog.sidekick-library-dialog{width:min(760px,calc(100vw - 32px));max-height:min(90dvh,calc(var(--app-height,100dvh) - 32px));border-radius:28px;background:var(--paper,#fffef8)}
.sidekick-library-dialog .dialog-head{padding:22px 24px 14px}
.sidekick-library-dialog .dialog-head h2{font-size:25px;letter-spacing:-.8px}
.sidekick-library-dialog .dialog-body{padding:0 24px 24px;scrollbar-gutter:stable;overscroll-behavior:contain}
.sk-library{color:var(--ink,#214233)}
.sk-library-list[hidden],.sk-library-detail[hidden],.sk-library [hidden]{display:none!important}
.sk-library-context{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.sk-scope{display:block;color:var(--muted,#647165);font-size:11px;font-weight:600;line-height:1.5}
.sk-segments{display:flex;gap:3px;background:var(--well,#f0f2e7);padding:3px;border:1px solid var(--line,#dce1d4);border-radius:15px}
.sk-segment{border:0;min-height:40px;padding:8px 17px;border-radius:11px;background:transparent;font:inherit;font-size:12px;font-weight:650;color:var(--muted,#647165);cursor:pointer}
.sk-segment[aria-pressed=true]{background:var(--paper,#fffef8);color:var(--ink,#214233);box-shadow:0 1px 4px #21423314}
.sk-intro{font-size:14px;color:var(--muted,#647165);margin:0 0 17px;line-height:1.5}
.sk-discovery-controls{position:sticky;top:0;z-index:2;background:var(--paper,#fffef8);padding:2px 0 10px}
.sk-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line,#dce1d4);background:var(--well,#f0f2e7);border-radius:16px;padding:0 12px;min-height:48px}
.sk-search:focus-within{border-color:var(--ink,#214233);box-shadow:0 0 0 2px #dbe6c3}
.sk-search-symbol{font-family:system-ui,sans-serif;font-size:28px;line-height:1;color:var(--muted)}
.sk-search .sk-search-input{min-width:0;flex:1;width:100%;font:inherit;font-size:16px;padding:12px 0;border:0;border-radius:0;box-shadow:none;background:transparent;outline:none}
.sk-search-input::-webkit-search-cancel-button{display:none}
.sk-search-clear{flex:0 0 36px;min-height:44px;background:none;border:0;font-size:23px;color:var(--muted);cursor:pointer}
.sk-filters{display:flex;gap:6px;margin-top:10px;overflow-x:auto;scrollbar-width:none}
.sk-filters::-webkit-scrollbar{display:none}
.sk-filter{flex:0 0 auto;min-height:42px;padding:9px 16px;border-radius:13px;border:1px solid transparent;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.sk-filter[aria-pressed=true]{background:var(--ink,#214233);color:#fffef7}
.sk-result-count{font-size:11px;color:var(--muted);margin:2px 0 17px;min-height:16px}
.sk-results{display:grid;gap:25px}
.sk-section-heading{margin:0 0 12px;display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.sk-section-heading h3{font-size:16px;letter-spacing:-.3px;margin:0}
.sk-section-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.4}
.sk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sk-card,.sk-detail-identity{--sk-tint:#e8eddc}
.tone-lilac{--sk-tint:#e7ddfa}.tone-lime{--sk-tint:#e8efbb}.tone-peach{--sk-tint:#f8e0d1}.tone-mint{--sk-tint:#dbece1}.tone-sky{--sk-tint:#deebf4}.tone-sand{--sk-tint:#f0e8c6}
.sk-card{min-width:0;width:100%;display:flex;flex-direction:column;align-items:stretch;padding:16px;border-radius:23px;border:1px solid #dfe4d5;background:linear-gradient(155deg,var(--sk-tint),var(--paper,#fffef8) 82%);font:inherit;color:var(--ink,#214233);text-align:left;cursor:pointer}
.sk-card-top{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:15px;min-width:0}
.sk-avatar{width:45px;height:45px;flex:0 0 45px;border-radius:15px;display:grid;place-items:center;background:#fffef9b8;color:var(--ink);font-size:25px;font-weight:750;box-shadow:0 1px 0 #ffffff}
.sk-added{font-size:10px;white-space:nowrap;color:#466347;font-weight:600}
.sk-card-name{display:block;font-size:17px;font-weight:700;line-height:1.2;letter-spacing:-.4px;margin:0 0 7px;overflow-wrap:anywhere}
.sk-purpose{display:block;font-size:12px;line-height:1.5;color:#586759;margin:0 0 15px;overflow-wrap:anywhere;flex:1}
.sk-card-actions{display:flex;gap:5px;align-items:center;justify-content:space-between;margin-top:auto;min-height:26px}
.sk-card-link{font-size:11px;font-weight:650;color:var(--ink,#214233)}
.sk-card-arrow{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:10px;font-size:18px;background:#ffffffa8}
.sk-card:hover{border-color:#bdcab0;box-shadow:0 3px 10px #21423308}
.sk-managed-note{font-size:12px;line-height:1.5;color:var(--muted);margin:0}
.sk-empty{text-align:center;border-radius:20px;padding:28px 20px;background:var(--well);grid-column:1/-1}
.sk-empty>span{font-size:30px;color:#607442}
.sk-empty h3{font-size:18px;margin:10px 0}
.sk-empty p{font-size:13px;color:var(--muted);margin:0 0 15px}
.sk-library-installed .sk-card{padding:13px;border-radius:20px}
.sk-library-installed .sk-card-top{margin-bottom:10px}
.sk-library-installed .sk-avatar{width:38px;height:38px;flex-basis:38px;border-radius:12px;font-size:23px}
.sk-library-installed .sk-purpose{margin-bottom:10px}
/* Installed cards are conversation shortcuts, with saved work one tap away. */
.sk-card.sk-card-ready{position:relative;padding:0;overflow:visible;cursor:default}
.sk-card-chat{display:flex;flex-direction:column;align-items:stretch;flex:1;min-width:0;width:100%;padding:13px;border:0;border-radius:20px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.sk-card-ready .sk-card-top{min-height:38px;margin-bottom:10px;padding-right:31px}
.sk-card-ready .sk-avatar{width:38px;height:38px;flex-basis:38px;border-radius:12px;font-size:23px}
.sk-card-ready .sk-purpose{margin-bottom:10px}
.sk-card-ready .sk-card-link{font-size:12px}
.sk-card-about{position:absolute;top:6px;right:5px;display:grid;place-items:center;width:40px;min-height:44px;padding:0;border:0;border-radius:13px;background:transparent;color:var(--muted,#647165);font:inherit;font-size:22px;font-weight:750;letter-spacing:1px;cursor:pointer}
.sk-card-about:hover{background:#fffef980;color:var(--ink,#214233)}
.sk-card-summary{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:44px;width:100%;padding:10px 13px;border:0;border-top:1px solid #dfe4d5;border-radius:0 0 20px 20px;background:#fffef84d;color:var(--muted,#647165);font:inherit;font-size:12px;font-weight:600;text-align:left;cursor:pointer}
.sk-card-summary:after{content:'›';font-size:18px;line-height:1}
.sk-card-summary:hover{background:#fffef9a8;color:var(--ink,#214233)}
.sk-list-feedback{margin:0 0 14px}

.sk-library-detail{max-width:530px;margin:0 auto;padding:0 0 2px}
.sk-back{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:0 0 12px;padding:8px 0;border:0;background:transparent;color:var(--muted,#647165);font:inherit;font-size:12px;cursor:pointer}
.sk-back:before{content:'‹';font-size:24px;line-height:1}
.sk-detail-identity{display:flex;align-items:center;gap:15px;margin:0 0 21px}
.sk-detail-avatar{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:22px;background:var(--sk-tint,var(--lilac,#e6dcfb));color:var(--ink,#214233);font-size:35px;font-weight:750}
.sk-detail-title{font-size:25px;line-height:1.2;letter-spacing:-.7px;margin:3px 0 4px;overflow-wrap:anywhere}
.sk-detail-description{font-size:17px;font-weight:550;line-height:1.45;margin:0 0 13px;overflow-wrap:anywhere}
.sk-detail-copy{font-size:14px;line-height:1.65;color:var(--muted,#647165);margin:0 0 15px;overflow-wrap:anywhere}
.sk-detail-scope{font-size:12px;line-height:1.6;color:var(--muted,#647165);padding:12px 14px;border-radius:14px;background:var(--well,#f0f2e7);margin:0 0 15px}
.sk-detail-actions{display:flex;flex-direction:column;gap:9px;margin-top:23px}
.sk-detail-primary,.sk-detail-secondary{min-height:47px;padding:12px 17px;border-radius:14px;border:1px solid transparent;font:inherit;font-size:13px;font-weight:650;line-height:1.5;text-align:center;cursor:pointer;overflow-wrap:anywhere}
.sk-detail-primary{color:var(--paper,#fffef8);background:var(--ink,#214233)}
.sk-detail-secondary{color:var(--ink,#214233);background:transparent;border-color:var(--line,#dce1d4)}
.sk-remove{align-self:center;min-height:44px;margin-top:8px;padding:10px 16px;border:0;background:transparent;font:inherit;font-size:12px;color:var(--danger,#a03c35);cursor:pointer}
.sk-remove-title{font-size:19px;line-height:1.4;margin:0 0 10px}
.sk-detail-primary.sk-danger{background:var(--danger,#a03c35)}
.sk-action-status,.sk-action-error{font-size:13px;line-height:1.6;padding:11px 14px;border-radius:13px;margin:18px 0 0;overflow-wrap:anywhere}
.sk-action-status{color:var(--ink,#214233);background:var(--well,#f0f2e7)}
.sk-action-error{color:var(--danger,#a03c35);background:#f9ebe5}
.sk-library button:disabled{opacity:.6;cursor:wait}
.sk-library button:focus-visible{outline:3px solid #456744;outline-offset:3px}
.card-oddoneout{background:var(--lime)!important}.card-mafia{background:var(--lilac)!important}
.sk-guide.btn{margin-top:22px;width:100%;min-height:44px;background:transparent;border-color:var(--line);color:var(--muted);font-size:13px}
@media(max-width:600px){
  .dialog.sidekick-library-dialog{width:100%;max-height:min(92dvh,calc(var(--app-height,100dvh) - 16px - env(safe-area-inset-top)));border-radius:27px 27px 0 0}
  .sidekick-library-dialog .dialog-head{padding:20px 20px 12px}.sidekick-library-dialog .dialog-body{padding:0 18px max(22px,env(safe-area-inset-bottom));scrollbar-gutter:auto}
  .sk-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sk-card{padding:14px;border-radius:21px}
  .sk-section-heading{display:block}.sk-section-heading p{margin-top:4px}.sk-filter{padding:9px 13px}.sk-intro{margin-bottom:16px}
  .sidekick-library-overlay{padding:0!important;align-items:flex-end!important}.sk-detail-title{font-size:24px}.sk-detail-identity{gap:13px}
}
@media(max-width:339px){
  .sk-grid{grid-template-columns:1fr}.sk-card{display:grid;grid-template-columns:46px minmax(0,1fr);column-gap:13px;row-gap:0}
  .sk-card-top{grid-column:1;grid-row:1/3;align-self:start;flex-direction:column;gap:9px;margin:0}.sk-card-name,.sk-card .sk-purpose{grid-column:2}
  .sk-card-actions{grid-column:2}.sk-card-name{font-size:18px}.sk-filters{gap:2px}.sk-filter{padding:9px 11px}
  .sk-library-installed .sk-card{grid-template-columns:38px minmax(0,1fr);column-gap:10px}.sk-library-installed .sk-card-top{margin-bottom:0}.sk-segment{padding:8px 13px}
  .sk-card.sk-card-ready{display:flex}.sk-card-ready .sk-card-chat{display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:10px;padding-right:45px}.sk-card-ready .sk-card-top{padding-right:0;margin-bottom:0}.sk-card-ready .sk-card-actions{margin-top:0}.sk-card-ready .sk-purpose{margin-bottom:5px}
}
@media(prefers-reduced-motion:no-preference){
  .sk-card,.sk-card-chat,.sk-card-summary,.sk-card-about,.sk-detail-primary,.sk-detail-secondary,.sk-filter,.sk-segment{transition:background-color 120ms,transform 120ms,box-shadow 120ms}
  button.sk-card:active,.sk-card-chat:active,.sk-card-summary:active,.sk-detail-primary:active,.sk-detail-secondary:active{transform:scale(.98)}
  .dialog.sidekick-library-dialog{animation:sheet-in 180ms cubic-bezier(.2,.8,.2,1)}
}
@media(max-width:600px) and (prefers-reduced-motion:no-preference){.dialog.sidekick-library-dialog{animation-name:mobile-sheet-in}}
@media(forced-colors:active){.sk-card,.sk-search,.sk-detail-primary,.sk-detail-secondary,.sk-segment[aria-pressed=true],.sk-filter[aria-pressed=true]{border:1px solid CanvasText}.sk-avatar{box-shadow:none}}
/* Follow the shared visual-viewport variables when a phone keyboard is open. */
.sidekick-library-overlay{top:var(--viewport-offset,0px);bottom:auto;height:var(--app-height,100dvh)}
.sidekick-event{display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;max-width:min(540px,calc(100% - 24px));margin:12px auto;padding:8px 11px;border:1px solid var(--line,#dce1d4);border-radius:14px;background:var(--paper,#fffef8);color:var(--muted,#647165);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.sidekick-event-mark{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:9px;background:var(--well,#edf1df);color:var(--ink,#214233);font-size:16px}

/* Compact catalogue cards keep their full descriptions and touch targets. */
.sk-grid { gap:9px; }
.sk-card,.sk-library-installed .sk-card { padding:11px; border-radius:18px; }
.sk-card .sk-card-top { margin-bottom:8px; }
.sk-card .sk-avatar { width:33px; height:33px; flex-basis:33px; border-radius:11px; font-size:21px; }
.sk-card .sk-card-name { font-size:15px; line-height:1.2; margin-bottom:5px; }
.sk-card .sk-purpose { font-size:11px; line-height:1.4; margin-bottom:8px; }
.sk-card.sk-card-ready { padding:0; }
.sk-card-chat { padding:11px; }
.sk-card-ready .sk-card-top { min-height:33px; margin-bottom:7px; padding-right:30px; }
.sk-card-ready .sk-card-link,.sk-card-summary { font-size:11px; }
.sk-card-summary { padding:8px 11px; border-radius:0 0 18px 18px; }

/* One full-width guide, with the smaller specialist cards below. */
.sk-grid .sk-card-featured{grid-column:1/-1;background:linear-gradient(120deg,#e5efb9,#f0f4d9);border-radius:22px}
.sk-grid button.sk-card-featured,.sk-grid .sk-card-featured .sk-card-chat{display:grid;grid-template-columns:94px minmax(0,1fr);column-gap:16px;row-gap:0;padding:18px;align-content:center;min-height:162px}
.sk-card-featured .sk-card-top{grid-column:1;grid-row:1/4;align-self:center;margin:0;padding:0;min-height:0}
.sk-card-featured .sk-avatar{width:94px;height:112px;flex-basis:94px;border-radius:0;background:none;box-shadow:none}
.sk-card-featured .sk-card-name,.sk-card-featured .sk-purpose,.sk-card-featured .sk-card-actions{grid-column:2}
.sk-card-featured .sk-card-name{font-size:24px;letter-spacing:-.6px;margin-bottom:7px;padding-right:18px}
.sk-card-featured .sk-purpose{font-size:13px;line-height:1.5;margin-bottom:9px}
.sk-card-featured .sk-card-actions{margin-top:0}
@media(max-width:350px){.sk-grid button.sk-card-featured,.sk-grid .sk-card-featured .sk-card-chat{grid-template-columns:70px minmax(0,1fr);column-gap:12px;padding:14px}.sk-card-featured .sk-avatar{width:70px;height:100px;flex-basis:70px}.sk-card-featured .sk-card-name{font-size:22px}.sk-card-featured .sk-purpose{font-size:12px}}

/* One destination choice; familiar chat tools, without adding another tab. */
.sidekick-welcome-copy{min-width:0}.sidekick-welcome-actions{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:4px}.sidekick-welcome-actions .sidekick-chat-link{margin:0;min-height:36px;font-size:12px}.sidekick-chat-tools{display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:0 16px;border-bottom:1px solid var(--line);flex:none}.sidekick-chat-tools button{font-size:12px;min-height:40px;white-space:nowrap}.sidekick-moment-list{display:grid;gap:8px;max-height:45dvh;overflow:auto}.sidekick-moment-choice{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:14px;color:var(--ink);font:inherit;cursor:pointer}.sidekick-moment-choice strong{display:block;font-size:15px;overflow-wrap:anywhere}.sidekick-moment-choice small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.sidekick-moment-choice:disabled{opacity:.65;cursor:default}.sidekick-moment-choice:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Reminders live with their conversation, in the same quiet Sidekick surface. */
.nudge-summary { width:100%; max-width:700px; margin:0 auto; padding:27px 26px 34px; color:var(--ink); }
.nudge-header { display:flex; gap:14px; align-items:center; margin-bottom:23px; }
.nudge-mark { display:grid; place-items:center; width:47px; height:47px; flex:0 0 47px; border-radius:17px; background:var(--lilac); color:var(--lilac-ink); font-size:24px; }
.nudge-header h2 { font-size:28px; line-height:1.2; }
.nudge-header p { margin-top:5px; color:var(--muted); font-size:13px; }
.nudge-sections { display:grid; gap:24px; }
.nudge-section h3 { margin-bottom:10px; font-size:13px; color:var(--muted); }
.nudge-list { display:grid; gap:9px; }
.nudge-item { min-width:0; padding:16px; border:1px solid var(--frame-line); border-radius:18px; background:var(--paper); }
.nudge-item-heading { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-bottom:7px; }
.nudge-item-title { min-width:0; flex:1 1 150px; font-size:15px; line-height:1.45; font-weight:650; overflow-wrap:anywhere; white-space:pre-wrap; }
.nudge-status { display:inline-block; border-radius:8px; padding:4px 7px; background:var(--accent-soft); color:var(--accent); font-size:10px; line-height:1.3; font-weight:650; }
.nudge-status[data-status="awaiting_acceptance"] { background:var(--lilac-soft); color:var(--lilac-ink); }
.nudge-status[data-status="missed"],.nudge-status[data-status="invalidated"] { background:#fff0e8; color:#8b4532; }
.nudge-status[data-status="cancelled"],.nudge-status[data-status="declined"] { background:var(--conversation); color:var(--muted); }
.nudge-timing { font-size:13px; line-height:1.5; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.nudge-audience,.nudge-note { margin-top:4px; font-size:12px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.nudge-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:11px; }
.nudge-actions button { min-height:40px; padding:9px 12px; border-radius:12px; font-size:12px; line-height:1.35; }
.nudge-actions .nudge-link { padding-left:3px; padding-right:8px; background:transparent; color:var(--accent); font-weight:600; }
.nudge-actions .nudge-link:hover { text-decoration:underline; text-underline-offset:3px; }
.nudge-error { color:var(--danger); margin-top:8px; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.nudge-error:empty { display:none; }
.nudge-empty { padding:13px 0 9px; color:var(--muted); font-size:14px; }
.nudge-empty strong { display:block; margin-bottom:7px; color:var(--ink); font-size:16px; }
.nudge-footer { padding-top:24px; }
.nudge-chat-card { display:grid; gap:3px; min-width:0; }
.nudge-chat-card .nudge-item-heading { margin-bottom:3px; }
.nudge-chat-card .nudge-actions { margin-top:8px; }
.nudge-chat-card .nudge-item-title { font-size:15px; }
.nudge-editor-preview { padding:12px 14px; background:var(--lilac-soft); border-radius:14px; color:var(--lilac-ink); font-size:13px; line-height:1.5; }
.card-nudge { background:var(--lilac); }
@media(max-width:600px) { .nudge-summary { padding:23px 16px 29px; }.nudge-header h2 { font-size:25px; }.nudge-item { padding:14px; }.nudge-item-title { flex-basis:135px; } }
@media(forced-colors:active) { .nudge-item,.nudge-status,.nudge-mark,.nudge-editor-preview { border:1px solid CanvasText; }.nudge-actions button { border:1px solid ButtonText; } }

.private-workspace{height:100%;min-height:0;display:flex;flex-direction:column;position:relative;background:var(--paper,#f7f8ef);color:var(--ink,#234b37);overflow:hidden}
.private-header{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid #294f3717;flex:none}.private-heading{flex:1;min-width:0}.private-heading h1{font-size:21px;line-height:1.15;margin:0;letter-spacing:-.7px}.private-only{font-size:12px;display:block;color:#627663;margin-top:3px}.private-back,.private-quiet{border:0;background:transparent;color:inherit;cursor:pointer;min-height:40px;padding:7px;border-radius:12px;font:inherit}.private-back{font-size:32px;line-height:1;width:30px;padding:0}.private-quiet{font-size:12px;font-weight:650}.private-back:hover,.private-quiet:hover{background:#294f370a}.private-sidekick-bar{display:flex;align-items:center;gap:9px;padding:12px 18px;flex:none}.private-sidekick-bar .nudge-mark{height:36px;width:36px;font-size:25px;border-radius:13px;background:#e4eebf;flex:none}.private-sidekick-name{flex:1;min-width:0}.private-sidekick-name strong{display:block;font-size:15px}.private-sidekick-name small{display:block;font-size:11px;color:#687c6c}.private-view{white-space:nowrap;font-size:12px!important;padding:9px 11px!important}.private-notices{padding:0 18px;flex:none}.private-error,.private-status{font-size:13px;line-height:1.4;margin:0}.private-error:empty,.private-status:empty{display:none}.private-error{color:#9b333f}.private-status{background:#ede7f6;padding:9px 12px;border-radius:12px}.private-notices>.btn{margin:7px 0}.private-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.private-content>button{flex:none;align-self:center}.private-messages,.private-reminders{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:12px 20px 24px;scrollbar-width:thin}.private-messages[hidden],.private-reminders[hidden],.private-composer[hidden]{display:none}.private-message{max-width:600px;margin:0 auto 18px;overflow-wrap:anywhere}.private-message-author{font-size:11px;font-weight:700;margin:0 0 5px;color:#69806e}.private-message-text{font-size:15px;line-height:1.48;margin:0;white-space:pre-wrap}.private-message.is-own{background:#e9e0f6;border-radius:17px 17px 4px 17px;padding:10px 13px;margin-left:auto;max-width:min(520px,90%)}.private-message.is-sidekick{padding:4px 0}.private-message .nudge-chat-card{max-width:100%}.private-message .nudge-item-title{font-size:16px}.private-message .nudge-timing{font-size:12px}.private-message .nudge-audience{font-size:11px}.private-message .nudge-status{font-size:10px}.private-reply-button{border:0;background:transparent;padding:8px 0;color:#4b6555;font:inherit;font-size:12px;font-weight:650;cursor:pointer}.private-message-state,.private-working,.private-history-label{display:block;font-size:12px;color:#798076;margin-top:5px}.private-working{color:#726391}.private-reminders>section{max-width:620px;margin:0 auto 22px}.private-reminders h2{font-size:15px;margin:4px 0 10px}.private-reminders .nudge-item{margin-bottom:10px}.private-empty{max-width:360px;margin:34px auto;text-align:center;line-height:1.5}.private-empty .nudge-mark{margin:auto;background:#e4eebf;border-radius:20px;width:64px;height:64px;font-size:42px}.private-empty h2{font-size:24px;letter-spacing:-.7px;margin:16px 0 9px}.private-empty p{font-size:14px;color:#627663;margin:0 0 8px}.private-empty small{font-size:11px;color:#627663}.private-composer{flex:none;margin:0;padding:10px 16px max(12px,env(safe-area-inset-bottom));background:#fbfcf8;border-top:1px solid #294f3715}.private-compose-row{display:flex;gap:8px;align-items:flex-end;max-width:760px;margin:auto}.private-compose-row textarea{resize:none;min-width:0;flex:1;min-height:44px;max-height:120px;field-sizing:content;border-radius:20px;border:1px solid #234b3733;background:white;padding:11px 14px;font:inherit;font-size:16px;line-height:1.35;color:inherit}.private-send{min-height:44px;padding:10px 15px!important;border-radius:17px!important;font-size:13px!important}.private-reply{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:760px;margin:0 auto 6px;padding:4px 10px;background:#e9eede;border-radius:10px;font-size:12px}.private-reply span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.private-reply[hidden],.private-pending[hidden]{display:none}.private-pending{max-width:760px;margin:0 auto 8px;padding:9px 12px;border:1px solid #c7b9da;border-radius:12px;overflow-wrap:anywhere}.private-pending p{margin:0 0 3px;font-size:13px}.private-pending small{display:block;font-size:11px;margin-bottom:6px}.private-modal-overlay{position:absolute;inset:0;z-index:30;display:flex;align-items:flex-end;justify-content:center;background:#18342555;padding:10px}.private-modal{background:#fbfcf7;border-radius:23px;padding:18px;width:100%;max-width:470px;max-height:95%;overflow:auto;box-shadow:0 8px 30px #142d3022}.private-modal-head{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px}.private-modal-head h2{font-size:20px;margin:0;letter-spacing:-.4px}.private-modal label{display:grid;gap:5px;font-size:13px}.private-modal input,.private-modal select{width:100%;min-width:0;padding:10px;border:1px solid #9bac99;border-radius:12px;background:white;color:inherit;font:inherit}.private-modal p{font-size:14px;line-height:1.45}.private-workspace :focus-visible{outline:2px solid #7962a8;outline-offset:3px}
@media(max-width:360px){.private-header,.private-sidekick-bar{padding-left:12px;padding-right:12px;gap:7px}.private-sidekick-name small{display:none}.private-sidekick-name strong{font-size:13px}.private-sidekick-bar .nudge-mark{width:29px;height:32px;font-size:23px}.private-view{padding:8px!important}.private-messages,.private-reminders{padding-left:14px;padding-right:14px}.private-composer{padding-left:10px;padding-right:10px}.private-heading h1{font-size:19px}}

.private-sidekick-bar[hidden]{display:none}.private-explore{padding:9px 11px!important;font-size:12px!important;white-space:nowrap}.private-workspace .sidekick-event{max-width:540px;margin:12px auto 20px;text-align:left}.private-workspace .sidekick-event-mark{background:#e7dff7}

/* Match the private chat identity and keep tools on one quiet row. */
.private-header .private-heading h1{font-size:17px;font-weight:600;letter-spacing:-.015em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.private-sidekick-bar .private-sidekick-name,.private-sidekick-bar>.nudge-mark{display:none}.private-sidekick-bar{justify-content:flex-end;padding:0 16px;border-bottom:1px solid var(--line);gap:14px}.private-sidekick-bar .private-view{padding:8px 0!important;border:0;background:none;box-shadow:none}.private-sidekick-bar button{min-height:40px;white-space:nowrap}

/* Private conversations share Together's existing bubble language. */
.private-chat{background:var(--canvas)}
.private-chat-header{display:flex;align-items:center;gap:8px;padding:12px 14px 12px 5px;border-bottom:1px solid var(--line);flex:none}
.private-chat-header .private-back{height:44px;min-height:44px;width:44px;flex:0 0 44px;font-size:27px}
.private-chat-header .private-heading h1{font-size:17px;font-weight:600;letter-spacing:-.015em;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.private-chat-header .private-only{font-size:10px;margin-top:2px;color:var(--muted)}
.private-chat-header .private-chat-avatar{width:35px;height:35px;flex:0 0 35px;background:var(--lime);border-radius:13px;font-size:20px}
.private-chat-header .private-quiet{min-height:44px}
.private-chat .private-content{position:relative}
.private-chat-list{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:20px 18px;scrollbar-width:thin}
.private-chat-list .message{width:100%;margin:0 0 16px}
.private-chat-list .message .message-content{max-width:78%}
.private-chat-list .message .bubble{white-space:normal}
.private-chat-list .message-text{white-space:pre-wrap;margin:0}
.private-chat-list .message > .avatar{margin-bottom:0}
.private-chat-list .own > .avatar{font-size:10px;background:var(--lilac)}
.private-chat-working{display:block;font-size:11px;color:var(--muted);margin-top:6px}
.private-chat-action{border:0;background:transparent;padding:9px 0;min-height:44px;min-width:44px;color:var(--accent);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.private-chat-list .sidekick-event{margin:10px auto 22px;max-width:520px}
.private-chat-empty-glyph{display:grid;place-items:center;margin:0 auto 16px;background:var(--lime);border-radius:20px;width:60px;height:60px;font-size:30px}
.private-chat-composer{flex:none;margin:0;padding:10px 14px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--canvas)}
.private-chat-compose-row{display:flex;align-items:flex-end;gap:8px;max-width:760px;margin:auto}
.private-chat-compose-row textarea{flex:1;min-width:0;min-height:44px;max-height:132px;resize:none;border:1px solid var(--control-line);border-radius:21px;background:var(--paper);padding:11px 14px;color:var(--ink);font:inherit;font-size:16px;line-height:1.35}
.private-chat-send{height:44px;min-height:44px;flex:none;padding:10px 15px;font-size:13px;border-radius:16px}
.private-chat .private-notices{padding-top:6px}
.private-chat .private-notices:has(.private-error:empty):has(.private-status:empty):has([hidden]){padding-top:0}
.private-chat .private-explore{min-height:44px}
@media(max-width:680px){.private-chat-header{padding-top:calc(9px + env(safe-area-inset-top));gap:6px}.private-chat-list{padding:15px 10px}.private-chat-list .message .message-content{max-width:78%}.private-chat-list .message.own .message-content{max-width:85%}.private-chat-header .private-quiet{font-size:11px;padding:5px}.private-chat-header .private-explore{padding:7px!important;font-size:11px!important}}
@media(max-width:360px){.private-chat-header{gap:4px;padding-right:8px}.private-chat-header .private-heading h1{font-size:16px}.private-chat-header .private-chat-avatar{width:30px;height:32px;flex-basis:30px;font-size:18px}.private-chat-composer{padding-inline:10px}.private-chat-header .private-back{width:44px;flex-basis:44px}}
@media(forced-colors:active){.private-chat-header,.private-chat-composer{border-color:CanvasText}.private-chat-action{color:LinkText}}

.travel-memory{display:grid;gap:14px;color:var(--ink,#234b37);font-size:14px;line-height:1.5}.travel-memory h3,.travel-memory p{margin:0}.travel-memory h3{font-size:20px;letter-spacing:-.4px}.travel-memory button{min-height:42px}.preference-back,.preference-link{border:0;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:650;text-align:left;border-radius:10px;padding:8px;cursor:pointer}.preference-back{justify-self:start;margin-left:-8px}.preference-back:before{content:'‹';font-size:19px;margin-right:8px}.preference-intro{color:var(--muted,#657461)}.preference-scope{font-size:11px;font-weight:700;color:#536a51}.preference-tools,.preference-actions,.preference-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.preference-tools{margin-bottom:2px}.preference-card{padding:15px 16px;border:1px solid var(--line,#dce1d4);background:var(--paper,#fffef8);border-radius:19px;display:grid;gap:8px;overflow-wrap:anywhere}.preference-text{font-size:16px;line-height:1.5}.preference-state{font-size:11px;color:#71627b;background:#eee8f3;padding:3px 7px;border-radius:9px}.preference-note{font-size:12px;color:var(--muted,#657461);line-height:1.5}.preference-actions{margin:0 -8px -4px}.preference-empty{padding:24px 18px;border-radius:18px;background:#eef1e5;color:#51644d;display:grid;gap:8px}.preference-empty p{font-size:14px;line-height:1.55}.preference-empty strong{font-size:15px}.travel-memory textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:112px;max-height:220px;background:#fffef8;color:inherit;border:1px solid #a9b89e;border-radius:15px;padding:13px;font:inherit;font-size:16px;line-height:1.5}.preference-quote{margin:0;padding:14px 16px;background:#f0f1e8;border-left:3px solid #b5c797;border-radius:0 13px 13px 0;white-space:pre-wrap;overflow-wrap:anywhere}.preference-share-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line,#dce1d4);border-radius:15px;padding:12px 14px}.preference-share-row>div{min-width:0;overflow-wrap:anywhere}.preference-share-row>button{flex:none;max-width:45%}.preference-saved,.preference-progress{padding:9px 12px;border-radius:12px;background:#edf3df;font-size:13px}.preference-error{padding:10px 12px;border-radius:12px;background:#f9ebe5;color:#8e4237;font-size:13px;overflow-wrap:anywhere}.preference-review-note{padding:10px 12px;border-radius:12px;background:#eee8f3}.travel-memory :focus-visible{outline:3px solid #6c855c;outline-offset:3px}.travel-memory button:disabled{opacity:.6;cursor:wait}.memory-entry{display:flex;gap:10px;align-items:center;justify-content:space-between;width:100%;text-align:left;border:1px solid var(--line,#dce1d4);border-radius:15px;background:#f0f2e6;color:inherit;font:inherit;font-size:13px;padding:11px 14px;min-height:44px;cursor:pointer}.memory-entry span{font-size:11px;color:var(--muted,#657461)}.private-memory-entry{margin:0 14px 10px;width:calc(100% - 28px);flex:none}.memory-overlay{top:var(--viewport-offset,0px);bottom:auto;height:min(var(--app-height,100dvh),100dvh)}.dialog.memory-dialog{width:min(540px,calc(100% - 24px));max-height:min(88dvh,calc(var(--app-height,100dvh) - 24px))}.memory-dialog .dialog-body{padding-top:0}.sk-library .memory-entry{margin:4px 0 16px}.sk-detail-actions .sk-memory-action{background:#f0f2e6}.travel-memory>.btn{justify-self:start}
@media(max-width:600px){.memory-overlay{align-items:flex-end!important;padding:0!important}.dialog.memory-dialog{width:100%;max-height:min(calc(100dvh - 14px - env(safe-area-inset-top)),calc(var(--app-height,100dvh) - 14px - env(safe-area-inset-top)));border-radius:25px 25px 0 0}.memory-dialog .dialog-head{padding:17px 18px 10px}.memory-dialog .dialog-body{padding:0 18px max(22px,env(safe-area-inset-bottom))}.travel-memory{gap:12px}}
@media(max-width:339px){.preference-card{padding:13px}.preference-share-row{gap:8px;padding:11px}.preference-share-row>button{max-width:44%;padding:8px!important}.preference-tools .btn{font-size:12px}.memory-entry{flex-wrap:wrap;gap:3px}}
@media(prefers-reduced-motion:no-preference){.memory-entry,.preference-link{transition:background-color 120ms,transform 120ms}.memory-entry:active,.preference-link:active{transform:scale(.99)}}

/* A single, familiar home doorway. It never overlays a conversation composer. */
.home-bottom-nav {
  display:flex; flex:0 0 auto; align-items:center; justify-content:space-around;
  width:100%; margin:0; padding:10px 18px max(10px,env(safe-area-inset-bottom)); gap:8px;
  border:0; border-top:1px solid #e2e7dc; border-radius:0; background:var(--home-paper,#f6f6f0); box-shadow:none;
}
.home-bottom-nav button {
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; flex:1 1 0;
  min-width:0; min-height:56px; padding:0; border-radius:14px; background:transparent;
  color:#6b786c; font-size:11px; font-weight:500;
}
.home-bottom-nav button svg { box-sizing:content-box; width:20px; height:20px; padding:6px 15px; border-radius:14px; flex:none; }
.home-bottom-nav button[aria-current=page] { color:#193f32; font-weight:650; background:transparent; }
.home-bottom-nav button[aria-current=page] svg { background:#e5efb9; }
.home-bottom-nav button:hover:not([aria-current=page]) svg { background:#ebeee2; }
.home-bottom-nav button:focus-visible { outline:2px solid var(--accent,#294833); outline-offset:1px; }
.app-shell:not(.home-open) .home-bottom-nav { display: none; }
.home-hub-panel {
  min-height: 0; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: 2px 24px 20px; scrollbar-width: thin; scrollbar-color: #bdccb2 transparent;
}
.home-hub-panel[hidden] { display: none !important; }
.home-hub-panel > * { max-width: 730px; margin-left: auto; margin-right: auto; }
.home-section-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto 18px; min-height: 44px; }
.home-section-intro p { color: var(--muted,#596b59); font-size: 13px; line-height: 1.45; margin: 3px 0 0; }
.home-scope { display: inline-flex; font-size: 10px; line-height: 1.3; color: var(--muted,#596b59); background: var(--well,#edf1e3); padding: 4px 7px; border-radius: 7px; }
.home-explore-action, .home-quiet-action, .home-load-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 9px 13px; border-radius: 13px; font-size: 12px; font-weight: 600;
  background: var(--lilac,#e5d9fa); color: var(--ink,#274734);
}
.home-explore-action { flex: 0 0 auto; }
.home-explore-action svg { width: 16px; height: 16px; }
.home-quiet-action { background: transparent; color: var(--muted,#596b59); }
.home-quiet-action:hover { background: var(--well,#edf1e3); color: var(--ink,#274734); }
.home-explorer-back { display: flex; margin: 0 0 8px; padding-left: 3px; }
.home-explorer-back svg { width: 17px; height: 17px; }
.home-private-chats { display: grid; gap: 9px; }
.home-private-chat, .home-invitation, .home-activity-item {
  display: flex; width: 100%; align-items: center; gap: 12px; text-align: left;
  min-width: 0; min-height: 82px; padding: 14px; border: 1px solid var(--line,#dfe5d5);
  background: var(--paper,#fffef8); border-radius: 19px; color: var(--ink,#274734);
  transition: background-color 140ms ease, border-color 140ms ease;
}
.home-private-chat:hover, .home-invitation:hover, .home-activity-item:hover { background: var(--well,#edf1e3); border-color: #bacaae; }
.home-private-chat:active, .home-invitation:active, .home-activity-item:active { background: #e8eecf; }
.home-private-chat > svg, .home-activity-item > svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--muted,#596b59); }
.home-skill-face { display: grid; place-items: center; width: 43px; height: 46px; flex: 0 0 43px; border-radius: 15px; background: var(--lime,#e3edb6); font-size: 24px; }
.home-skill-face.tone-lilac, .home-skill-face.tone-games { background: var(--lilac,#e5d9fa); }
.home-skill-face.tone-peach, .home-skill-face.tone-fun { background: var(--coral,#f6c7b5); }
.home-skill-face.tone-mint { background: #dcebd6; }
.home-chat-copy { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.home-chat-copy strong { font-size: 15px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.home-chat-copy > span { color: var(--muted,#596b59); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.home-sidekicks .sk-library { max-width: 820px; }
.home-sidekicks .sk-library-context { margin-top: 4px; }
.home-sidekicks .sk-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-load-status { color: var(--muted,#596b59); font-size: 13px; padding: 25px 2px; }
.home-hub-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e2cdba; background: #fcf3e8; padding: 11px 13px; border-radius: 14px; margin-bottom: 13px; }
.home-hub-error p { flex: 1 1 auto; min-width: 0; color: #775a3d; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.home-hub-error button { flex: 0 0 auto; color: #775a3d; }
.home-refresh { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; border-radius: 13px; color: var(--muted,#596b59); background: transparent; }
.home-refresh:hover { background: var(--well,#edf1e3); }
.home-section-label { color: var(--muted,#596b59); font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: .02em; margin: 0 1px 10px; }
.home-invitations { margin-bottom: 23px; }
.home-invitation + .home-invitation { margin-top: 8px; }
.home-invitation { background: #f3edf9; border-color: #e3d9ed; }
.home-invitation > .avatar, .home-activity-item > .avatar { width: 35px; height: 38px; flex: 0 0 35px; border-radius: 13px; }
.home-invite-pill { flex: 0 0 auto; font-size: 11px; line-height: 1.4; font-weight: 600; background: var(--paper,#fffef8); border-radius: 10px; padding: 7px 9px; }
.home-activity-list { display: grid; gap: 8px; }
.home-activity-list .home-section-label { margin-bottom: 2px; }
.home-activity-item { align-items: flex-start; padding: 14px 12px; gap: 10px; }
.home-activity-item > svg { align-self: center; }
.home-activity-copy { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.home-activity-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.home-activity-top strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 650; min-width: 0; }
.home-activity-top small { flex: 0 0 auto; white-space: nowrap; font-size: 10px; color: var(--muted,#596b59); }
.home-activity-cue { color: var(--muted,#596b59); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.home-activity-text { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.home-load-more { display: flex; margin: 16px auto 0; background: var(--well,#edf1e3); }
.home-caught-up { display: flex; flex-direction: column; align-items: center; padding: clamp(30px,8vh,75px) 15px 25px; text-align: center; max-width: 330px; }
.home-empty-mark { display: grid; place-items: center; background: var(--lime,#e3edb6); color: var(--ink,#274734); border-radius: 20px; width: 56px; height: 56px; margin-bottom: 18px; }
.home-empty-mark svg { width: 27px; height: 27px; }
.home-caught-up h2 { font-size: 22px; font-weight: 650; line-height: 1.25; letter-spacing: -.04em; margin-bottom: 9px; }
.home-caught-up p { color: var(--muted,#596b59); font-size: 13px; line-height: 1.55; }
@media (min-width:901px) {
  .home-private-chats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-sidekicks .sk-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:680px), (max-width:900px) and (pointer:coarse) {
  .home-hub-panel { padding: 0 16px 14px; }
  .home-section-intro { margin-bottom: 14px; }
  .home-private-chat { padding: 12px; min-height: 78px; border-radius: 18px; }
}
@media (max-width:350px) {
  .home-bottom-nav { padding-inline:12px; gap:1px; }
  .home-bottom-nav button { gap: 5px; padding-inline: 5px; font-size: 11px; }
  .home-bottom-nav button svg { width: 16px; height: 16px; flex-basis: auto; }
  .home-hub-panel { padding-inline: 12px; }
  .home-invitation, .home-activity-item { gap: 8px; padding: 11px 9px; }
  .home-activity-top { flex-wrap: wrap; gap: 2px 6px; }
  .home-activity-top strong { flex-basis: 100%; }
  .home-invite-pill { padding: 6px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-bottom-nav button, .home-private-chat, .home-invitation, .home-activity-item { transition: none; }
}
@media (forced-colors:active) {
  .home-bottom-nav, .home-private-chat, .home-invitation, .home-activity-item, .home-hub-error, .home-invite-pill, .home-scope, .home-empty-mark { border: 1px solid CanvasText; box-shadow: none; }
  .home-bottom-nav button[aria-current=page] { outline: 2px solid Highlight; outline-offset: -3px; }
  .home-bottom-nav button:focus-visible { outline-color: Highlight; }
}
.moments-home:not([data-home-tab="moments"]) .people-requests-inbox{display:none!important}

/* The home catalogue uses the same card renderer as the public directory. */
.home-sidekicks .sk-library-catalogue{max-width:520px}
.sk-library-catalogue .sk-library-context[hidden],.sk-library-catalogue .sk-intro[hidden],.sk-library-catalogue .sk-filters[hidden]{display:none}
.sk-library-catalogue .sk-discovery-controls{margin-top:0;background:transparent}.sk-library-catalogue .sk-search{background:#fffefa;border-color:#e0e2d7}
.sk-library-catalogue .sk-result-count{font-size:11px;margin:8px 0 12px;color:var(--muted)}
.home-catalogue-grid{gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
.home-catalogue-grid .public-card{width:100%;height:134px;min-width:0;display:block;text-align:left;color:#204e3c;font-family:inherit;cursor:pointer;--home-turn:0s;animation:home-sidekick-turn 39s ease-in-out var(--home-turn) infinite}
.home-catalogue-grid .public-card:active{transform:scale(.975)}
.home-catalogue-grid .public-card:focus-visible{outline:3px solid #8961db;outline-offset:3px}
.home-catalogue-grid .public-card-name{min-height:17px;font-size:12px;line-height:1.25}
.home-catalogue-grid .public-utility{font-size:10px;margin-top:0}
.home-catalogue-grid .lime{background:#e5f0b0}.home-catalogue-grid .peach{background:#ffe1c8}.home-catalogue-grid .lilac{background:#e4dbfa}.home-catalogue-grid .mint{background:#dceddc}
.public-card .catalogue-glyph{display:grid;place-items:center;font-size:46px;font-weight:750;line-height:1}
.home-catalogue-grid:focus-within .public-card{animation-play-state:paused}
@media(hover:hover){.home-catalogue-grid:hover .public-card{animation-play-state:paused}}
@keyframes home-sidekick-turn{0%,7.7%,100%{box-shadow:0 3px 0 #2947350b;border-color:#203e3014}1%,6%{box-shadow:0 0 0 2px #55773d,0 8px 18px #44652d16;border-color:#fffdf5}}
@media(prefers-reduced-motion:reduce){.home-catalogue-grid .public-card{animation:none}}
.home-catalogue-grid .public-card:nth-child(2){--home-turn:3s}
.home-catalogue-grid .public-card:nth-child(3){--home-turn:6s}
.home-catalogue-grid .public-card:nth-child(4){--home-turn:9s}
.home-catalogue-grid .public-card:nth-child(5){--home-turn:12s}
.home-catalogue-grid .public-card:nth-child(6){--home-turn:15s}
.home-catalogue-grid .public-card:nth-child(7){--home-turn:18s}
.home-catalogue-grid .public-card:nth-child(8){--home-turn:21s}
.home-catalogue-grid .public-card:nth-child(9){--home-turn:24s}
.home-catalogue-grid .public-card:nth-child(10){--home-turn:27s}
.home-catalogue-grid .public-card:nth-child(11){--home-turn:30s}
.home-catalogue-grid .public-card:nth-child(12){--home-turn:33s}
.home-catalogue-grid .public-card:nth-child(13){--home-turn:36s}

.home-catalogue-grid .public-card { padding:9px 9px 8px; border-radius:18px; }
.home-catalogue-grid .public-card .entry-art { width:64px; height:64px; margin:0 auto 5px; }
.home-catalogue-grid .public-card .public-utility { font-size:10px; line-height:1.2; padding:3px 1px; margin:1px 0 0; }
.home-catalogue-grid .public-card .catalogue-glyph { font-size:36px; }

.home-bottom-nav [data-home-tab=activity] { position:relative; }
.home-activity-dot { position:absolute; width:7px; height:7px; top:8px; left:calc(50% + 8px); border:2px solid var(--canvas); border-radius:50%; background:#7652aa; box-sizing:content-box; }
.home-activity-dot[hidden] { display:none; }
.home-notification-link { display:flex; align-items:center; gap:7px; min-height:44px; padding:0 4px; margin:-10px 0 12px; font-size:12px; color:var(--muted); }
.home-notification-link svg { width:16px; }

/* One readable voice across Moment and private Sidekick replies. */
.sidekick-rich-text { min-width:0; font-size:16px; line-height:1.45; color:inherit; white-space:normal; overflow-wrap:anywhere; }
.sidekick-rich-text p { margin:0; white-space:pre-line; }
div.sidekick-rich-text > * + * { margin-top:10px; }
.sidekick-rich-text strong { font-weight:600; }
.sidekick-rich-text h3 { margin:12px 0 5px; font-size:1em; line-height:1.4; letter-spacing:0; font-weight:600; }
.sidekick-rich-text > :first-child { margin-top:0; }
.sidekick-rich-text > :last-child { margin-bottom:0; }
.sidekick-rich-text ul, .sidekick-rich-text ol { padding-left:1.35em; margin-bottom:0; }
.sidekick-rich-text li { padding-left:2px; }
.sidekick-rich-text li + li { margin-top:7px; }
.sidekick-rich-text li > * + * { margin-top:5px; }
.sidekick-rich-text li::marker { color:var(--muted); font-size:.9em; }
.sidekick-rich-text a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.sidekick-rich-text a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:3px; }
.sidekick-rich-text .fact-citation { font-size:11px; font-weight:600; white-space:nowrap; padding:3px 2px; vertical-align:super; text-decoration:none; }
.sidekick-rich-text blockquote { margin-inline:0; padding-left:10px; border-left:2px solid var(--control-line); color:var(--muted); }
.sidekick-rich-text code { font-family:ui-monospace,monospace; font-size:.88em; background:#2747340b; border-radius:4px; padding:1px 4px; }
.sidekick-rich-text pre { white-space:pre-wrap; overflow-wrap:anywhere; padding:10px; background:#27473408; border:1px solid var(--line); border-radius:9px; }
.sidekick-rich-text pre code { padding:0; background:none; }
.sidekick-rich-text hr { height:1px; border:0; background:var(--line); margin-block:12px; }
.sidekick-comparisons { display:grid; gap:9px; }
.sidekick-comparisons dl { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr); gap:4px 10px; margin:0; padding:9px 0; border-block-start:1px solid var(--line); }
.sidekick-comparisons dt { font-size:12px; color:var(--muted); }
.sidekick-comparisons dd { margin:0; min-width:0; }
.sidekick-comparisons dd:first-of-type { font-weight:600; }
@media (forced-colors:active) { .sidekick-rich-text hr { background:CanvasText; } }

.sidekick-answer-preview { min-width:0; }
.sidekick-answer-toggle { display:block; min-height:44px; padding:8px 0 3px; font:inherit; font-size:13px; font-weight:500; color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.sidekick-answer-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* Optional photo media sits below the existing stationary card content. */
.moments-home .moment-card.has-moment-photos { isolation:isolate; color:#fffef6; }
.moments-home .moment-photo-media { position:absolute; inset:0; z-index:-1; overflow:hidden; border-radius:inherit; pointer-events:none; }
.moments-home .moment-photo-layer { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.moments-home .moment-photo-media::after { content:""; position:absolute; inset:0; z-index:2; background:linear-gradient(180deg,rgba(10,20,16,.64) 0%,rgba(10,20,16,.61) 32%,rgba(10,20,16,.24) 44%,rgba(10,20,16,.62) 60%,rgba(10,20,16,.85) 82%,rgba(10,20,16,.90) 100%); }
.moments-home .has-moment-photos .moment-preview,.moments-home .has-moment-photos .moment-author { color:#fffef6; }
.moments-home .has-moment-photos .moment-footer { color:#e1e7df; }
.moments-home .has-moment-photos .moment-unread { background:#e7efc0; color:#234c36; }
.moments-home .has-moment-photos .moment-people .moment-face { border-color:#ecebe5; }
.moments-home .has-moment-photos .moment-people-more { color:#234c36; background:#e7efc0; border-color:#ecebe5; }
.moments-home .has-moment-photos .moment-open:focus-visible,.moments-home .has-moment-photos .moment-people:focus-visible { outline-color:#e7efc0; outline-offset:-3px; }
.dialog .moment-photo-editor { display:flex; flex-direction:column; gap:14px; min-width:0; color:var(--ink,#193e30); }
.dialog .moment-photo-editor [hidden] { display:none!important; }
.dialog .moment-photo-editor button { touch-action:manipulation; }
.dialog .moment-photo-editor button:focus-visible { outline:3px solid #9072d7; outline-offset:2px; }
.dialog .moment-photo-styles { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dialog .moment-photo-style { display:flex; flex-direction:column; gap:9px; min-width:0; min-height:44px; padding:6px 6px 11px; border:1px solid var(--line,#dfe5d8); border-radius:16px; background:var(--paper,#fffefb); color:inherit; font:inherit; font-size:13px; font-weight:700; text-align:left; }
.dialog .moment-photo-style[aria-pressed=true] { box-shadow:0 0 0 2px #355940; border-color:transparent; }
.dialog .moment-photo-style-sample { display:flex; align-items:flex-end; width:100%; min-height:68px; padding:10px; border-radius:10px; background:#eff4dc; color:#193e30; font-size:14px; }
.dialog .moment-photo-style-sample.is-photo { color:#fffef6; background:linear-gradient(160deg,#6c9079,#a4ab79 45%,#263e2f); }
.dialog .moment-photo-note,.dialog .moment-photo-empty,.dialog .moment-photo-status { margin:0; font-size:12px; line-height:1.5; color:var(--muted,#647361); }
.dialog .moment-photo-picker { display:flex; flex-direction:column; gap:12px; min-width:0; }
.dialog .moment-photo-selection-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; }
.dialog .moment-photo-selection-heading>span { color:var(--muted,#647361); }
.dialog .moment-photo-selection { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; min-height:48px; }
.dialog .moment-photo-selection>.moment-photo-empty { grid-column:1/-1; align-self:center; }
.dialog .moment-photo-tabs { display:flex; gap:4px; padding:3px; border-radius:14px; background:var(--soft,#edf0e8); }
.dialog .moment-photo-tabs>button { flex:1; min-height:44px; padding:8px; border:0; border-radius:11px; background:transparent; color:inherit; font:inherit; font-size:13px; }
.dialog .moment-photo-tabs>button[aria-selected=true] { background:var(--paper,#fffefb); box-shadow:0 1px 4px #17342612; font-weight:750; }
.dialog .moment-photo-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-height:260px; padding:3px; overflow:auto; overscroll-behavior:contain; }
.dialog .moment-photo-gallery>.moment-photo-empty { grid-column:1/-1; padding:16px 2px; }
.dialog .moment-photo-item { display:flex; flex-direction:column; min-width:0; gap:2px; }
.dialog .moment-photo-thumb { position:relative; display:block; width:100%; min-width:44px; min-height:44px; aspect-ratio:1; padding:0; overflow:hidden; border:2px solid transparent; border-radius:12px; background:#e9eee1; color:#234c36; }
.dialog .moment-photo-thumb img { display:block; width:100%; height:100%; position:absolute; inset:0; object-fit:cover; }
.dialog .moment-photo-thumb img.is-unavailable { position:static; font-size:10px; line-height:1.3; }
.dialog .moment-photo-thumb[aria-pressed=true] { border-color:#355940; }
.dialog .moment-photo-check { position:absolute; right:4px; bottom:4px; display:grid; place-items:center; width:23px; height:23px; border:1px solid #fff; border-radius:50%; background:#132d2266; color:#fff; font-size:13px; font-weight:750; }
.dialog .moment-photo-thumb[aria-pressed=true] .moment-photo-check { background:#e7efc0; border-color:#e7efc0; color:#234c36; }
.dialog .moment-photo-remove,.dialog .moment-photo-retry { min-height:44px; padding:8px 5px; border:0; border-radius:9px; background:transparent; color:inherit; font:inherit; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.dialog .moment-photo-more,.dialog .moment-photo-upload { min-height:44px; }
.dialog .moment-photo-upload-status { display:flex; flex-direction:column; gap:6px; }
.dialog .moment-photo-upload-job { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; line-height:1.45; }
.dialog .moment-photo-upload-job>span { min-width:0; overflow-wrap:anywhere; }
.dialog .moment-photo-error:empty,.dialog .moment-photo-status:empty,.dialog .moment-photo-upload-status:empty { display:none; }
.dialog .moment-photo-error { margin:0; font-size:13px; }
.dialog .moment-photo-actions { position:sticky; bottom:0; z-index:3; display:flex; align-items:center; gap:10px; padding:12px 0 0; border-top:1px solid var(--line,#dfe5d8); background:var(--surface,#fffefb); }
.dialog .moment-photo-actions .btn { min-height:44px; }
.dialog .moment-photo-actions .btn:last-child { flex:1; }
.dialog .moment-photo-editor button:disabled { opacity:.5; cursor:default; }
@media(max-width:360px) { .dialog .moment-photo-gallery { gap:7px; } .dialog .moment-photo-selection { gap:4px; } .dialog .moment-photo-style { font-size:12px; } }
@media(prefers-reduced-motion:reduce) { .moments-home .moment-photo-layer { transition:none!important; } }
@media(forced-colors:active) { .moments-home .moment-photo-media { display:none; } .moments-home .moment-card.has-moment-photos,.moments-home .has-moment-photos .moment-preview,.moments-home .has-moment-photos .moment-author,.moments-home .has-moment-photos .moment-footer { color:CanvasText; } .dialog .moment-photo-style[aria-pressed=true],.dialog .moment-photo-thumb[aria-pressed=true] { outline:2px solid Highlight; } }

.eday-sheet{max-width:560px;margin:auto;color:var(--ink,#193e32)}.eday-record{padding:4px 0 18px;border-bottom:1px solid #e1e5db}.eday-record+.eday-record{padding-top:20px}.eday-record h3{font-size:21px;letter-spacing:-.5px;margin:8px 0 12px}.eday-record p{font-size:15px;line-height:1.5;margin:8px 0}.eday-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.eday-action{display:inline-flex;justify-content:center;align-items:center;gap:5px;min-height:42px;padding:9px 13px;background:#f0f2e9;border:0;border-radius:13px;color:#204636;font:600 14px/1.3 inherit;text-decoration:none;cursor:pointer}.eday-action.primary{background:#204c3c;color:white}.eday-action:active{transform:scale(.98)}.eday-action:disabled{opacity:.55}.eday-muted,.eday-record small{display:block;color:#657066;font-size:13px;line-height:1.5}.eday-lead{font-weight:600}.eday-glyph{font-size:40px;margin:5px 0}.eday-stat{display:flex;align-items:baseline;gap:10px;margin:18px 0}.eday-stat strong{font-size:36px;letter-spacing:-1px}.eday-stat span{font-size:14px;color:#657066}.eday-person{display:flex;align-items:center;gap:10px;padding:10px 0;flex-wrap:wrap}.eday-person>span:nth-child(2){flex:1}.eday-face{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e6edbd;font-weight:700}.eday-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:14px}.eday-facts dt{color:#69746b}.eday-facts dd{margin:0;text-align:right;font-weight:600}.eday-review{background:#f1ebfa;border-radius:12px;padding:12px}.eday-turn{display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding:13px 0;border-bottom:1px solid #e8ebe2}.eday-turn>div{flex:1;min-width:180px}.eday-turn select{max-width:100%;font-size:14px}.eday-chore-plan{padding:8px 0}.eday-chore-plan small{margin-top:2px}.eday-error{font-size:14px;color:#874339;line-height:1.5}.eday-error:empty{display:none}.eday-error .eday-action{margin:8px}.eday-record blockquote{font-size:13px;color:#657066;border-left:2px solid #dbe5bf;padding:8px;margin:8px 0}.eday-record summary{font-size:13px;cursor:pointer;margin:8px 0}.eday-public{max-width:520px;margin:auto;padding:20px 20px 48px;min-height:100dvh;background:#f8f9f2;color:#193e32}.eday-public header{display:flex;justify-content:space-between;align-items:center}.eday-public header>a{font-size:26px;font-weight:800;letter-spacing:-1.4px;text-decoration:none;color:inherit}.eday-public-card{margin-top:30px;text-align:center}.eday-public h1{font-size:36px;line-height:1.12;letter-spacing:-1.2px;margin:22px auto 16px;overflow-wrap:anywhere}.eday-public .eday-lead{font-size:18px}.eday-public-card>p{line-height:1.5}.eday-eyebrow{font-size:13px;color:#657066}.eday-public .eday-actions{justify-content:center}.eday-public input[type=text]{display:block;width:100%;box-sizing:border-box;margin:16px 0 12px;border-radius:14px;padding:14px;background:white;border:1px solid #dce1d5;font-size:16px}.eday-check{display:flex;justify-content:center;align-items:center;gap:8px;font-size:13px;color:#657066;margin:12px 0}.eday-check input{width:18px;height:18px}.eday-public small{display:block;color:#657066;font-size:12px;line-height:1.5;margin:14px auto;max-width:285px}.eday-rsvp-state{display:inline-block;background:#e3efb5;padding:10px 16px;border-radius:20px;font-weight:600}.eday-party-orbit{position:relative;width:210px;height:160px;margin:auto;display:grid;place-items:center}.eday-party-orbit>span{font-size:70px;animation:eday-float 5s ease-in-out infinite}.eday-party-orbit>b{position:absolute;left:calc(50% + 78px * cos(var(--i)*60deg));top:calc(50% + 58px * sin(var(--i)*60deg));width:35px;height:35px;margin:-17px;display:grid;place-items:center;border-radius:50%;background:#e4dafa;border:3px solid #fff}.eday-record-link{font-size:13px}.eday-file-ready{padding:6px 9px;font-size:13px;color:#365944}.private-chat-compose-row .eday-action{padding:8px;flex-shrink:0}@keyframes eday-float{50%{transform:translateY(-5px) rotate(-4deg)}}@media(prefers-reduced-motion:reduce){.eday-party-orbit>span{animation:none}.eday-action:active{transform:none}}

/* Events reuse the invitation identity; supporting details stay close to chat. */
.eday-event-summary{display:grid;gap:12px;min-width:0}.eday-event-summary>.eday-muted{margin:0}.eday-public-card>.invite-card{text-align:left;margin-bottom:18px}.eday-public .invite-card-title{font-size:34px}.eday-sheet>.eday-action{margin:0 8px 16px 0}.moment-event-entry{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #e5ded0;border-radius:16px;padding:14px;background:#fffaf0;color:inherit;font:inherit;min-width:0;cursor:pointer}.moment-event-entry>span:first-child{font-size:25px;flex:none}.moment-event-entry strong,.moment-event-entry small{display:block;overflow-wrap:anywhere}.moment-event-entry small{font-size:12px;color:#68766b;margin-top:4px}.moment-event-entry .grow{min-width:0}.moment-event-entry svg{flex:none}.moment-event-entry:focus-visible{outline:3px solid #8f70c8;outline-offset:3px}@media(max-width:350px){.eday-public{padding:16px 14px 32px}.eday-public .invite-card-title{font-size:29px}}

/* The public journey shares Flockin's ink and illustrations, with a quiet, focused canvas. */
.public-entry{--public-ink:#183f32;max-width:490px;margin:0 auto;padding:22px 24px 30px;min-height:100dvh;background:#fffdf5;color:var(--public-ink);box-sizing:border-box;font-family:inherit}
body:has(.public-entry){background:#f4f3e9}.public-entry *{box-sizing:border-box}.public-entry a{text-decoration:none;color:inherit}.public-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}.public-header>a{display:flex}.public-brand{display:flex;align-items:center;gap:5px}.public-brand>img:first-child{border-radius:10px}.public-brand>img{object-fit:contain}.public-button{border:0;border-radius:17px;min-height:52px;padding:13px 19px;font:inherit;font-size:16px;font-weight:800;cursor:pointer;transition:transform .13s ease,background .13s ease;display:block;width:100%;line-height:1.4}.public-button:active{transform:scale(.977)}.public-button.primary{background:#204e3c;color:#fffef6;box-shadow:0 3px 0 #123c2d}.public-button.secondary{background:#e9e5fa;color:#254337;border:1px solid #dbd6ec}.public-button.quiet{background:transparent;color:var(--public-ink);font-size:13px;padding:10px 0;width:auto;min-height:44px}.public-button:disabled{opacity:.6;cursor:wait}.public-entry :focus-visible{outline:3px solid #8961db;outline-offset:4px}.public-eyebrow{font-size:11px;letter-spacing:.16em;font-weight:850;margin:0 0 12px;color:#627161}.public-intro h1{font-size:clamp(27px,7.5vw,34px);letter-spacing:-.05em;line-height:1.13;font-weight:850;margin:0 0 25px;text-wrap:balance}.public-search{display:flex;align-items:center;gap:10px;border:1px solid #e0e2d7;border-radius:15px;background:#fffefa;padding:0 13px;margin-bottom:20px;box-shadow:0 2px 0 #e7e8dc66}.public-search>span{font-size:27px;line-height:1}.public-entry .public-search input{min-width:0;border:0;background:transparent;box-shadow:none;margin:0;padding:13px 0;font-size:14px;color:var(--public-ink);height:48px}.public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.public-card{height:148px;border-radius:18px;padding:10px 10px 12px;position:relative;border:1px solid #203e3014;box-shadow:0 3px 0 #2947350b;transition:transform .15s ease;overflow:hidden}.public-grid>a:active .public-card{transform:scale(.975)}.public-card .entry-art{display:block;width:78px;height:76px;object-fit:contain;margin:-2px auto 3px}.public-card h2,.public-card-name{display:block;font-size:14px;font-weight:900;letter-spacing:-.045em;margin:0 0 4px;line-height:1.2}.public-card p{font-size:11px;color:#526353;margin:0;line-height:1.4;max-width:100%}.public-card-arrow{position:absolute;bottom:15px;right:12px;font-size:18px;line-height:1}.public-entry .lime{background:#e5f0b0}.public-entry .peach{background:#ffe1c8}.public-entry .lilac{background:#e4dbfa}.public-entry .mint{background:#dceddc}.public-entry footer{text-align:center;font-size:11px;color:#788072;margin-top:25px;line-height:1.5}.public-back{font-size:13px;display:inline-block;margin:-5px 0 12px;padding:4px 0}.public-hero{text-align:center;border-radius:26px;padding:16px 15px 23px;margin-bottom:21px}.public-hero .entry-art{width:174px;height:172px;object-fit:contain;margin:-7px auto 0;display:block}.public-hero .public-eyebrow{letter-spacing:.02em;text-transform:none;color:#3c5d43;font-size:15px;margin:0 0 9px}.public-hero h1,.public-invite h1{font-size:32px;font-weight:900;line-height:1.08;letter-spacing:-.055em;margin:0 auto;max-width:340px}.public-example{border:1px solid #e5e6d9;border-radius:20px;background:#fffffa;padding:16px 13px;margin-bottom:22px}.public-example>.public-eyebrow{font-size:9px;margin-bottom:12px}.public-example-row{display:flex;gap:9px;align-items:flex-start;margin-top:11px}.public-example-row>img{width:31px;height:31px;border-radius:10px;object-fit:contain;flex-shrink:0}.public-example-row>p,.public-example-reply{margin:0;font-size:13px;line-height:1.5;border-radius:14px;padding:11px 13px}.public-example-user{background:#f0edf8}.public-example-reply{background:#f2f5e6;flex:1}.public-example-reply p{margin:0}.public-example-chip{display:inline-block;background:white;border:1px solid #dce2cd;border-radius:9px;padding:5px 10px;margin-top:9px;font-size:11px;font-weight:800}.public-actions{display:grid;gap:10px}.public-error:empty{display:none}.public-error{font-size:13px;color:#9a332c;line-height:1.5;margin:8px 0}.public-setup{display:grid;gap:12px}.public-setup label{font-size:14px;font-weight:800}.public-setup input{width:100%;border:1px solid #ced7c5;border-radius:14px;padding:15px;background:white;font-size:16px;color:var(--public-ink)}.public-setup .public-button{margin-top:8px}.public-invite{text-align:center;padding-top:20px}.public-invite-art{width:210px;height:210px;margin:24px auto 27px;border-radius:50%;position:relative;display:grid;place-items:center}.public-invite-art>.entry-art{width:192px;height:192px;object-fit:contain}.public-invite-person{position:absolute;bottom:-2px;right:-7px;border:5px solid #fffdf5;border-radius:23px}.public-invite-subtitle{font-size:16px;margin:17px 0 10px;color:#56664f}.public-invite-name{font-size:14px;font-weight:800;overflow-wrap:anywhere;margin:0 0 30px}.public-small{font-size:11px;color:#788072;margin:15px 0}.public-entry .public-empty{font-size:14px;line-height:1.5}.public-share-preview{display:flex;align-items:center;gap:14px;background:#eef2da;border:1px solid #dfe5ca;border-radius:18px;padding:14px}.public-share-preview img{width:72px;height:72px;object-fit:contain}.public-share-preview strong{font-size:18px;letter-spacing:-.04em}.public-share-preview p{font-size:12px;color:#617057;margin:6px 0 0}.public-share-sheet{gap:12px}.public-share-sheet input{font-size:13px}.public-share-sheet .public-button{color:#fff}.public-share-sheet .public-button.secondary{color:#254337}.public-share-note{font-size:11px;color:var(--muted);line-height:1.4;margin:0}.public-share-sheet .btn{width:100%}
@media(min-width:720px){.public-entry{margin:28px auto;min-height:calc(100dvh - 56px);border:1px solid #e2e6d8;border-radius:30px;box-shadow:0 18px 60px #26392b0b;padding:27px 30px 30px}.public-card{height:158px}.public-card .entry-art{height:86px;width:88px}}
@media(max-width:350px){.public-entry{padding:18px 17px 25px}.public-grid{gap:8px}.public-card{padding:9px 7px;height:140px}.public-card .entry-art{width:69px;height:70px}.public-card h2,.public-card-name{display:block;font-size:12.5px}.public-card p{font-size:10px}.public-brand>img:last-child{width:94px}.public-hero h1,.public-invite h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){.public-entry *{transition:none!important}}

.public-share-sheet .public-button{text-align:center;text-decoration:none}.public-share-sheet input{width:100%;min-width:0;border:1px solid #e1e6d7;border-radius:12px;padding:11px 12px;background:#f9fbf3;color:#51604b;text-align:center;font:inherit;font-size:12px;text-overflow:ellipsis}

/* A small fan of familiar characters on arrival, kept clear of the OTP steps. */
.entry-sidekick-fan{display:flex;align-items:center;justify-content:center;width:100%;height:110px;margin:24px auto 5px;isolation:isolate}
.entry-sidekick-tile{display:grid;place-items:center;width:62px;height:76px;flex:0 1 62px;min-width:0;border-radius:18px;border:3px solid var(--canvas);box-shadow:0 5px 10px #2947350b;transform:translateY(4px) rotate(-9deg)}
.entry-sidekick-tile+.entry-sidekick-tile{margin-left:-7px}.entry-sidekick-tile:nth-child(2){transform:translateY(-5px) rotate(5deg)}.entry-sidekick-tile:nth-child(3){transform:translateY(-9px) rotate(-5deg)}.entry-sidekick-tile:nth-child(4){transform:translateY(-5px) rotate(7deg)}.entry-sidekick-tile:nth-child(5){transform:translateY(1px) rotate(-5deg)}.entry-sidekick-tile:nth-child(6){transform:translateY(8px) rotate(9deg)}
.entry-sidekick-tile .entry-art{width:100%;height:66px;object-fit:contain}.entry-sidekick-tile.lime{background:#e5f0b0}.entry-sidekick-tile.peach{background:#ffe1c8}.entry-sidekick-tile.lilac{background:#e4dbfa}.entry-sidekick-tile.mint{background:#dceddc}
.auth-box:has(.entry-sidekick-fan) .entry-title{font-size:clamp(27px,7.5vw,32px);line-height:1.14;letter-spacing:-.05em;text-wrap:balance;margin:14px 0 29px}.auth-box:has(.entry-sidekick-fan) .entry-invitation{margin:0 0 20px}
@media(max-height:650px){.auth-page:has(.entry-sidekick-fan){padding-top:24px;padding-bottom:24px}.entry-sidekick-fan{height:84px;margin-top:14px}.auth-box:has(.entry-sidekick-fan) .entry-title{margin-bottom:20px}}

/* One character takes a turn: short lift, quiet outline, useful caption.
   Fixed-size cards keep the search results and tap targets stationary. */
.public-intro .public-subtitle{max-width:330px;text-wrap:pretty;line-height:1.55}
.public-card .public-utility{display:inline-block;margin:3px -3px 0;padding:3px 4px;border-radius:7px;font-size:10px;line-height:1.35;letter-spacing:-.01em;color:#405740;max-width:calc(100% + 6px)}
.public-grid>a{--spot-delay:0s}.public-grid>a:nth-child(2){--spot-delay:3s}.public-grid>a:nth-child(3){--spot-delay:6s}.public-grid>a:nth-child(4){--spot-delay:9s}.public-grid>a:nth-child(5){--spot-delay:12s}.public-grid>a:nth-child(6){--spot-delay:15s}.public-grid>a:nth-child(7){--spot-delay:18s}
.public-grid.is-animated .public-card{animation:sidekick-spotlight 30s ease-in-out var(--spot-delay) infinite}
.public-grid.is-animated .entry-art{animation:sidekick-hello 30s ease-in-out var(--spot-delay) infinite;transform-origin:50% 80%}
.public-grid.is-animated .public-utility{animation:sidekick-utility 30s ease-in-out var(--spot-delay) infinite}
.public-grid:focus-within *{animation-play-state:paused!important}
@media(hover:hover){.public-grid:hover *{animation-play-state:paused!important}}
@keyframes sidekick-spotlight{0%,10%,100%{box-shadow:0 3px 0 #2947350b;border-color:#203e3014}2%,8%{box-shadow:0 0 0 2px #55773d,0 8px 18px #44652d16;border-color:#fffdf5}}
@keyframes sidekick-hello{0%,10%,100%{transform:translateY(0) rotate(0) scale(1)}3%{transform:translateY(-3px) rotate(-4deg) scale(1.07)}6%{transform:translateY(-3px) rotate(3deg) scale(1.07)}9%,13%{transform:translateY(-2px) rotate(0) scale(1.04)}}
@keyframes sidekick-utility{0%,10%,100%{background:transparent;color:#405740}2%,8%{background:#fffef5;color:#183f32;box-shadow:0 1px 3px #29473512}}
@media(prefers-reduced-motion:reduce){.public-grid.is-animated *{animation:none!important}}

/* Rally is the front door; specialists remain compact beneath it. */
.public-featured-link,.public-card-featured{grid-column:1/-1;min-width:0}
.public-grid .public-card-featured{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:14px;height:auto;min-height:172px;padding:18px;border-radius:23px;background:linear-gradient(120deg,#e5efb9,#f0f4d9);text-align:left}
.public-grid .public-card-featured .entry-art{width:112px;height:128px;margin:0;object-fit:contain}
.public-featured-copy{display:block;min-width:0}
.public-grid .public-card-featured .public-card-name{font-size:25px;letter-spacing:-.055em;margin-bottom:7px}
.public-featured-description{display:block;font-size:13px;line-height:1.5;color:#405740;text-wrap:pretty}
.public-grid .public-card-featured .public-utility{font-size:12px;font-weight:750;margin:10px 0 0;padding:0;animation:none}
.public-card-featured .public-utility:after{content:' ↗';margin-left:3px}
@media(max-width:350px){.public-grid .public-card-featured{grid-template-columns:82px minmax(0,1fr);gap:11px;padding:15px;min-height:170px}.public-grid .public-card-featured .entry-art{width:82px;height:110px}.public-grid .public-card-featured .public-card-name{font-size:23px}.public-featured-description{font-size:12px}}

/* Sign In: each utility sits directly beneath its own character. */
.entry-sidekick-showcase{position:relative;margin-bottom:5px}
.entry-sidekick-showcase .entry-sidekick-fan{margin-bottom:0;height:142px;align-items:flex-start;padding-top:17px}
.entry-sidekick-slot{position:relative;flex:0 1 62px;min-width:0;--fan-turn:0s;--fan-y:4px;--fan-tilt:-9deg}
.entry-sidekick-slot+.entry-sidekick-slot{margin-left:-7px}
.entry-sidekick-slot:nth-child(2){--fan-turn:-15s;--fan-y:-5px;--fan-tilt:5deg}
.entry-sidekick-slot:nth-child(3){--fan-turn:-12s;--fan-y:-9px;--fan-tilt:-5deg}
.entry-sidekick-slot:nth-child(4){--fan-turn:-9s;--fan-y:-5px;--fan-tilt:7deg}
.entry-sidekick-slot:nth-child(5){--fan-turn:-6s;--fan-y:1px;--fan-tilt:-5deg}
.entry-sidekick-slot:nth-child(6){--fan-turn:-3s;--fan-y:8px;--fan-tilt:9deg}
.entry-sidekick-showcase .entry-sidekick-tile{width:100%;transform:translateY(var(--fan-y)) rotate(var(--fan-tilt));animation:signin-card-turn 18s ease-in-out var(--fan-turn) infinite}
.entry-fan-caption{position:absolute;top:92px;left:-9px;right:-9px;text-align:center;font-size:11px;line-height:1.25;font-weight:750;color:#405b36;opacity:0;animation:signin-caption-turn 18s ease-in-out var(--fan-turn) infinite}
.auth-box:has(input:focus) .entry-sidekick-showcase *{animation-play-state:paused!important}
@keyframes signin-card-turn{0%,16.67%,100%{transform:translateY(var(--fan-y)) rotate(var(--fan-tilt)) scale(1);box-shadow:0 5px 10px #2947350b;z-index:0}2%,8%{transform:translateY(-16px) rotate(0) scale(1.1);box-shadow:0 0 0 2px #76964f,0 10px 20px #2947351c;z-index:2}}
@keyframes signin-caption-turn{0%,16.67%,100%{opacity:0;transform:translateY(4px)}2%,8%{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.entry-sidekick-showcase *{animation:none!important}.entry-sidekick-slot:first-child .entry-fan-caption{opacity:1;transform:none}}
@media(max-height:650px){.entry-sidekick-showcase .entry-sidekick-fan{height:126px}}

.public-grid>a:nth-child(8){--spot-delay:21s}.public-grid>a:nth-child(9){--spot-delay:24s}.public-grid>a:nth-child(10){--spot-delay:27s}

/* Keep native illustrations centred at every catalogue and invitation size. */
.entry-art.catalogue-glyph{display:inline-grid;place-items:center;font-size:52px;line-height:1;flex-shrink:0;filter:drop-shadow(0 6px 4px #29402a10)}
.public-hero>.entry-art.catalogue-glyph{font-size:112px}.public-example-row>.entry-art.catalogue-glyph{font-size:28px}.public-invite-art>.entry-art.catalogue-glyph{font-size:110px}

/* Shared invitations: a real purpose, one visual identity, familiar controls. */
.invite-share-sheet{display:grid;gap:12px;color:#183f32;min-width:0}
.invite-card{--invite-tint:#e5dcf7;position:relative;isolation:isolate;overflow:hidden;background:#fffcf5;border:1px solid #e5e5d9;border-radius:24px;padding:22px;text-align:left;color:#183f32;box-sizing:border-box}
.invite-tone-lime{--invite-tint:#e5efb7}.invite-tone-peach{--invite-tint:#ffe1ca}.invite-tone-mint{--invite-tint:#dceddc}
.invite-card:before{content:'';position:absolute;z-index:-1;width:188px;height:188px;background:var(--invite-tint);border-radius:50%;right:-44px;top:-42px}
.invite-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-height:104px}
.invite-kind{font-size:10px;font-weight:750;letter-spacing:.12em;padding-top:5px;line-height:1.6;color:#637267}
.invite-mascot{display:block;width:112px;height:112px;object-fit:contain;margin:-5px -4px 0 0;flex:none}
.invite-glyph{display:grid;place-items:center;font-size:76px;line-height:1;font-family:system-ui,sans-serif}
.invite-card .invite-card-title{font-family:inherit;font-size:clamp(25px,6.5vw,31px);font-weight:850;line-height:1.13;letter-spacing:-.04em;overflow-wrap:anywhere;margin:2px 0 9px;text-wrap:pretty}
.invite-card-purpose{font-size:15px;line-height:1.45;margin:0;max-width:290px;color:#526557}
.invite-event-details{display:grid;gap:8px;margin:15px 0 17px;font-size:14px;line-height:1.45}
.invite-event-details p{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;margin:0;overflow-wrap:anywhere}
.invite-detail-label{color:#647168;font-size:11px;font-weight:650;padding-top:3px}
.invite-event-card .invite-card-purpose{font-size:13px}
.invite-event-card .invite-card-foot{margin-top:18px}
.invite-card-foot{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:23px;padding-top:14px;border-top:1px solid #28483716}
.invite-with{font-size:12px;font-weight:700}.invite-brand{display:flex;align-items:center;gap:5px;font-size:18px;font-weight:900;letter-spacing:-.055em}.invite-brand img{border-radius:6px}
.invite-share-controls{display:flex;gap:10px}.invite-share-controls>*{flex:1;min-width:0}
.invite-action{display:flex;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;width:100%;min-height:48px;border-radius:14px;padding:11px 16px;text-decoration:none;font:inherit;font-weight:750;font-size:15px;cursor:pointer;transition:transform .12s ease,background .12s ease}
.invite-action:active{transform:scale(.98)}.invite-action-primary{background:#204e3c;color:#fffdf5!important;border:1px solid #204e3c}.invite-action-primary span{font-size:20px}.invite-action-secondary{background:#f0ecf8;color:#284638;border:1px solid #e4ddef}.invite-action:disabled{opacity:.6;cursor:wait}
.invite-focus{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:12px;color:#627064}.invite-focus select{font:inherit;font-size:13px;font-weight:700;color:#254337;border:1px solid #dce1d6;background:#fffefa;border-radius:10px;padding:8px 28px 8px 10px;min-width:0;max-width:65%;min-height:40px}
.invite-share-sheet .invite-link{box-sizing:border-box;min-width:0;width:100%;border:1px solid #dfe4d9;background:#f7f8f0;color:#536353;border-radius:11px;padding:12px;font:inherit;font-size:12px;line-height:1.4;text-overflow:ellipsis;box-shadow:none}
.invite-share-note,.invite-share-status,.invite-share-error{margin:0;font-size:12px;line-height:1.5;text-wrap:pretty}.invite-share-note{color:#6b766c}.invite-share-status{color:#285d43}.invite-share-error{color:#923c32}.invite-share-status:empty,.invite-share-error:empty{display:none}
.invite-done{border:0;border-radius:10px;background:transparent;color:#385442;font:inherit;font-size:13px;font-weight:700;padding:10px;min-height:40px;cursor:pointer}
.invite-share-sheet :focus-visible{outline:3px solid #8f70c8;outline-offset:3px}
.public-entry.invite-landing{background:#f7f7ef}.invite-landing .public-header{margin-bottom:24px}.invite-landing .invite-card{padding:25px}.invite-landing .invite-card-title{font-size:36px}.invite-landing .invite-card-top{min-height:130px}.invite-landing .invite-mascot{width:140px;height:140px}.invite-landing .invite-glyph{font-size:94px}.invite-landing .invite-card:before{width:225px;height:225px}
.invite-landing-copy{font-size:15px;line-height:1.6;color:#506253;margin:20px 4px}.invite-landing .public-button{margin-top:12px}.invite-landing .public-small{text-align:center;line-height:1.5;margin:12px 0}.invite-landing .public-error{text-align:left}
@media(max-width:350px){.invite-card{padding:17px}.invite-card-top{min-height:86px}.invite-mascot{width:92px;height:92px}.invite-glyph{font-size:65px}.invite-card .invite-card-title{font-size:26px}.invite-card-purpose{font-size:14px}.invite-landing .invite-card-title{font-size:30px}.invite-focus{gap:6px}.invite-landing .public-header{gap:7px}.invite-landing .public-brand>img:last-child{width:84px}}
@media(prefers-reduced-motion:reduce){.invite-share-sheet *{transition:none!important}}
