/* Third Wheel — flat, tokenized, no gradients */
:root {
  --color-bg: #000000;
  --color-surface: #09090b;
  --color-raised: #111114;
  --color-strong: #1a1a1f;
  --color-border: #26262c;
  --color-text: #fafafa;
  --color-text-2: #a3a3ad;
  --color-accent: #4f5ee6;
  --color-accent-hover: #6270ee;
  --color-accent-soft: #1b1e45;
  --color-accent-text: #aab2ff;
  --color-danger: #c93b47;
  --color-danger-text: #ff8791;
  --color-ok: #3ba55d;
  --color-warn: #f0b232;
  --color-off: #6b6b75;
  --color-focus: #ffffff;
  /* secondary tokens (themes in Settings -> Appearance override all of these) */
  --color-line-2: #3a3a44; --color-line-3: #44444d; --color-hover: #24242b; --color-hover-2: #15151a; --color-text-3: #8a8a94;
  --color-pop: #14141a; --color-accent-line: #2d3270; --color-ok-text: #7ddc9a; --color-ok-bg: #12251b; --color-ok-line: #1f4a33;
  --color-bad-bg: #2a1215; --color-bad-line: #5a2328; --color-scroll: #34343c; --color-knob: #d4d4dc; --color-on-accent: #ffffff;
  --density: 1;

  --space-1: 5px; --space-2: 8px; --space-3: 10px; --space-4: 12px;
  --space-5: 16px; --space-6: 20px; --space-7: 24px; --space-8: 28px;
  --radius-xs: 3.6px; --radius-sm: 5.6px; --radius-md: 9.6px; --radius-lg: 24px; --radius-pill: 999px;
  --shadow-1: 0 8px 30px rgba(0, 0, 0, .45);
  --shadow-2: 0 16px 40px -18px rgba(0, 0, 0, .8), 0 3px 10px -5px rgba(0, 0, 0, .5);
  --dur-fast: 150ms; --dur: 300ms;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ts: 1;   /* text scale (Settings -> Appearance); the --fs-* tokens and key line-heights multiply by it */
  --fs-xs: calc(11px * var(--ts)); --fs-sm: calc(12px * var(--ts)); --fs-md: calc(14px * var(--ts)); --fs-base: calc(16px * var(--ts));
  --fs-lg: calc(18px * var(--ts)); --fs-xl: calc(20px * var(--ts)); --fs-2xl: calc(28px * var(--ts));
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font: 400 var(--fs-base)/24px var(--font);
  -webkit-font-smoothing: antialiased; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: var(--fs-2xl); line-height: 34px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: var(--fs-xl); line-height: 28px; font-weight: 650; }
h3 { font-size: var(--fs-md); line-height: 20px; font-weight: 650; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.muted { color: var(--color-text-2); }
.small { font-size: var(--fs-sm); line-height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--color-text); color: #000; padding: 8px 12px; border-radius: var(--radius-sm); transition: top var(--dur-fast); }
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Motion ---------- */
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-pop { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.view-in { animation: view-in var(--dur) var(--ease) both; }
.stagger > * { animation: rise var(--dur) var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.step-in { animation: slide-in var(--dur) var(--ease) both; }

/* Motion follows the OS "reduce motion" setting unless the user picks Always on / Off in Settings (data-motion on <html>). */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="on"]) *, :root:not([data-motion="on"]) *::before, :root:not([data-motion="on"]) *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

/* ---------- Primitives ---------- */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--color-border); border-top-color: var(--color-text); border-radius: 50%; animation: spin .7s linear infinite; }
.boot { height: 100dvh; display: grid; place-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 40px; padding: 8px var(--space-5); border: 1px solid transparent; border-radius: var(--radius-md);
  background: var(--color-accent); color: #fff; font-weight: 600; font-size: var(--fs-md); line-height: 20px;
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease), border-color var(--dur-fast), opacity var(--dur-fast);
  position: relative; white-space: nowrap;
}
.btn:hover { background: var(--color-accent-hover); }
.btn:active { transform: scale(.96); }
.btn.ghost { background: var(--color-strong); border-color: var(--color-border); color: var(--color-text); }
.btn.ghost:hover { background: var(--color-hover); }
.btn.danger { background: var(--color-danger); }
.btn.danger:hover { background: #db4c58; }
.btn.small { min-height: 32px; padding: 4px var(--space-4); font-size: var(--fs-sm); }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.loading { color: transparent; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: transparent; border: 0; color: var(--color-text-2);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--color-strong); color: var(--color-text); }
.icon-btn:active { transform: scale(.9); }

