/* Idavoll design tokens. Keep visual changes in this stylesheet. */
:root {
  --ink: #1F1B16; --muted: #6E655A; --faint: #9A9084; --hair: #E6E0D6;
  --bg: #F7F4EE; --surf: #FFFFFF; --green: #2F6B4F; --green-soft: #E3EFE7;
  --amber: #8A5620; --amber-soft: #FBF1E3; --green-tint: #D3E5D9; --photo: #E9E1D3; --danger: #9B3B2E;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --tabbar: 76px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
button { font: inherit; color: inherit; }
.icon { flex-shrink: 0; display: block; }

/* Phone frame on wide screens; edge to edge on phones. */
.app { max-width: 430px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.app--bare { max-width: 430px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 600px) { .app, .app--bare { box-shadow: 0 0 0 1px var(--hair); } }

.screen { flex: 1 1 auto; display: flex; flex-direction: column; padding-bottom: calc(var(--tabbar) + 16px); }
.content { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 20px 12px; }
.header__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header__title { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.header__title--small { font-size: 22px; }
.header__title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.header__sub { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header__back { width: 36px; height: 36px; margin-left: -8px; display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.header__btns { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 20px; background: var(--surf); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; padding: 0; cursor: pointer; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu__items { position: absolute; right: 0; top: 52px; width: 260px; background: var(--surf); border: 1px solid var(--hair); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(31,27,22,0.12); z-index: 15; }
.menu__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.menu__item:hover { background: var(--bg); }
.plus-btn { width: 44px; height: 44px; border-radius: 22px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; padding: 0; }

/* Tab bar */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: var(--tabbar); border-top: 1px solid var(--hair); background: var(--surf); display: flex; padding: 0 6px; z-index: 10; }
@media (min-width: 600px) { .tabbar { max-width: 430px; left: 50%; transform: translateX(-50%); } }
.tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); font-size: 10.5px; letter-spacing: -0.01em; font-weight: 500; white-space: nowrap; }
.tab.is-active { color: var(--green); font-weight: 600; }
.tab__badge { position: absolute; top: -6px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* Text */
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.day-label { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; padding-top: 6px; }
.day-label__date { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.day-label__date::before { content: "·"; margin-right: 8px; color: var(--faint); }
/* The screenshots picked for a New Event, shown back before anything is sent. */
.shots { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 4px; }
.shot { display: flex; flex-direction: column; gap: 4px; width: 84px; flex-shrink: 0; }
.shot__img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; border: 1px solid var(--hair); background: var(--photo); }
.shot__name { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.headline { font-family: var(--serif); font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; text-wrap: pretty; }

/* Cards and rows */
.card { background: var(--surf); border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.card--green { background: var(--green-soft); border-color: transparent; }
.card--amber { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
/* The Plus-off card: a white card at the scale of the cards around it (13px body, 20px serif title, 16px padding), the gem in green. */
.card--plus { padding: 16px; gap: 10px; color: var(--ink); }
.card--plus .plus-bar { background: var(--hair); }
.card--plus .plus-bar__fill { background: var(--green); }
.plus-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plus-head__title { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.2; text-wrap: pretty; }
.plus-head .plus-gem { color: var(--green); }
.plus-way { display: flex; flex-direction: column; gap: 8px; }
.plus-way__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.plus-meter { display: flex; flex-direction: column; gap: 6px; }
.plus-meter__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.plus-meter__row strong { font-weight: 600; }
.plus-meter__note { font-size: 12px; color: var(--muted); }
.plus-or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.plus-or::before, .plus-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--hair); }
.plus-link { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--green); }
.card--plus-on { background: var(--green-tint); border-color: transparent; color: var(--green); }
/* The Plus progress bar: a translucent track filled in the card's ink on the green Plus-on tint; a hair track filled green on the white Plus-off card. */
.plus-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.55); overflow: hidden; }
.plus-bar__fill { height: 100%; background: currentColor; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.name-line { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
/* The quiet invite line on Event and Hangout pages. */
.invite-quiet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--hair); border-radius: 12px; color: var(--muted); text-decoration: none; }
.invite-quiet__icon { width: 30px; height: 30px; border-radius: 15px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.invite-quiet__head { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.invite-quiet__line { display: block; font-size: 12px; line-height: 1.4; text-wrap: pretty; }
.invite-quiet__cta { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--green); flex-shrink: 0; }

/* Admin area: cards with sectioned rows, compact fields, quiet lists. */
.admin-card { background: var(--surf); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.admin-card__head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; }
.admin-card__section { padding: 12px 16px 14px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 10px; }
.admin-card__section .section-label { margin: 0; }
.admin-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.admin-field .edit-box, .admin-inline .edit-box { padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.admin-inline { display: flex; gap: 8px; align-items: center; }
.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.admin-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surf); font-size: 13px; color: var(--muted); text-decoration: none; }
.admin-pill strong { color: var(--ink); }
.admin-pill--live { border-color: var(--green); color: var(--green); }
.admin-pill--live strong { color: var(--green); }
.admin-list { display: flex; flex-direction: column; }
.admin-list__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 13px; }
.admin-list__row:first-child { border-top: 0; padding-top: 2px; }
.admin-list__actions { display: flex; gap: 12px; flex-shrink: 0; }
.admin-list__actions a, .admin-list__actions button { font: inherit; font-size: 13px; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; color: var(--green); }
.admin-list__actions button { color: var(--muted); }
.admin-log { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.admin-log time { color: var(--faint); font-variant-numeric: tabular-nums; }
.profile-footer { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 8px; }
.profile-footer form { display: contents; }
.profile-footer__action { display: inline-flex; align-items: center; height: 32px; padding: 0; margin: 0; background: none; border: 0; font: inherit; font-size: 13px; line-height: 1; color: var(--faint); cursor: pointer; text-decoration: none; }
.portrait-photo { object-fit: cover; flex-shrink: 0; display: block; background: var(--photo); }
.portrait-photo--obscured { filter: saturate(0.9); }
.photo-hero--obscured { filter: none; }
.hero-gate--locked { color: var(--muted); }
.photo-pending { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.92); font-size: 11px; font-weight: 600; color: var(--muted); }
.photo-pending--held { color: var(--danger); }
.plus-gem { flex-shrink: 0; }
.plus-mark { color: var(--green); flex-shrink: 0; vertical-align: -2px; }
.muted-mark { display: inline-flex; flex-shrink: 0; vertical-align: -2px; color: var(--faint); }
/* The drawing stays small; the tap target is a thumb's width around it. */
.plus-mark-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; min-height: 44px; margin: -12px -8px; }
.header__title .plus-mark-link { transform: translateY(3px); }
.message__author .plus-mark { margin-left: 3px; }
.portrait { overflow: hidden; flex-shrink: 0; }
.portrait svg { display: block; }
.face { border-radius: 50%; color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 500; flex-shrink: 0; }
.post { background: var(--surf); border: 1px solid var(--hair); border-radius: 16px; padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 12px; color: inherit; }
.post__link { display: flex; flex-direction: column; gap: 12px; color: inherit; }
.content--posts { gap: 16px; padding-top: 6px; }
.post__head { display: flex; justify-content: space-between; align-items: center; }
.post__body { font-family: var(--serif); font-size: 18px; line-height: 1.4; text-wrap: pretty; }
.post__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.post__answers { display: flex; align-items: center; min-height: 44px; padding-left: 8px; color: var(--muted); white-space: nowrap; }

