/* ==========================================================================
   Ogarnij Życie — system wizualny
   Tokeny na :root, tryb ciemny domyślny (auto wg systemu), mobile-first.
   Moduły używają klas z tego pliku — nie definiują własnych kolorów.
   ========================================================================== */
:root {
  --bg: #f6f5f1;
  --bg-elev: #ffffff;
  --bg-sunken: #eceae3;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --border: #e2dfd6;
  --border-strong: #cfcbc0;
  --text: #16181d;
  --text-2: #4a4f5a;
  --text-3: #858a94;
  --accent: #5c8a00;          /* limonka — akcje, postęp */
  --accent-strong: #4a7000;
  --accent-soft: #e6f2cc;
  --accent-text: #ffffff;
  --good: #1f9d55;
  --warn: #c77700;
  --bad: #d23f3f;
  --info: #2f6fd6;
  --good-soft: #dff3e7;
  --warn-soft: #fbecd2;
  --bad-soft: #f9dede;
  --info-soft: #dde8fa;
  /* kolory obszarów życia (cele, wykresy) */
  --c-health: #e0598b;
  --c-fitness: #f08c2e;
  --c-nutrition: #3fae6a;
  --c-business: #3b7ddd;
  --c-mind: #8b5cf6;
  --c-finance: #c9a227;
  --c-relations: #e25d4f;
  --c-growth: #14a3a3;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 4px 16px rgba(20, 20, 30, .05);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-num: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --tabbar-h: 64px;
  --sidebar-w: 232px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --bg-elev: #171a21; --bg-sunken: #0a0c0f; --surface: #171a21; --surface-2: #1f232c;
    --border: #262b35; --border-strong: #353b48; --text: #f3f1ea; --text-2: #b4b8c2; --text-3: #7c828f;
    --accent: #b8f34a; --accent-strong: #cdfa72; --accent-soft: #2a3517; --accent-text: #0f1115;
    --good: #3ed27f; --warn: #f5a524; --bad: #ff6b6b; --info: #5b9dff;
    --good-soft: #15301f; --warn-soft: #33260f; --bad-soft: #3a1a1a; --info-soft: #172640;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --bg-elev: #171a21; --bg-sunken: #0a0c0f; --surface: #171a21; --surface-2: #1f232c;
  --border: #262b35; --border-strong: #353b48; --text: #f3f1ea; --text-2: #b4b8c2; --text-3: #7c828f;
  --accent: #b8f34a; --accent-strong: #cdfa72; --accent-soft: #2a3517; --accent-text: #0f1115;
  --good: #3ed27f; --warn: #f5a524; --bad: #ff6b6b; --info: #5b9dff;
  --good-soft: #15301f; --warn-soft: #33260f; --bad-soft: #3a1a1a; --info-soft: #172640;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-strong); text-decoration: none; }
:root:not([data-theme="dark"]) a:not(.btn) { color: var(--accent); }
a.btn { color: var(--text); }
a.btn.primary { color: var(--accent-text); }
a.btn.danger { color: var(--bad); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 650; }
h4 { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
p { margin: 0 0 .6em; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
#app { min-height: 100dvh; }
#view { padding: calc(var(--safe-top) + 12px) 16px calc(var(--tabbar-h) + var(--safe-bottom) + 24px); max-width: 1180px; margin: 0 auto; }
#sidebar { display: none; }
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  display: flex; background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--border);
}
#tabbar:empty { display: none; } /* ekran logowania */
#tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 10.5px; font-weight: 600; }
#tabbar a.active { color: var(--text); }
#tabbar a.active .ico { color: var(--accent); }
#tabbar a.fab .ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-text); margin-top: -6px; }
#tabbar a.fab span { display: none; }

@media (min-width: 900px) {
  #app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
  #tabbar { display: none; }
  #view { padding: 28px 36px 60px; width: 100%; min-width: 0; }
  #sidebar {
    display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    padding: 20px 12px; border-right: 1px solid var(--border); background: var(--bg-elev);
  }
  #sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 750; font-size: 17px; }
  #sidebar .brand img { width: 30px; height: 30px; border-radius: 8px; }
  #sidebar a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; }
  #sidebar a:hover { background: var(--surface-2); color: var(--text); }
  #sidebar a.active { background: var(--accent-soft); color: var(--text); }
  #sidebar a.active .ico { color: var(--accent); }
  #sidebar .sep { height: 1px; background: var(--border); margin: 10px 8px; }
  #sidebar .foot { margin-top: auto; font-size: 12px; color: var(--text-3); padding: 10px 12px; }
  #sidebar .account-chip { display: flex; align-items: center; gap: 4px; margin: 0 -8px 8px; }
  #sidebar .account-chip .who { flex: 1; min-width: 0; padding: 6px 8px; font-size: 13px; color: var(--text); }
  #sidebar .account-chip .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #sidebar .account-chip .btn { color: var(--text-3); padding-inline: 8px; }
}
.boot { padding: 40vh 0; text-align: center; color: var(--text-3); }

