/* Together — 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%; }
/* 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; }
}