.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--color-danger); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; animation: pop var(--dur) var(--ease); }
.badge[hidden] { display: none; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px var(--space-3); border-radius: var(--radius-pill); background: var(--color-strong); border: 1px solid var(--color-border); color: var(--color-text-2); font-size: var(--fs-sm); line-height: 18px; font-weight: 500; }
.chip.accent { background: var(--color-accent-soft); border-color: var(--color-accent-line); color: var(--color-accent-text); }
.chip.ok { color: var(--color-ok-text); }
button.chip { cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease); padding: 6px var(--space-4); font-size: var(--fs-md); }
button.chip:hover { border-color: var(--color-line-2); color: var(--color-text); }
button.chip:active { transform: scale(.95); }
button.chip[aria-pressed="true"] { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-text); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.card { background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-2); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: var(--fs-sm); line-height: 16px; font-weight: 600; color: var(--color-text-2); text-transform: uppercase; letter-spacing: .04em; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); color: var(--color-text); font-size: var(--fs-base);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-line-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: transparent; }
.select { color-scheme: dark; }
.select option { background: var(--color-raised); }
.textarea { resize: none; min-height: 84px; }

/* ---------- Custom controls: no native dropdowns, spinners or scrollbars ---------- */
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { appearance: none; display: none; }
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; }
* { scrollbar-width: thin; scrollbar-color: var(--color-line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--color-scroll); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--color-line-3); background-clip: content-box; border: 3px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }

.dd { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; min-height: 42px; padding: 9px var(--space-4); text-align: left;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); font-size: var(--fs-base); transition: border-color var(--dur-fast), background var(--dur-fast); }
.dd:hover { border-color: var(--color-line-2); }
.dd:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: transparent; }
.dd .dd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd.placeholder .dd-label { color: var(--color-text-3); }
.dd svg { flex: none; color: var(--color-text-2); transition: transform .35s var(--spring, cubic-bezier(.34, 1.56, .64, 1)); }
.dd[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd[aria-expanded="true"] { border-color: var(--color-accent); }
.field.invalid .dd { border-color: var(--color-danger); }
.dd-pop { position: fixed; z-index: 90; overflow-y: auto; padding: 4px; background: var(--color-pop); border: 1px solid var(--color-line-2); border-radius: var(--radius-md); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .85); transform-origin: top center; }
.dd-pop[data-side="up"] { transform-origin: bottom center; }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 9px var(--space-3); border-radius: var(--radius-sm); font-size: var(--fs-md); line-height: 20px; color: var(--color-text); cursor: pointer; user-select: none; }
.dd-opt .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-opt.active { background: var(--color-strong); }
.dd-opt[aria-selected="true"] { color: var(--color-accent-text); font-weight: 600; }
.dd-opt svg { flex: none; }
.dd-empty { padding: 10px var(--space-3); color: var(--color-text-2); font-size: var(--fs-md); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--color-danger); }
.field-msg { min-height: 16px; font-size: var(--fs-sm); line-height: 16px; color: var(--color-text-2); }
.field.invalid .field-msg, .form-error { color: var(--color-danger-text); }
.form-error { font-size: var(--fs-md); line-height: 20px; min-height: 20px; }
.form-error:empty { display: none; }
.row { display: flex; gap: var(--space-4); }
.row > * { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-5); }