/* ---------- Nagłówek widoku ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--text-3); font-size: 13.5px; margin-top: 3px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 14px; margin-bottom: 6px; cursor: pointer; background: none; border: 0; padding: 0; }

/* ---------- Karty / siatki ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card.tight { padding: 12px; }
.card.click { cursor: pointer; transition: transform .12s, border-color .12s; }
.card.click:hover { border-color: var(--border-strong); }
.card.click:active { transform: scale(.985); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.section { margin-top: 22px; }
.section > h4 { margin: 0 0 10px 2px; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.xs { font-size: 11.5px; }
.center { text-align: center; }
.right { text-align: right; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }
.sp { height: 12px; }

/* ---------- Statystyki ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .label { font-size: 12px; color: var(--text-3); font-weight: 600; }
.stat .value { font: 700 24px/1.1 var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .value small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.stat .delta { font-size: 12px; font-weight: 600; }
.up { color: var(--good); } .down { color: var(--bad); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; user-select: none; transition: filter .12s, transform .08s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
.btn.lg { min-height: 50px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 40px; }
.btn.icon.sm { width: 32px; }
.btn-group { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 2px; }
.btn-group button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--text-2); cursor: pointer; }
.btn-group button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Formularze ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.hint, .field .hint { font-size: 12px; color: var(--text-3); }
.input, input.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); outline: none; font-size: 16px; /* 16px = brak zoomu na iOS */
}
textarea.input { min-height: 90px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group { display: flex; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.search { position: relative; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { padding-left: 38px; }

/* ---------- Listy ---------- */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); min-height: 54px; }
.list-item:last-child { border-bottom: 0; }
.list-item.click { cursor: pointer; }
.list-item.click:hover { background: var(--surface-2); }
.list-item .title { font-weight: 600; }
.list-item .meta { font-size: 12.5px; color: var(--text-3); }

/* ---------- Chipy / odznaki ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.accent { background: var(--accent-soft); color: var(--text); border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip.click { cursor: pointer; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Postęp ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); transition: width .4s ease; }
.bar.thin { height: 5px; }
.bar.thick { height: 12px; }
.bar .marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-2); border-radius: 2px; }
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }

/* ---------- Arkusz (bottom sheet) / modal ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--bg-elev);
  border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + var(--safe-bottom)); box-shadow: var(--shadow-lg); animation: up .24s cubic-bezier(.2, .9, .3, 1);
}
.sheet .grip { width: 38px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 22px; padding: 18px 22px 22px; }
  .sheet .grip { display: none; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Toasty ---------- */
#toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); top: calc(var(--safe-top) + 12px); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 11px 15px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: up .2s ease; pointer-events: auto; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.good { background: var(--good); color: #fff; }

/* ---------- Stany ---------- */
.empty { text-align: center; padding: 34px 16px; color: var(--text-3); }
.empty .ico { width: 36px; height: 36px; margin: 0 auto 10px; opacity: .6; }
.empty h3 { color: var(--text-2); margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; min-height: 18px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--info-soft); color: var(--text); font-size: 14px; }
.banner.warn { background: var(--warn-soft); }
.banner.bad { background: var(--bad-soft); }
.banner.good { background: var(--good-soft); }

