:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #f0f1f8;
  --text: #171a2c;
  --text-2: #5d6280;
  --text-3: #8a8fab;
  --border: #e3e5f0;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: #eceafe;
  --good: #16a34a;
  --bad: #dc2626;
  --warn: #d97706;
  --shadow: 0 1px 2px rgba(23, 26, 44, .04), 0 8px 24px rgba(23, 26, 44, .06);
  --radius: 18px;
  --radius-sm: 12px;
  --tabbar-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1120;
    --surface: #181b2e;
    --surface-2: #22263d;
    --text: #eef0fb;
    --text-2: #a9aecb;
    --text-3: #7a7f9d;
    --border: #2b2f49;
    --accent: #8b85ff;
    --accent-2: #b48cff;
    --accent-soft: #29275a;
    --good: #4ade80;
    --bad: #f87171;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
}

/* ---------- Top bar ---------- */
.topbar {
  padding: calc(14px + env(safe-area-inset-top)) 16px 4px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.brand-logo { font-size: 18px; }
.view-title { margin: 6px 0 0; font-size: 28px; letter-spacing: -.02em; }

.main { padding: 8px 16px 16px; outline: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.card h2 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h2 .muted { font-weight: 500; font-size: 13px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 4px; font-size: 13px; }

/* ---------- Period selector ---------- */
.period {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 14px;
}
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.period-nav { display: inline-flex; align-items: center; gap: 4px; }
.period-nav .label { min-width: 120px; text-align: center; font-weight: 700; text-transform: capitalize; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow);
  display: inline-grid; place-items: center; color: var(--text);
}
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(79, 70, 229, .3);
}
.hero .label { opacity: .85; font-size: 13px; font-weight: 600; }
.hero .total { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-stats div { background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px 10px; }
.hero-stats b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 11px; opacity: .85; }
.budget-bar { margin-top: 12px; }
.budget-bar .track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; }
.budget-bar .fill { height: 100%; border-radius: 99px; background: #fff; }
.budget-bar .fill.over { background: #fecaca; }
.budget-bar .meta { display: flex; justify-content: space-between; font-size: 12px; opacity: .9; margin-top: 5px; }

/* ---------- Donut ---------- */
.donut-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; }
.donut { position: relative; width: 170px; height: 170px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5; transition: stroke-width .15s; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center b { font-size: 18px; font-variant-numeric: tabular-nums; }
.donut-center span { font-size: 11px; color: var(--text-2); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.legend .pct { color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
}

/* ---------- Groups strip ---------- */
.groups { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-bottom: 14px; }
.groups::-webkit-scrollbar { display: none; }
.group-card { flex: 0 0 auto; min-width: 128px; background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.group-card .g-name { font-size: 12px; color: var(--text-2); font-weight: 600; }
.group-card .g-total { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.group-card .g-icons { font-size: 14px; letter-spacing: 2px; margin-top: 2px; }

/* ---------- Category rows ---------- */
.cat-icon {
  width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 21px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent);
}
.cat-icon.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
.rows { display: grid; gap: 4px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; padding: 8px 4px; border-radius: 12px; text-align: left;
}
.row:hover { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 6px 0 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.bar.budget > i.over { background: var(--bad); }
.row-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.over-txt { color: var(--bad); font-weight: 600; }

/* ---------- Trend ---------- */
.trend { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 18px; }
.trend .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.trend .val { font-size: 10px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend .b { width: 100%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--accent) 30%, transparent); min-height: 3px; }
.trend .col.on .b { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.trend .col.on .val { color: var(--text); font-weight: 700; }
.trend .m { font-size: 11px; color: var(--text-3); text-transform: capitalize; }
.trend .col.on .m { color: var(--text); font-weight: 700; }

/* ---------- Movements ---------- */
.toolbar { display: grid; gap: 10px; margin-bottom: 12px; }
.search {
  width: 100%; padding: 11px 14px 11px 38px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface) no-repeat 12px center / 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8fab' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.day-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin: 14px 4px 6px; }
.day-head:first-child { margin-top: 0; }
.filter-total { display: flex; justify-content: space-between; align-items: center; background: var(--accent-soft); color: var(--accent); padding: 10px 14px; border-radius: 14px; font-weight: 600; margin-bottom: 12px; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 34px 16px; }
.empty .big { font-size: 46px; }
.empty h3 { margin: 8px 0 4px; }
.empty p { margin: 0 0 16px; color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; background: var(--surface-2); color: var(--text);
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.danger { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 760px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  z-index: 20;
}
.tab { border: 0; background: none; display: grid; justify-items: center; gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 600; padding: 6px 0; }
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--accent); }
.fab {
  justify-self: center; width: 58px; height: 58px; border-radius: 20px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .45); transform: translateY(-14px);
  display: grid; place-items: center;
}
.fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.fab:active { transform: translateY(-12px) scale(.96); }

/* ---------- Sheet (modal) ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 25, .45); animation: fade .2s ease; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom));
  animation: up .25s cubic-bezier(.2, .9, .3, 1);
}
@media (min-width: 640px) {
  .sheet-root { align-items: center; }
  .sheet { border-radius: 24px; }
}
.sheet-handle { width: 40px; height: 5px; border-radius: 9px; background: var(--border); margin: 4px auto 10px; }
.sheet h2 { margin: 0 0 14px; font-size: 20px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.field { margin-bottom: 14px; }
.field > label, .field-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.amount-input { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 6px 0 12px; }
.amount-input input {
  width: 100%; max-width: 260px; text-align: center; border: 0; background: none; outline: none;
  font-size: 46px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.amount-input input::placeholder { color: var(--text-3); }
.amount-input .cur { font-size: 26px; font-weight: 700; color: var(--text-2); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
.cat-pick {
  display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 14px; border: 2px solid transparent; background: none;
  font-size: 11px; font-weight: 600; color: var(--text-2); text-align: center; line-height: 1.2;
}
.cat-pick .cat-icon { width: 44px; height: 44px; }
.cat-pick.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--text); }
.cat-pick span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; max-height: 176px; overflow-y: auto; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.emoji-grid button { border: 0; background: none; font-size: 22px; padding: 6px 0; border-radius: 10px; }
.emoji-grid button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); background: var(--c); }
.swatches button.on { box-shadow: 0 0 0 2px var(--text); }
.cat-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; background: var(--surface-2); border-radius: 14px; }

/* ---------- Settings ---------- */
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.setting:last-child { border-bottom: 0; }
.setting .s-title { font-weight: 600; }
.setting .s-sub { font-size: 12px; color: var(--text-2); }
.members { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.member { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); padding: 6px 6px 6px 12px; border-radius: 999px; font-weight: 600; }
.member button { border: 0; background: var(--surface); width: 22px; height: 22px; border-radius: 50%; color: var(--text-2); line-height: 1; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; }
select.input { appearance: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--accent-soft); font-weight: 800; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- v2: cuenta común, ingresos, login ---------- */
body.locked .tabbar { display: none; }
.good-txt { color: var(--good); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.pill.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.account-mini { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; }
.account-mini .row-top { align-items: center; }
.account-mini .row-sub { white-space: normal; }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; padding: 8px 6px; }
.verdict .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.verdict .vs div { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; display: grid; }
.verdict .vs span { font-size: 12px; }
.verdict .vs b { font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vs-bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--good) 22%, transparent); margin: 12px 0 10px; overflow: hidden; }
.vs-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.vs-bar i.over { background: var(--bad); }
.verdict-line .pill { font-size: 14px; padding: 6px 12px; }
.forecast { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.balance { font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.flow-rows { display: grid; gap: 6px; }
.flow-rows div { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.flow-rows b { color: var(--text); font-variant-numeric: tabular-nums; }
.flow-rows b.good-txt { color: var(--good); }
.flow-rows b.over-txt { color: var(--bad); }
.notice { padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.notice.good { background: color-mix(in srgb, var(--good) 12%, transparent); }
.notice.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.notice-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px dashed color-mix(in srgb, var(--good) 50%, transparent); }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.row.static { cursor: default; }
.row.static:hover { background: none; }
.stack { display: flex; height: 8px; border-radius: 99px; background: var(--surface-2); margin: 6px 0 3px; overflow: hidden; }
.stack i.inc, .flow-legend i.inc { background: var(--good); }
.stack i.per, .flow-legend i.per { background: var(--warn); }
.flow-legend i.exp { background: var(--accent); }
.flow-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); margin-top: 10px; }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.trend.flow .pair { display: flex; align-items: flex-end; gap: 3px; width: 100%; max-width: 44px; height: 100%; }
.trend.flow .pair .b { flex: 1; min-height: 2px; border-radius: 6px 6px 3px 3px; }
.trend.flow .b.inc { background: var(--good); }
.trend.flow .b.exp { background: var(--accent); }
.trend.flow .col:not(.on) .b { opacity: .55; }
.trend.flow .col { min-height: 0; }
.trend.flow .val.good-txt { color: var(--good); }
.trend.flow .val.over-txt { color: var(--bad); }
.tag { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); margin-right: 2px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.list-card { padding: 6px 10px; }
.back { margin: 0 0 8px -4px; font-size: 15px; }
.trend .col { position: relative; }
.rows { grid-template-columns: minmax(0, 1fr); }
.row-sub, .row-meta { display: block; }
.row-meta { display: flex; }
.field > label.check { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; color: var(--text-2); display: flex; margin: 10px 0 0; }

/* ---------- v3: login con Google ---------- */
.btn.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; text-decoration: none; padding: 12px 22px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn.google:hover { background: #f8f9fa; }
.login-msg { margin: 14px auto 0 !important; max-width: 380px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--text) !important; font-size: 14px; }
.me { display: flex; align-items: center; gap: 12px; min-width: 0; }
.me img { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; }
.me .s-sub { overflow: hidden; text-overflow: ellipsis; }
.tag.me-tag { background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