/* Avatar & status */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 700; user-select: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.md { width: 40px; height: 40px; font-size: 16px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar.xl { width: 96px; height: 96px; font-size: 40px; }
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.handle { color: var(--color-text-2); font-weight: 400; font-size: var(--fs-sm); }
.pic-card { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-6); }
.pic-card .pic-meta { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.avatar-preview { flex: none; line-height: 0; }
.av-wrap { position: relative; flex: none; display: inline-block; line-height: 0; }
.dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--color-surface); background: var(--color-off); transition: background var(--dur); }
.dot.online { background: var(--color-ok); } .dot.idle { background: var(--color-warn); } .dot.dnd { background: var(--color-danger); }

/* Tabs — pure CSS indicator */
.tabs { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); border-bottom: 1px solid var(--color-border); }
.tab { background: none; border: 0; padding: var(--space-4) var(--space-5); color: var(--color-text-2); font-weight: 600; font-size: var(--fs-md); transition: color var(--dur-fast); }
.tab:hover { color: var(--color-text); }
.tab[aria-selected="true"] { color: var(--color-text); }
.tab .count { margin-left: 6px; color: var(--color-text-2); font-weight: 500; }
.tabs::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(100% / var(--n, 2)); background: var(--color-accent); border-radius: 3px 3px 0 0; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform var(--dur) var(--ease); }

/* ---------- Auth & onboarding ---------- */
.center-screen { min-height: 100dvh; display: grid; place-items: center; padding: var(--space-5); overflow: auto; }
.auth-card { width: min(420px, 100%); padding: var(--space-8); animation: rise var(--dur) var(--ease) both; }
.brand { display: flex; align-items: center; gap: var(--space-3); font-weight: 750; font-size: var(--fs-lg); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.auth-card .tabs { margin: var(--space-6) 0 var(--space-5); }
.auth-card form, .ob-card form { display: flex; flex-direction: column; gap: var(--space-4); }
.ob-card { width: min(560px, 100%); max-height: min(90dvh, 720px); display: flex; flex-direction: column; padding: var(--space-8); overflow: hidden; animation: rise var(--dur) var(--ease) both; }
.ob-card > * { flex: none; }
.ob-card > .ob-step { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; gap: var(--space-4); }
.ob-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 4px 2px; margin-right: -6px; display: flex; flex-direction: column; gap: var(--space-3); }
.ob-body > * { flex: none; }
.ob-card h1 { overflow-wrap: anywhere; }
.progress { display: flex; gap: 6px; margin: var(--space-5) 0; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--color-strong); transition: background var(--dur); }
.progress span.on { background: var(--color-accent); }
.ob-actions { flex: none; position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin-top: 0; padding-top: var(--space-4); background: var(--color-raised); border-top: 1px solid var(--color-border); }
.ob-actions .btn { min-width: 0; }