/* ---------- Ikony ---------- */
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 18px; height: 18px; }
.ico.xs { width: 15px; height: 15px; }
.ico.lg { width: 28px; height: 28px; }

/* ---------- Treść AI (markdown) ---------- */
.md { line-height: 1.6; overflow-wrap: anywhere; }
.md h1, .md h2, .md h3 { margin: 1em 0 .4em; font-size: 16px; }
.md h1:first-child, .md h2:first-child, .md h3:first-child { margin-top: 0; }
.md ul, .md ol { margin: .3em 0 .7em; padding-left: 1.3em; }
.md li { margin: .2em 0; }
.md code { background: var(--surface-2); padding: 1px 5px; border-radius: 6px; font-size: .92em; }
.md p:last-child { margin-bottom: 0; }
.md strong { font-weight: 700; }
.md blockquote { margin: .5em 0; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--text-2); }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; margin: .5em 0; }
.md th, .md td { border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: left; }

/* ---------- Wykresy ---------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--text-3); font-size: 10.5px; font-family: var(--font); }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -120%); }
.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; }
.heatmap i { width: 11px; height: 11px; border-radius: 3px; background: var(--surface-2); display: block; }

/* ---------- Segmenty dnia / nawigacja dat ---------- */
.datebar { display: flex; align-items: center; gap: 8px; }
.datebar .label { font-weight: 700; min-width: 0; text-align: center; flex: 1; }
.daystrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daystrip button { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; }
.daystrip button .d { font-size: 11px; color: var(--text-3); font-weight: 600; }
.daystrip button .n { font-weight: 700; font-family: var(--font-num); }
.daystrip button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.daystrip button.on .d { color: var(--bg); opacity: .7; }

/* ---------- Czat ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg .tools { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.composer { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px); display: flex; gap: 8px; align-items: flex-end; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px; padding: 6px; box-shadow: var(--shadow-lg); }
.composer textarea { flex: 1; border: 0; background: transparent; resize: none; min-height: 40px; max-height: 180px; padding: 9px 10px; outline: none; font-size: 16px; }
@media (min-width: 900px) { .composer { bottom: 16px; } }

/* utility kolorów obszarów */
.c-health { color: var(--c-health); } .c-fitness { color: var(--c-fitness); } .c-nutrition { color: var(--c-nutrition); }
.c-business { color: var(--c-business); } .c-mind { color: var(--c-mind); } .c-finance { color: var(--c-finance); }
.c-relations { color: var(--c-relations); } .c-growth { color: var(--c-growth); }

/* ---------- Logowanie PIN-em ---------- */
.login { max-width: 340px; margin: 12vh auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.login img { border-radius: 18px; margin-bottom: 6px; }
.login form { width: 100%; margin-top: 14px; }
.login .field label { text-align: left; }
.account-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-row .grow { min-width: 160px; }
.invite-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.pin-input { text-align: center; font-size: 28px !important; letter-spacing: .4em; font-family: var(--font-num); min-height: 60px !important; }

/* ---------- Wspólna przestrzeń firmy: odznaka „wspólne”, inicjały osoby odpowiedzialnej ---------- */
.ws-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 650; line-height: 1.5; background: color-mix(in srgb, var(--c-business) 14%, transparent); color: var(--c-business); white-space: nowrap; flex: none; }
.ws-badge .ico { width: 12px; height: 12px; }
.avatar { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 9.5px; font-weight: 750; letter-spacing: .02em; background: var(--c-business); color: #fff; flex: none; line-height: 1; }
.avatar.me { background: var(--accent-soft); color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent); }
.avatar.none { background: var(--surface-2); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--border-strong); }