/* Reactions: one row of three buttons, the same everywhere a contribution shows.
   20px icons, 14px counts, at least 44px tall, most of it padding. At rest they
   are transparent with a faint warm ring, a compact group under the writing; the
   chosen one alone gets a tinted ground and a filled icon, so the box's job is to
   show what you tapped. Thumbs down stays quiet in grey but is as easy to tap. */
.reactions { display: flex; align-items: center; gap: 4px; margin-left: -2px; }
.reactions form { display: contents; }
.reaction { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; line-height: 1; color: var(--ink); }
.reaction--btn { min-height: 44px; padding: 0 10px 0 8px; border-radius: 12px; border: 1px solid #EFEAE2; background: transparent; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; transition: background-color 0.12s, border-color 0.12s, transform 0.12s; }
.reaction--btn:active { transform: scale(0.96); }
.reaction.is-zero span { color: var(--faint); }
.reaction--down { color: var(--muted); }
.reaction--heart.is-mine { color: #C0392B; background: #FBEAE7; border-color: #F3CFC9; }
.reaction--up.is-mine { color: #2F5F9E; background: #E7EEF8; border-color: #C9D8EC; }
.reaction--down.is-mine { color: var(--muted); background: var(--hair); border-color: var(--hair); }
.reaction.is-mine span { color: inherit; font-weight: 600; }

/* Buttons */
.btn { height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; border: 1px solid var(--green); background: var(--green); color: #fff; width: 100%; cursor: pointer; }
.btn--secondary { background: var(--surf); color: var(--ink); border-color: var(--hair); }
.btn--amber { background: var(--amber); border-color: var(--amber); }
.btn--apple { background: #000; border-color: #000; color: #fff; }
.btn--small { height: 44px; }
.btn--compact { height: 38px; font-size: 14px; width: auto; padding: 0 16px; }
/* Google's own sign-in button renders itself inside this box, centred at the width of our buttons. */
.google-signin { display: flex; justify-content: center; min-height: 44px; }

/* Empty states */
.empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 16px 60px; text-align: center; color: var(--muted); }
.empty .headline { font-size: 24px; color: var(--ink); }

/* Dev bar, development only */
.devbar { background: #1F1B16; color: #E6E0D6; font-size: 12px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; position: sticky; top: 0; z-index: 20; }
.devbar select { font: inherit; background: #2E2A26; color: #fff; border: 1px solid #4a443d; border-radius: 6px; padding: 3px 6px; }
.devbar a { color: #C9D6C4; }
.devbar__spacer { flex: 1; }

/* Threads, composer, profile, switcher, activity */
.answer { padding: 12px 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.pill { font-size: 11px; color: var(--muted); background: var(--hair); padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.composer { position: fixed; bottom: var(--tabbar); left: 0; right: 0; padding: 10px 20px 12px; display: flex; align-items: center; gap: 10px; background: var(--bg); z-index: 9; }
@media (min-width: 600px) { .composer { max-width: 430px; left: 50%; transform: translateX(-50%); } }
.composer__input { flex: 1 1 auto; height: 46px; border-radius: 23px; background: var(--surf); border: 1px solid var(--hair); padding: 0 16px; font: inherit; color: var(--ink); min-width: 0; }
.composer__input:focus { outline: none; border-color: var(--green); }
.composer__send { width: 46px; height: 46px; border-radius: 23px; background: var(--green); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.ask-box { width: 100%; min-height: 150px; border-radius: 14px; background: var(--surf); border: 1px solid var(--hair); padding: 14px 16px; font-family: var(--serif); font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); resize: none; }
.ask-box:focus { outline: none; border-color: var(--green); }
.portrait--hero { width: 100% !important; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px dashed var(--hair); border-radius: 12px; color: var(--muted); font-size: 13px; text-wrap: pretty; }
.blur-lines { display: flex; flex-direction: column; gap: 6px; filter: blur(4px); opacity: 0.7; }
.blur-lines div { height: 9px; border-radius: 5px; background: #B8AD9E; }
.search-box { width: 100%; height: 46px; border-radius: 12px; background: var(--surf); border: 1px solid var(--hair); padding: 0 14px; font: inherit; color: var(--ink); -webkit-appearance: none; }
.row--btn { width: 100%; background: none; border: 0; border-top: 1px solid var(--hair); padding: 13px 4px; justify-content: space-between; cursor: pointer; font: inherit; color: inherit; }
.activity-icon { width: 40px; height: 40px; border-radius: 20px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Connections, revealed profiles, edit profile */
.pipe { display: flex; flex-direction: column; padding-top: 6px; }
.pipe__step { display: flex; gap: 14px; align-items: stretch; }
.pipe__rail { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 26px; flex-shrink: 0; }
.pipe__node { width: 26px; height: 26px; border-radius: 13px; background: var(--bg); border: 2px solid var(--hair); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.pipe__step--done .pipe__node { background: var(--green); border-color: var(--green); }
.pipe__step--current .pipe__node { background: var(--green-soft); border-color: var(--green); }
.pipe__line { width: 3px; flex: 1 1 auto; min-height: 22px; background: var(--hair); border-radius: 2px; }
.pipe__step--done .pipe__line { background: var(--green); }
.pipe__body { display: flex; flex-direction: column; gap: 5px; padding: 3px 0 18px; min-width: 0; flex: 1 1 auto; }
.pipe__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; }
.pipe__step--next .pipe__label { color: var(--faint); }
.pipe__tag { font-size: 11px; color: var(--green); font-weight: 600; }
.pipe__tag--muted { color: var(--muted); }
.pipe__line-text { font-size: 13px; color: var(--muted); line-height: 1.4; display: flex; align-items: flex-start; gap: 6px; text-wrap: pretty; }
.pipe__line-text .icon { margin-top: 3px; }
.pipe__link { color: var(--green); text-decoration: underline; text-decoration-color: var(--green-soft); text-underline-offset: 2px; }
.photo-thumb { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.photo-thumb--empty { background: var(--photo); display: flex; align-items: center; justify-content: center; }
.photo-hero { width: 100%; height: 230px; border-radius: 16px; object-fit: cover; display: block; }
.photo-tile { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; display: block; background: var(--photo); }
.photo-slot { aspect-ratio: 1; border-radius: 12px; background: var(--surf); border: 1px dashed var(--hair); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.photo-remove { width: 24px; height: 24px; border-radius: 12px; border: 0; background: rgba(31,27,22,0.7); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.chip { padding: 8px 12px; border-radius: 999px; background: var(--surf); border: 1px solid var(--hair); font-size: 13px; }
.gate { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); font-weight: 600; padding: 0 2px; }
.card--gated { border-color: var(--green); }
.photo-empty { width: 100%; border-radius: 16px; background: var(--photo); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.photo-empty__face { font-family: var(--serif); font-weight: 500; }
.photo-empty__note { font-size: 12px; color: var(--muted); }
.hero-gate { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--green); font-size: 12px; font-weight: 600; }
.forming-ring { position: relative; width: 44px; height: 44px; border-radius: 22px; padding: 4px; flex-shrink: 0; }
/* Twelve evenly spaced dashes, with a 2px stroke and a clear gap around the portrait. */
.forming-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-conic-gradient(from -7.5deg, var(--green) 0deg 15deg, transparent 15deg 30deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  pointer-events: none;
}
.edit-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.edit-label .green { text-transform: none; letter-spacing: 0; font-size: 12px; text-align: right; }
.edit-box { width: 100%; border-radius: 12px; background: var(--surf); border: 1px solid var(--hair); padding: 12px 14px; font: inherit; color: var(--ink); resize: none; }
.edit-box:focus { outline: none; border-color: var(--green); }
.green { color: var(--green); }

/* Chat, and the toast */
.message-area { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; position: relative; }
.messages { flex: 1 1 auto; overflow-y: auto; padding: 6px 20px 90px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scrollbar-width: none; }
.messages::-webkit-scrollbar { display: none; }
.screen:has(.message-area) { padding-bottom: var(--tabbar); height: calc(100dvh - var(--devbar, 0px)); }
body:has(.devbar) { --devbar: 37px; }
html:has(.message-area), body:has(.message-area) { height: 100dvh; overflow: hidden; }
.app:has(.message-area) { height: calc(100dvh - var(--devbar, 0px)); min-height: 0; overflow: hidden; }
.message { display: flex; flex-direction: column; gap: 10px; }
.message__day { display: none; font-size: 12px; color: var(--faint); text-align: center; padding: 4px 0; }
.message--first-of-day .message__day { display: block; }
.message__row { display: grid; grid-template-columns: 28px minmax(0, 78%); gap: 3px 8px; align-items: end; justify-items: start; }
.message--me .message__row { grid-template-columns: minmax(0, 78%); justify-content: end; justify-items: end; }
.message__avatar { visibility: visible; grid-column: 1; grid-row: 2; }
.message--me .message__avatar, .message--threaded .message__avatar { visibility: hidden; }
.message--me .message__avatar { display: none; }
.message__bubble-wrap { display: contents; }
.message__bubble-wrap > * { grid-column: 2; max-width: 100%; min-width: 0; }
.message--me .message__bubble-wrap > * { grid-column: 1; }
.message__bubble-wrap > .message__author { grid-row: 1; }
.message__bubble-wrap > .message__bubble { grid-row: 2; }
.message__bubble-wrap > .message__meta, .message__bubble-wrap > .message__time { grid-row: 3; }
.message__bubble-wrap > .message__recovery, .message__bubble-wrap > .message__error { grid-row: 4; }
.message__author { font-size: 11px; color: var(--faint); padding-left: 4px; }
.message--me .message__author, .message--threaded .message__author { display: none; }
.message__bubble { padding: 9px 13px; border-radius: 16px; border-bottom-left-radius: 4px; background: var(--surf); border: 1px solid var(--hair); font-size: 14px; line-height: 1.4; text-wrap: pretty; overflow-wrap: anywhere; white-space: pre-wrap; }
.message--me .message__bubble { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; background: var(--green); color: #fff; border-color: var(--green); }
.message--pending .message__bubble { opacity: 0.6; }
.message--failed .message__bubble { opacity: 1; background: var(--danger); border-color: var(--danger); }
.message--failed .message__time::after { content: " · Not sent"; color: var(--danger); }
.message__time { font-size: 11px; color: var(--faint); padding: 0 4px; }
.message--threaded { margin-top: -6px; }
.message--update { align-items: center; }
.message__update { font-size: 12px; color: var(--muted); text-align: center; padding: 2px 12px; text-wrap: pretty; }
.message__update-time { color: var(--faint); margin-left: 4px; }
.composer--chat { bottom: var(--tabbar); }
.latest { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); border: 1px solid var(--hair); background: var(--surf); color: var(--green); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; box-shadow: 0 2px 8px rgba(31,27,22,0.08); cursor: pointer; }
.toast { position: fixed; top: calc(var(--devbar, 0px) + 12px); left: 50%; transform: translateX(-50%); z-index: 50; max-width: min(360px, calc(100% - 32px)); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center; box-shadow: 0 6px 20px rgba(31,27,22,0.18); transition: opacity 0.3s, transform 0.3s; cursor: pointer; }
.toast--gone { opacity: 0; transform: translateX(-50%) translateY(-6px); }
.unread-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--green); display: inline-block; }
.latest[hidden] { display: none; }

/* What's happening */
.fact { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.member-chip .plus-mark { margin-left: 2px; }
.member-chip { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surf); border: 1px solid var(--hair); font-size: 13px; font-weight: 500; color: var(--ink); }
.member-chip--more { padding: 5px 12px; color: var(--muted); font-weight: 400; }
.amber { color: var(--amber); }
.blurred-chat { position: relative; background: var(--surf); border: 1px solid var(--hair); border-radius: 12px; padding: 14px; overflow: hidden; }
.blurred-chat__lines { display: flex; flex-direction: column; gap: 8px; filter: blur(5px); opacity: 0.55; }
.blurred-chat__lines div { height: 10px; border-radius: 5px; background: #B8AD9E; }
.blurred-chat__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.approval { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surf); border: 1px solid var(--hair); border-radius: 12px; }
.btn:disabled { opacity: 0.5; }

/* Segmented pills; cards and upsells as links */
.seg { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surf); border: 1px solid var(--hair); color: var(--muted); }
.seg.is-on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
a.card, a.upsell { text-decoration: none; }

/* Own-content menus */
.own-menu__btn { width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--faint); cursor: pointer; }
.own-menu__btn:hover { background: var(--hair); color: var(--ink); }
.menu--own .menu__items { right: 0; }
.menu__item--danger { color: var(--danger); background: none; border: 0; width: 100%; font: inherit; cursor: pointer; text-align: left; }
.menu__items form { display: contents; }
.message__time { display: flex; align-items: center; gap: 6px; }
.message--me .message__time { flex-direction: row-reverse; }
.message .menu--own { position: relative; }
.message:not(.message--me) .menu--own { display: none; }
.message--me .menu--own .menu__items { right: auto; left: 0; }

/* City Hall feed: an ongoing conversation carries its reason at the top; the tail is what's under the last card. */
.post__mark { font-size: 12px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 6px; margin-bottom: -2px; }
.post__mark::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--green); flex-shrink: 0; }
.feed-tail { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 12px; text-align: center; }
.feed-tail__sentinel { position: absolute; top: -400px; height: 1px; width: 1px; pointer-events: none; }
.feed-tail .btn { max-width: 200px; }

/* Thread composer: a growing box, a reply target above it, and text laid out for reading */
.content--thread { padding-bottom: calc(var(--composer-h, 80px) + 12px); }
.composer--thread { flex-direction: column; align-items: stretch; gap: 8px; }
.composer__row { display: flex; align-items: flex-end; gap: 10px; }
.composer__input--multi { height: 46px; max-height: 160px; padding: 12px 16px; line-height: 1.4; font-size: 15px; resize: none; overflow-y: auto; border-radius: 20px; display: block; }
.composer__target { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); padding: 0 4px; }
.composer__target[hidden] { display: none; }
.composer__target strong { color: var(--ink); font-weight: 600; }
.composer__target .icon { vertical-align: -2px; }
.composer__cancel { background: none; border: 0; padding: 4px; font: inherit; font-size: 13px; font-weight: 600; color: var(--green); cursor: pointer; }
.composer__error { font-size: 13px; color: var(--danger); padding: 0 4px; }
.notice { background: var(--green-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.connection-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--green-soft) 45%, var(--bg)); color: var(--green); font-weight: 500; font-size: 15px; }
.pipe__supplied { font-size: 13px; color: var(--green); line-height: 1.4; text-wrap: pretty; padding-bottom: 2px; }
.chats-group { display: flex; flex-direction: column; border-bottom: 1px solid var(--hair); margin-bottom: 8px; }
.chats-group__icon { width: 44px; height: 44px; border-radius: 22px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chats-group__icon--ended { background: var(--bg); color: var(--faint); border: 1px solid var(--hair); }
.chats-ended summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.chats-ended summary::-webkit-details-marker { display: none; }
.chats-ended summary::before { content: "▸"; font-size: 11px; }
.chats-ended[open] summary::before { content: "▾"; }
.composer--ended { justify-content: center; text-align: center; padding: 14px 20px 16px; border-top: 1px solid var(--hair); background: var(--surf); }
.composer__send:disabled { background: var(--hair); color: var(--faint); cursor: default; }
/* Open: a card on the keyboard. Room for a paragraph, Send below the text on the right. */
.composer--thread.is-open { background: var(--surf); border-top: 1px solid var(--hair); border-radius: 18px 18px 0 0; padding: 12px 16px 12px; gap: 10px; box-shadow: 0 -6px 24px rgba(31, 27, 22, 0.06); }
.composer--thread.is-open .composer__row { flex-direction: column; align-items: flex-end; gap: 8px; }
.composer--thread.is-open .composer__input--multi { width: 100%; min-height: 132px; max-height: 260px; border: 0; border-radius: 0; padding: 4px 4px; background: none; }
.composer--thread.is-open .composer__send { width: 40px; height: 40px; border-radius: 20px; }
.composer--thread.is-open .composer__target { padding: 0 4px; }
body.is-composing .tabbar { display: none; }
body.is-composing .composer--thread { bottom: 0; }
.answer__foot { display: flex; justify-content: space-between; align-items: center; }
.reply-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; min-height: 44px; padding: 4px 0 4px 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--green); cursor: pointer; }
.reply-ref { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); text-decoration: none; }
.reply-ref--gone { color: var(--faint); font-style: italic; }
.prose { overflow-wrap: anywhere; text-wrap: pretty; }
.prose p { margin: 0; }
.prose p + p { margin-top: 0.6em; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
/* The public pages (privacy, terms, support): long text that reads well on a phone. */
.prose--page { max-width: 40rem; line-height: 1.55; padding: 4px 0 40px; }
.prose--page h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 8px; }
.prose--page h2 { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose--page p { margin: 0 0 10px; }
.prose--page p + p { margin-top: 0; }
.prose--page ul { margin: 0 0 10px; padding-left: 20px; }
.prose--page li { margin-bottom: 5px; }
.prose--page li::marker { color: var(--faint); }
.prose--page .prose__lede { font-size: 16px; color: var(--muted); }
.prose--page .prose__updated { margin-top: 32px; font-size: 13px; color: var(--faint); }
.prose__more { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.prose__more a { text-decoration: none; }
/* Under the sign-in buttons: one line, the terms and the privacy policy linked. */
.agree { text-align: center; font-size: 12px; line-height: 1.4; color: var(--faint); padding-top: 4px; text-wrap: pretty; }
.agree a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
/* Foot of Help: the public pages, for anyone who wants the long version. */
.help-foot { display: flex; flex-wrap: wrap; gap: 14px; padding: 18px 4px 8px; font-size: 13px; font-weight: 600; }
/* Profiles lead with the person and what they said, then the rest */
.identity { display: flex; align-items: center; gap: 12px; padding-top: 2px; }
.identity__photo { width: 56px; height: 56px; border-radius: 28px; object-fit: cover; display: block; flex-shrink: 0; background: var(--photo); }
.contribution__question { display: block; font-size: 13px; color: var(--muted); text-wrap: pretty; }
.contribution__body { display: block; color: inherit; }
.prose--profile { line-height: 1.5; }
/* Happening keeps the city's board and the viewer's shortlist together. */
.happening-views { display: flex; gap: 24px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.happening-views__link { display: flex; align-items: center; gap: 7px; min-height: 44px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 500; }
.happening-views__link[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.happening-views__count { min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 12px; line-height: 20px; text-align: center; }
.happening-intro { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.happening-empty { display: flex; flex-direction: column; gap: 14px; padding: 22px 0; }
.happening-empty .headline { font-size: 25px; }
.happening-empty p { margin: 0 0 6px; }
.happening-event { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: inherit; }
.happening-event__details { min-width: 0; overflow-wrap: anywhere; }
.happening-event__saved { color: var(--green); flex-shrink: 0; padding-top: 2px; }

/* Event page: the practical part, then the link out, then who's going */
.prose--event { line-height: 1.5; }
/* The way out to the organiser: a quiet row, quieter than Interested and the Hangouts, named for what it is. */
.event-link { display: flex; align-items: center; gap: 8px; padding: 2px 2px; font-size: 14px; font-weight: 600; color: var(--green); min-width: 0; }
.event-link__host { font-weight: 400; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.event-link__host::before { content: "·"; margin-right: 8px; color: var(--faint); }
/* An Event page breathes like a person's page: one column of sections with air between them, each section tight inside. */
.event { gap: 30px; padding-top: 12px; padding-bottom: 40px; }
.event__section { display: flex; flex-direction: column; gap: 10px; }
.event-actions { display: flex; gap: 10px; }
.event-actions form { flex: 1 1 0; min-width: 0; display: flex; }
.event-actions > .btn { flex: 1 1 0; min-width: 0; }
.event-interest-hint { font-size: 12px; line-height: 1.45; color: var(--muted); }
/* A quiet row of familiar people beneath the Event actions. */
.event-connections { display: flex; align-items: center; gap: 12px; margin-top: -10px; }
.event-connections__portraits { display: flex; flex-shrink: 0; }
.event-connections__portrait { border: 2px solid var(--bg); }
.event-connections__portrait + .event-connections__portrait { margin-left: -8px; }
.event-connections__copy { min-width: 0; overflow-wrap: anywhere; }
.event-connections__label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.event-connections__sentence { font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.event-connections__sentence strong { font-weight: 600; color: var(--ink); }

/* A person's page breathes: one column of sections with air between them, each section tight inside. */
.profile { gap: 30px; padding-top: 8px; }
.profile__section { display: flex; flex-direction: column; gap: 10px; }
.profile .section-label { margin-top: 0; }
.profile .identity { padding-top: 4px; }
.profile__line { font-size: 20px; line-height: 1.3; font-style: italic; padding: 0 2px; text-wrap: pretty; }
.profile--full .profile__line { font-size: 22px; line-height: 1.25; }
.photo-hero--tall { height: 300px; }
.profile .profile-footer { padding-top: 0; }

/* New Event: three slots, link, images, text, with room between them. */
.submit { gap: 18px; }
.slot { display: flex; flex-direction: column; gap: 6px; }
.slot__field { display: flex; align-items: center; gap: 10px; width: 100%; border-radius: 12px; background: var(--surf); border: 1px solid var(--hair); padding: 12px 14px; }
.slot__field:focus-within { border-color: var(--green); }
.slot__input { flex: 1; min-width: 0; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--ink); }
.slot__input:focus { outline: none; }
.slot__input::placeholder, .edit-box::placeholder { color: var(--faint); }
.slot__sub { font-size: 12px; color: var(--faint); padding: 0 4px; }
.slot .shots { padding-top: 4px; }

/* Help: folded answers, then the Tell us form and its thanks. */
.qa-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--hair); }
.qa { border-top: 1px solid var(--hair); padding: 13px 4px; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa__mark { transition: transform 0.15s; }
.qa[open] .qa__mark { transform: rotate(90deg); }
.qa__a { font-size: 13px; color: var(--muted); line-height: 1.5; text-wrap: pretty; padding-top: 8px; }
.tell-us { display: flex; flex-direction: column; gap: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; padding: 8px 12px; border-radius: 999px; background: var(--surf); border: 1px solid var(--hair); font-size: 13px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choice:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

/* Chat: quiet acknowledgments, recoverable text and accessible message actions. */
.room-mute { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; min-height: 44px; padding: 4px 8px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.room-mute[aria-pressed="true"] { color: var(--green); }
.messages { padding-bottom: calc(var(--chat-composer-height, 72px) + 14px); overflow-anchor: none; }
.message__meta { display: flex; align-items: center; gap: 4px; min-height: 28px; }
.message--me .message__meta { flex-direction: row-reverse; }
.message .own-menu__btn { width: 44px; height: 44px; border: 0; background: none; font: inherit; }
.message .own-menu__btn:hover, .message .own-menu__btn[aria-expanded="true"] { background: var(--green-soft); color: var(--green); }
.message button:focus-visible, .chat-popover :focus-visible, .room-mute:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.message--selected .message__bubble, .message--highlight .message__bubble { box-shadow: 0 0 0 3px var(--green-soft); }
.chat-popover { position: fixed; margin: 0; inset: auto; border: 1px solid var(--hair); border-radius: 14px; padding: 6px; background: var(--surf); color: var(--ink); box-shadow: 0 8px 24px rgba(31,27,22,.12); overflow: auto; }
.chat-popover .menu__item { border: 0; background: transparent; font: inherit; width: 100%; min-height: 44px; cursor: pointer; text-align: left; text-decoration: none; }
.chat-popover .menu__item:hover { background: var(--bg); }
.chat-popover .menu__item--danger { color: var(--danger); border-top: 1px solid var(--hair); margin-top: 4px; border-radius: 0 0 10px 10px; }
.chat-popover form { margin: 0; }
.chat-popover__label { padding: 8px 12px; font-size: 12px; color: var(--muted); }
.chat-popover--hearts:popover-open { display: flex; flex-direction: column; overflow: hidden; }
.chat-popover--hearts .chat-popover__label { flex-shrink: 0; display: flex; justify-content: space-between; gap: 8px; }
.heart-people { list-style: none; margin: 0; padding: 0 0 4px; min-height: 0; max-height: 180px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.heart-person { padding: 6px 12px; font-size: 14px; overflow-wrap: anywhere; }
.chat-popover .heart-toggle { flex-shrink: 0; border-top: 1px solid var(--hair); border-radius: 0 0 8px 8px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.heart-toggle svg { color: #C0392B; }
.heart-toggle.is-mine svg { fill: currentColor; }
.message-heart { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: flex-start; background: transparent; border: 0; border-radius: 12px; padding: 0; cursor: pointer; }
.message--me .message-heart { justify-content: flex-end; }
.message-heart__badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surf); color: var(--muted); font-size: 11px; line-height: 14px; }
.message-heart__badge svg { color: #C0392B; fill: currentColor; }
.message-heart.is-mine .message-heart__badge { color: #C0392B; border-color: #F3CFC9; background: #FBEAE7; }
.message__body { white-space: normal; }
.message__body p { margin: 0 0 .6em; }
.message__body p:last-child { margin: 0; }
.message__body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.message__bubble:has(.message__body), .message__bubble:has(.message__deleted) { white-space: normal; }
.message__reply, .message__pending-reply { display: flex; flex-direction: column; gap: 3px; width: 100%; border: 0; border-left: 2px solid currentColor; border-radius: 4px; padding: 6px 8px; margin: 0 0 7px; color: inherit; background: rgba(110,101,90,.08); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.message--me .message__reply { background: rgba(255,255,255,.12); }
.message__reply span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.message__reply--unavailable { cursor: default; font-style: italic; }
.message--deleted .message__bubble { background: transparent; border-color: var(--hair); color: var(--muted); font-style: italic; padding: 7px 11px; }
.message--deleted:not(.message--me) .message__author { display: block; }
.message--deleted:not(.message--me) .message__avatar { visibility: visible; }
.message__unread { color: var(--green); text-align: center; font-size: 12px; padding: 10px 0; display: flex; align-items: center; gap: 10px; }
.message__unread::before, .message__unread::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.message--failed .message__bubble { background: var(--green); border-color: var(--danger); }
.message--failed .message__time::after { content: none; }
.message__delivery { display: block; }
.message--failed .message__delivery, .message__error { color: var(--danger); }
.message__error { font-size: 12px; }
.message__error:empty { display: none; }
.message__recovery { display: flex; gap: 6px; flex-wrap: wrap; }
.message__recovery button { border: 1px solid var(--hair); background: var(--surf); color: var(--green); font: inherit; font-size: 12px; border-radius: 12px; min-height: 44px; padding: 4px 10px; cursor: pointer; }
.message--pending .message__body { white-space: pre-wrap; }
.composer--chat { display: flex; flex-direction: column; gap: 6px; }
.composer__entry { display: flex; gap: 8px; align-items: flex-end; width: 100%; }
.composer--chat textarea { resize: none; min-height: 46px; max-height: 160px; padding: 11px 16px; font-size: 16px; line-height: 22px; }
.composer__send:disabled { opacity: .4; cursor: default; }
.composer__status { font-size: 12px; color: var(--muted); }
.composer__status:empty { display: none; }
.composer__reply { display: flex; align-items: center; width: 100%; border-left: 2px solid var(--green); padding-left: 10px; color: var(--muted); font-size: 12px; }
.composer__reply div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.composer__reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer__reply strong { color: var(--green); }
.composer__reply button { border: 0; background: none; font: inherit; font-size: 24px; color: var(--muted); width: 44px; height: 44px; cursor: pointer; }
.latest { bottom: calc(var(--chat-composer-height, 72px) + 14px); min-height: 44px; }
[hidden] { display: none !important; }
.ended-drafts { width: 100%; font-size: 13px; }
.ended-drafts summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--green); }
.ended-drafts__text { white-space: pre-wrap; max-height: 120px; overflow: auto; user-select: text; }
.chat--ended .message__recovery { display: none; }

/* Fit the visual viewport while the mobile keyboard is visible. */
body.chat-keyboard-open .devbar { visibility: hidden; }
.app.chat-keyboard-open { position: fixed; top: var(--chat-viewport-top); left: 0; right: 0; height: var(--chat-viewport-height); }
.app.chat-keyboard-open .screen { height: 100%; min-height: 0; padding-bottom: 0; }
.app.chat-keyboard-open .tabbar { display: none; }
.app.chat-keyboard-open .composer--chat { position: relative; inset: auto; transform: none; width: 100%; flex-shrink: 0; }
.app.chat-keyboard-open .messages { padding-bottom: 14px; }
.app.chat-keyboard-open .latest { bottom: 14px; }