/* ---------- Text always fits: wrap instead of overflowing, and stay stable under zoom / small windows ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 300px; }
h1, h2, h3, p, .muted, .field > label, .field > .label, .field-msg, .section-title, .empty { overflow-wrap: anywhere; }
.btn { text-align: center; line-height: 20px; white-space: nowrap; flex-shrink: 0; }
.btn svg { flex: none; }
.chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.tab { overflow-wrap: anywhere; line-height: 18px; }
.page, .main, .card, .sheet, .sheet-body, .row > *, .stack > *, .page-head > * { min-width: 0; }
.page-head h1 { overflow-wrap: anywhere; }
.center-screen { min-height: 100dvh; }
@media (max-height: 600px) {
  .ob-card, .auth-card { padding: var(--space-5); max-height: 96dvh; }
  .progress { margin: var(--space-3) 0; }
}
@media (max-width: 420px) {
  .ob-actions { flex-direction: column-reverse; align-items: stretch; }
  .ob-actions > * { width: 100%; }
  .ob-actions > div { display: flex; flex-direction: column-reverse; gap: var(--space-2); }
}

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr) 288px; height: 100dvh; }
.rail { display: flex; flex-direction: column; background: var(--color-surface); border-right: 1px solid var(--color-border); min-height: 0; padding: var(--space-4); gap: var(--space-2); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.rail > * { flex-shrink: 0; }
.rail > .rail-groups { flex: 1 0 auto; min-height: 120px; max-height: none; overflow: visible; }
.rail > .userpanel { position: sticky; bottom: calc(var(--space-4) * -1); margin-top: auto; }
.rail .brand { padding: var(--space-2) var(--space-3) var(--space-4); }
.nav-link { display: flex; align-items: center; gap: var(--space-3); padding: 9px var(--space-3); border-radius: var(--radius-md); color: var(--color-text-2); font-weight: 600; font-size: var(--fs-md); transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease); min-width: 0; }
.nav-link:hover { background: var(--color-strong); color: var(--color-text); }
.nav-link:active { transform: scale(.97); }
.nav-link[aria-current="page"] { background: var(--color-accent-soft); color: var(--color-text); }
.nav-link .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-label { padding: var(--space-4) var(--space-3) var(--space-1); color: var(--color-text-2); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nav-main > .nav-label:first-child { padding-top: var(--space-1); }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-3) 0; color: var(--color-text-2); font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rail-head .icon-btn { width: 28px; height: 28px; }
.rail-groups { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.gtile { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.userpanel { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.userpanel .meta { flex: 1; min-width: 0; line-height: 18px; }
.userpanel .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); }
.userpanel .dot { border-color: var(--color-raised); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100dvh; }
.topbar { flex: none; display: grid; grid-template-columns: 1fr minmax(260px, 520px) 1fr; align-items: center; gap: var(--space-4); height: 60px; padding: 0 var(--space-6); border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.topbar .actions { display: flex; justify-content: flex-end; gap: var(--space-1); grid-column: 3; }
.topbar > .searchbox { grid-column: 2; }
.topbar .brand-mobile { display: none; }
.searchbox { position: relative; }
.searchbox .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-text-2); pointer-events: none; display: grid; }
.searchbox .input { padding-left: 40px; border-radius: var(--radius-pill); background: var(--color-raised); transition: border-color var(--dur-fast), box-shadow var(--dur) var(--ease); }
.topbar .searchbox .input:focus { box-shadow: 0 0 0 4px var(--color-accent-soft); }
#view { flex: 1; min-height: 0; overflow-y: auto; position: relative; scroll-behavior: smooth; }
.page { max-width: 980px; margin: 0 auto; padding: var(--space-7) var(--space-7) var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.section { display: flex; flex-direction: column; gap: var(--space-3); }
.section-title { display: flex; align-items: center; justify-content: space-between; color: var(--color-text-2); font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.friends-panel { background: var(--color-surface); border-left: 1px solid var(--color-border); display: flex; flex-direction: column; min-height: 0; }
.friends-panel > header { flex: none; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-5); border-bottom: 1px solid var(--color-border); }
.friends-scroll { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-3) var(--space-5); }
.fgroup-title { padding: var(--space-4) var(--space-3) var(--space-1); color: var(--color-text-2); font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.frow { display: flex; align-items: center; gap: var(--space-3); padding: 7px var(--space-3); border-radius: var(--radius-md); transition: background var(--dur-fast); min-width: 0; animation: fade var(--dur) var(--ease) both; }
.frow:hover { background: var(--color-raised); }
.frow .meta { flex: 1; min-width: 0; line-height: 18px; }
.frow .meta b { display: block; font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-name { cursor: pointer; transition: color var(--dur-fast); }
.person-name:hover { text-decoration: underline; color: var(--color-accent-text); }
.frow .avatar { cursor: pointer; }
.frow .meta span { display: flex; align-items: center; gap: 5px; font-size: var(--fs-sm); color: var(--color-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .meta span.playing { color: var(--color-ok-text); }
.frow.off .avatar { opacity: .55; }
.frow .act { display: flex; gap: var(--space-1); flex: none; }
.frow.big { padding: var(--space-3) var(--space-4); background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.frow.big:hover { border-color: var(--color-line-2); }
.frow.big .dot { border-color: var(--color-raised); }

.bottom-nav { display: none; }

/* ---------- Group cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.gcard { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-md); position: relative; overflow: hidden; transition: transform var(--dur) var(--ease), border-color var(--dur-fast), background var(--dur-fast); }
.gcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gc, var(--color-accent)); }
.gcard:hover { transform: translateY(-3px); border-color: var(--color-line-2); background: var(--color-hover-2); }
.gcard:active { transform: scale(.98); }
.gcard h3 { font-size: var(--fs-base); line-height: 22px; }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; }
.gcard p { color: var(--color-text-2); font-size: var(--fs-md); line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.gcard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); color: var(--color-text-2); font-size: var(--fs-sm); position: relative; z-index: 1; }
.gcard .title-row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.gcard .title-row h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { display: grid; place-items: center; gap: var(--space-3); padding: 48px var(--space-5); text-align: center; color: var(--color-text-2); border: 1px dashed var(--color-border); border-radius: var(--radius-md); animation: fade var(--dur) var(--ease) both; }
.empty b { color: var(--color-text); font-size: var(--fs-lg); }

/* Search */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); padding: var(--space-5); }
.filters .age { display: flex; gap: var(--space-2); align-items: center; }
.filters .age .input { min-width: 0; }
.filters .age span { color: var(--color-text-2); }
.search-query { display: none; }

/* ---------- Group page ---------- */
.chat-page { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.ghead { flex: none; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column; gap: var(--space-3); background: var(--color-bg); }
.ghead .top { display: flex; align-items: center; gap: var(--space-4); }
.ghead .top h1 { font-size: var(--fs-xl); line-height: 28px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ghead .desc { color: var(--color-text-2); font-size: var(--fs-md); line-height: 20px; overflow-wrap: anywhere; }
.members { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.member { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: var(--fs-sm); animation: pop var(--dur) var(--ease) both; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); scroll-behavior: smooth; }
.msg { display: flex; gap: var(--space-3); max-width: 760px; animation: rise var(--dur) var(--ease) both; }
.msg .body { min-width: 0; }
.msg .head { display: flex; align-items: baseline; gap: var(--space-2); line-height: 20px; }
.msg .head b { font-size: var(--fs-md); }
.msg .head time { font-size: var(--fs-xs); color: var(--color-text-2); }
.msg p { font-size: var(--fs-base); line-height: 22px; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.own .head b { color: var(--color-accent-text); }
.composer { flex: none; display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-6) var(--space-5); border-top: 1px solid var(--color-border); background: var(--color-bg); }
.composer .input { border-radius: var(--radius-pill); }
.composer .btn { min-width: 44px; border-radius: var(--radius-pill); }
.locked { flex: 1; display: grid; place-items: center; padding: var(--space-6); }

/* ---------- Sheet ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .7); animation: fade var(--dur-fast) linear both; padding: var(--space-5); }
.overlay.out { opacity: 0; transition: opacity 200ms; }
.sheet { width: min(480px, 100%); max-height: 90dvh; display: flex; flex-direction: column; background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); animation: sheet-pop var(--dur) var(--ease) both; overflow: hidden; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5) var(--space-4) var(--space-6); border-bottom: 1px solid var(--color-border); }
.sheet-body { padding: var(--space-5) var(--space-6) var(--space-6); overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-4); }

.toasts { position: fixed; z-index: 80; right: var(--space-5); bottom: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); pointer-events: none; }
.toast { padding: var(--space-3) var(--space-5); background: var(--color-strong); border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); border-radius: var(--radius-md); box-shadow: var(--shadow-1); font-size: var(--fs-md); line-height: 20px; max-width: 340px; animation: toast-in var(--dur) var(--ease) both; transition: opacity var(--dur), transform var(--dur); }
.toast.error { border-left-color: var(--color-danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

.profile-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); }
.profile-card .meta { flex: 1; min-width: 0; }
.profile-card .meta b { display: block; font-size: var(--fs-lg); overflow: hidden; text-overflow: ellipsis; }
a.frow.link { cursor: pointer; }
a.frow.link:focus-visible { outline-offset: -2px; }
button.member { font: inherit; color: inherit; cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast), transform .35s var(--spring, ease); }
button.member:hover { border-color: var(--color-line-2); background: var(--color-strong); }
button.member:active { transform: scale(.94); }

.dmhead { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.dm-who { display: flex; align-items: center; gap: var(--space-3); min-width: 0; padding: 6px var(--space-3) 6px 6px; margin: -6px 0; background: none; border: 0; border-radius: var(--radius-md); color: inherit; text-align: left; transition: background var(--dur-fast), transform .35s var(--spring, ease); }
.dm-who:hover { background: var(--color-raised); }
.dm-who:active { transform: scale(.97); }
.dm-names { display: flex; flex-direction: column; min-width: 0; line-height: 18px; }
.dm-names b { font-size: var(--fs-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile { display: flex; flex-direction: column; gap: var(--space-5); }
.profile-top { display: flex; align-items: center; gap: var(--space-5); }
.profile-names { min-width: 0; }
.profile-names h2 { overflow-wrap: anywhere; }
.status-line { margin-top: 4px; color: var(--color-text-2); font-size: var(--fs-md); }
.status-line.playing { color: var(--color-ok-text); }
.prows { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.prows:empty { display: none; }
.prow { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); font-size: var(--fs-md); }
.prow + .prow { border-top: 1px solid var(--color-border); }
.prow .k { color: var(--color-text-2); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-4); }
.stat { padding: var(--space-5); display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 30px; line-height: 36px; letter-spacing: -.02em; }
.ctl-row { display: flex; align-items: center; gap: var(--space-4); }
.ctl-row .ctl-name { flex: none; width: 190px; font-weight: 600; font-size: var(--fs-md); }
.ctl-row .input { flex: 1; min-width: 0; }
.arow { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.arow .meta { flex: 1; min-width: 0; line-height: 18px; }
.arow .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .badges { display: flex; gap: var(--space-2); flex: none; }
.arow .act { display: flex; gap: var(--space-2); flex: none; flex-wrap: wrap; justify-content: flex-end; }
.arow.small-row { justify-content: space-between; padding: var(--space-2) var(--space-4); font-size: var(--fs-md); }
.chip.bad { color: var(--color-danger-text); border-color: var(--color-bad-line); background: var(--color-bad-bg); }
.maint { text-align: left; }
.switch-row { display: flex; align-items: center; gap: var(--space-4); }
.switch { flex: none; position: relative; width: 44px; height: 26px; padding: 0; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-strong); transition: background .3s, border-color .3s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-knob); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .3s; }
.switch[aria-checked="true"] { background: var(--color-accent); border-color: var(--color-accent); }
.switch[aria-checked="true"] .knob { transform: translateX(18px); background: #fff; }

.mobile-only { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail, .friends-panel { display: none; }
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .mobile-only.stack, .section.mobile-only { display: flex !important; }
  .icon-btn.mobile-only { display: inline-grid !important; }
  .topbar { display: flex; justify-content: space-between; height: 56px; padding: 0 var(--space-4); }
  .topbar .searchbox { display: none; }
  .topbar .brand-mobile { display: flex; }
  .page { padding: var(--space-5) var(--space-4); gap: var(--space-5); }
  .search-query { display: block; }
  .filters { grid-template-columns: 1fr 1fr; padding: var(--space-4); gap: var(--space-3); }
  .filters .age-field { grid-column: 1 / -1; }
  #view { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 8px); }
  .chat-page { height: calc(100dvh - 56px - var(--nav-h) - var(--safe-b)); margin-bottom: -8px; }
  #view:has(.chat-page) { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
  .ghead, .chat-log, .composer { padding-left: var(--space-4); padding-right: var(--space-4); }
  .ghead .top { flex-wrap: wrap; }
  .ghead .top .row { flex: 1 1 100%; order: 3; }
  .ghead .top .row > .btn { flex: 1; }
  .grid { grid-template-columns: 1fr; }
  .toasts { left: var(--space-4); right: var(--space-4); bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
  .toast { max-width: none; }
  .overlay { align-items: end; padding: 0; }
  .sheet { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; animation-name: sheet-up; padding-bottom: var(--safe-b); }
  .ob-card, .auth-card { padding: var(--space-6); }
  .ctl-row { flex-wrap: wrap; }
  .ctl-row .ctl-name { width: auto; flex: 1; }
  .ctl-row .input { flex: 1 1 100%; }
  .arow { flex-wrap: wrap; }
  .arow .act { flex: 1 1 100%; justify-content: flex-start; }

  .bottom-nav {
    display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: var(--color-surface); border-top: 1px solid var(--color-border);
  }
  .bn-item { background: none; border: 0; font-family: inherit; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-h); color: var(--color-text-2); font-size: var(--fs-xs); font-weight: 600; transition: color var(--dur-fast), transform var(--dur-fast) var(--ease); }
  .bn-item:active { transform: scale(.9); }
  .bn-item[aria-current="page"] { color: var(--color-text); }
  .bn-item .bn-ico { position: relative; display: grid; transition: transform var(--dur) var(--ease); }
  .bn-item[aria-current="page"] .bn-ico { transform: translateY(-2px) scale(1.12); }
  .bn-search { position: relative; justify-self: center; width: 64px; height: 64px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: #fff; border: 5px solid var(--color-bg); box-shadow: 0 0 0 1px var(--color-border), var(--shadow-2); transition: transform var(--dur) var(--ease), background var(--dur-fast); }
  .bn-search:hover { background: var(--color-accent-hover); }
  .bn-search:active { transform: scale(.92); }
  .bn-search[aria-current="page"] { transform: translateY(-3px) scale(1.06); background: var(--color-accent-hover); }
  .bn-search:focus-visible { outline-offset: 3px; }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr) 248px; }
}


/* ================= game picker ================= */
.game-picker { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; position: relative; }
.game-picker-search { position: relative; display: flex; align-items: center; width: 100%; }
.game-picker-search .input { width: 100%; padding-left: 36px; padding-right: 12px; }
.game-picker-search .gp-icon { position: absolute; left: 10px; color: var(--color-text-2); pointer-events: none; }
.game-picker-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); min-height: 28px; }
.game-picker-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--color-accent-soft); border: 1px solid var(--color-accent); color: var(--color-text); font-size: var(--fs-sm); font-weight: 500; }
.game-picker-chip .gp-remove { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--color-accent-text); padding: 0 2px; border-radius: 50%; }
.game-picker-chip .gp-remove:hover { color: #fff; background: rgba(255,255,255,0.15); }
.game-picker-single-preview { display: flex; align-items: center; gap: var(--space-2); min-height: 42px; padding: 5px 6px 5px 6px; background: var(--color-raised); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.gp-single-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 2px 6px 2px 2px; background: none; border: 0; border-radius: var(--radius-sm); color: var(--color-text); font-weight: 500; text-align: left; transition: background var(--dur-fast); }
.gp-single-body:hover { background: var(--color-strong); }
.gp-single-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-thumb { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; overflow: hidden; background: var(--color-strong); color: var(--color-text-2); }
.gp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-single-x { flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--color-text-2); }
.gp-single-x:hover { color: #fff; background: var(--color-strong); }
.game-picker-single-val { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--color-text); }
.gp-opt-thumb { width: 56px; height: 26px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-strong); flex-shrink: 0; }
.gp-opt-badge { font-size: 11px; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--color-strong); color: var(--color-text-2); margin-left: auto; }
.gp-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; width: 100%; cursor: pointer; border-radius: var(--radius-sm); text-align: left; background: none; border: none; color: var(--color-text); font-size: var(--fs-md); }
.gp-opt:hover, .gp-opt.active { background: var(--color-strong); }
.gp-opt-custom { color: var(--color-accent-text); font-weight: 500; }

/* Profile banners */
.banner-card { display: flex; flex-direction: column; gap: var(--space-3); }
.banner-preview { width: 100%; height: 90px; border-radius: var(--radius-md); background-size: cover; background-position: center; border: 1px solid var(--color-border); }
.profile-banner { width: calc(100% + 40px); height: 110px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: -20px; margin-left: -20px; margin-right: -20px; margin-bottom: 0; }
.profile-top.with-banner { margin-top: -38px; position: relative; z-index: 2; }
.profile-top.with-banner .avatar { border: 3px solid var(--color-raised); }

/* Chips with game icons */
.game-picker-chip .gp-thumb, .chip .gp-thumb, .playing .gp-thumb, .status-line .gp-thumb { width: 16px; height: 16px; border-radius: 4px; overflow: hidden; display: inline-grid; place-items: center; flex: none; vertical-align: middle; margin-right: 3px; }
.game-picker-chip .gp-thumb img, .chip .gp-thumb img, .playing .gp-thumb img, .status-line .gp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-picker-chip .gp-thumb svg, .chip .gp-thumb svg, .playing .gp-thumb svg, .status-line .gp-thumb svg { width: 12px; height: 12px; }
.status-line.playing { display: flex; align-items: center; gap: 4px; }

/* Group icons in tiles */
.gtile img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar canvas.avatar-static { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }


/* Image Cropper Modal */
.sheet.cropper-sheet { width: min(620px, 96vw); }
.cropper-modal { display: flex; flex-direction: column; gap: var(--space-4); }
.cropper-stage {
  position: relative;
  width: 100%;
  height: 340px;
  background: #090a0f;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  touch-action: none;
  border: 1px solid var(--color-border);
  cursor: grab;
}
.cropper-stage.grabbing {
  cursor: grabbing;
}
.cropper-img {
  position: absolute;
  pointer-events: none;
  max-width: none;
  max-height: none;
  user-select: none;
  display: block;
}
.cropper-box {
  position: absolute;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72);
  cursor: grab;
  touch-action: none;
  box-sizing: border-box;
}
.cropper-stage.grabbing .cropper-box {
  cursor: grabbing;
}
.cropper-box.circle-guide::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.cropper-banner-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  user-select: none;
}
.cropper-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  pointer-events: none;
}
.cropper-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.cropper-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid #1a1a24;
  border-radius: 3px;
  touch-action: none;
  z-index: 2;
}
.cropper-handle.nw { top: -7px; left: -7px; cursor: nwse-resize; }
.cropper-handle.ne { top: -7px; right: -7px; cursor: nesw-resize; }
.cropper-handle.se { bottom: -7px; right: -7px; cursor: nwse-resize; }
.cropper-handle.sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.cropper-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-2);
}
.cropper-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.cropper-preview-box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.cropper-thumb-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  overflow: hidden;
  background: var(--color-raised);
  display: grid;
  place-items: center;
}
.cropper-thumb-rect {
  width: 120px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  overflow: hidden;
  background: var(--color-raised);
  display: grid;
  place-items: center;
}
.cropper-thumb-circle canvas, .cropper-thumb-rect canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 899px) {
  .bn-ico .nav-badge { position: absolute; top: -4px; right: -10px; margin: 0; }
  .menu-link { min-height: 48px; font-size: var(--fs-lg); width: 100%; text-align: left; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .menu-sheet .nav-label { padding-top: var(--space-5); }
  .sheet-body { overscroll-behavior: contain; }
  .btn, .icon-btn, .chip, .tab { min-height: 40px; }
  .icon-btn { min-width: 40px; }
  .conv, .nav-link { -webkit-tap-highlight-color: transparent; }
}
.menu-link { background: none; border: 0; font-family: inherit; cursor: pointer; }

@media (max-width: 899px) {
  .topbar .brand-mobile { white-space: nowrap; font-size: var(--fs-lg); gap: var(--space-2); }
  .topbar .brand-mobile > .icon-btn { display: none !important; }
  .tabs .tab { white-space: nowrap; padding-left: 6px; padding-right: 6px; font-size: var(--fs-md); }
}
