
/* ═══════════════════════════════════════════════════════════════════════
   konyct-ui.css — ONE component system for desktop web + mobile browser.

   Design intent (agreed): balanced, airy, modern — not boring, not
   magazine-editorial. Warm / human + generous. All industries, not
   just food.

   Hierarchy:
     Desktop ≥1024px  — quiet nav (264px) · centre flow (720px) · quiet
                        companion (320px). FAB create bottom-right.
     <1024px (incl. tablets) — 100% app parity: bottom nav, single column,
                        same card order as mobile app. No side nav.

   Rules that keep pages from overcrowding:
     • One primary glance per screen: PageHeader (eyebrow → title → line).
     • One primary action per screen: Button[primary] or FAB — not both.
     • Cards: max 1 accent, ≤3 text levels, whitespace separates.
     • Radius is a scale, not a guess: 12 / 16 / 20 / 999.
     • Type: Cormorant Garamond headings, DM Sans functional text.
     • Brass #A3794A reserved for trust / next-action warmth — never
       decoration. Borders are hairlines; space does the work.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tokens: Konyct design guidelines v2 (single source) ─────────────
   Pressed from "Konyct Design Guidelines.html". Components read --k-*;
   the legacy --ui-* names below are thin aliases so existing rules
   keep working. Pages never invent colours. */
:root {
  /* Surfaces */
  --k-bg: #F8F7F5;
  --k-surface: #FFFFFF;
  --k-sunken: #EFEDE8;
  --k-line: #E8E5DF;
  --k-line-strong: #D8D4CB;
  /* Text */
  --k-ink: #141412;
  --k-ink-2: #4A473F;
  --k-muted: #6B675F;
  /* Brass accent: --k-brass for rings and fills, --k-brass-ink for text */
  --k-brass: #A3794A;
  --k-brass-ink: #8A6338;
  --k-brass-tint: #F3E7D6;
  /* Inverse (primary buttons, journey bar) */
  --k-inverse-bg: #141412;
  --k-inverse-ink: #F8F7F5;
  /* Brand tints: avatar and cover fills, always as bg + fg pairs */
  --k-sand-bg: #E6D5C0;  --k-sand-fg: #6B4A27;
  --k-sage-bg: #CFE0DB;  --k-sage-fg: #24544A;
  --k-rose-bg: #F0D3CB;  --k-rose-fg: #8A3E2E;
  --k-moss-bg: #DDE3CF;  --k-moss-fg: #4A5A28;
  --k-iris-bg: #D6DAEA;  --k-iris-fg: #363E73;
  --k-plum-bg: #EADDE6;  --k-plum-fg: #6B3A59;
  /* Elevation */
  --k-shadow-card: 0 1px 2px rgba(20,20,18,.04), 0 12px 32px rgba(20,20,18,.06);
  --k-shadow-float: 0 12px 32px rgba(20,20,18,.28);
  --k-shadow-sheet: 0 -12px 40px rgba(20,20,18,.25);
  --k-scrim: rgba(20,20,18,.45);
  /* Type */
  --k-font-display: 'Cormorant Garamond', Georgia, serif;
  --k-font-body: 'DM Sans', system-ui, sans-serif;
  --k-serif: 'Cormorant Garamond', Georgia, serif;
  /* Shape */
  --k-radius-sm: 12px;
  --k-radius-md: 16px;
  --k-radius-lg: 24px;
  --k-radius-sheet: 28px;
  --k-radius-pill: 999px;
  /* Space (4px base) */
  --k-s1: 4px; --k-s2: 8px; --k-s3: 12px; --k-s4: 16px;
  --k-s5: 20px; --k-s6: 24px; --k-s8: 32px; --k-s10: 40px; --k-s12: 48px;
  /* Layout */
  --k-nav-w: 264px;
  --k-flow-w: 720px;
  --k-rail-w: 320px;
  --k-max-w: 1320px;
  --k-touch: 44px;
  --k-break: 1024px;
  /* Motion */
  --k-ease: cubic-bezier(.2,.7,.2,1);
  --k-dur-fast: 150ms;
  --k-dur: 240ms;
  --k-dur-slow: 420ms;

  /* Legacy aliases — every value above is the one source */
  --ui-bg: var(--k-bg);
  --ui-surface: var(--k-surface);
  --ui-surface-soft: var(--k-sunken);
  --ui-ink: var(--k-ink);
  --ui-ink-2: var(--k-ink-2);
  --ui-muted: var(--k-muted);
  --ui-line: var(--k-line);
  --ui-line-strong: var(--k-line-strong);
  --ui-brass: var(--k-brass);
  --ui-brass-ink: var(--k-brass-ink);
  --ui-brass-soft: var(--k-brass-tint);
  --ui-brass-line: color-mix(in srgb, var(--k-brass) 25%, transparent);
  --ui-dark: var(--k-inverse-bg);
  --ui-light: var(--k-inverse-ink);
  --ui-shadow: var(--k-shadow-card);
  --ui-r-sm: var(--k-radius-sm);
  --ui-r-md: var(--k-radius-md);
  --ui-r-lg: var(--k-radius-lg);
  --ui-r-pill: var(--k-radius-pill);
  --ui-nav-w: var(--k-nav-w);
  --ui-rail-w: var(--k-rail-w);
  --ui-flow-w: var(--k-flow-w);
  --ui-max-w: var(--k-max-w);
}

/* Dark applies via the OS setting or an explicit data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --k-bg: #121211; --k-surface: #1C1B19; --k-sunken: #262522;
    --k-line: #2E2C28; --k-line-strong: #3F3C37;
    --k-ink: #F3F1EC; --k-ink-2: #CFCBC2; --k-muted: #A29E94;
    --k-brass: #C79A65; --k-brass-ink: #D9B98A; --k-brass-tint: #34291C;
    --k-inverse-bg: #F3F1EC; --k-inverse-ink: #141412;
    --k-sand-bg: #3B3226;  --k-sand-fg: #E6D5C0;
    --k-sage-bg: #26403A;  --k-sage-fg: #CFE0DB;
    --k-rose-bg: #45302B;  --k-rose-fg: #F0D3CB;
    --k-moss-bg: #343A27;  --k-moss-fg: #DDE3CF;
    --k-iris-bg: #2E3350;  --k-iris-fg: #D6DAEA;
    --k-plum-bg: #3F2D39;  --k-plum-fg: #EADDE6;
    --k-shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
    --k-shadow-float: 0 12px 32px rgba(0,0,0,.6);
    --k-shadow-sheet: 0 -12px 40px rgba(0,0,0,.6);
    --k-scrim: rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --k-bg: #121211; --k-surface: #1C1B19; --k-sunken: #262522;
  --k-line: #2E2C28; --k-line-strong: #3F3C37;
  --k-ink: #F3F1EC; --k-ink-2: #CFCBC2; --k-muted: #A29E94;
  --k-brass: #C79A65; --k-brass-ink: #D9B98A; --k-brass-tint: #34291C;
  --k-inverse-bg: #F3F1EC; --k-inverse-ink: #141412;
  --k-sand-bg: #3B3226;  --k-sand-fg: #E6D5C0;
  --k-sage-bg: #26403A;  --k-sage-fg: #CFE0DB;
  --k-rose-bg: #45302B;  --k-rose-fg: #F0D3CB;
  --k-moss-bg: #343A27;  --k-moss-fg: #DDE3CF;
  --k-iris-bg: #2E3350;  --k-iris-fg: #D6DAEA;
  --k-plum-bg: #3F2D39;  --k-plum-fg: #EADDE6;
  --k-shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  --k-shadow-float: 0 12px 32px rgba(0,0,0,.6);
  --k-shadow-sheet: 0 -12px 40px rgba(0,0,0,.6);
  --k-scrim: rgba(0,0,0,.6);
  color-scheme: dark;
}

html, body { background: var(--ui-bg); color: var(--ui-ink); }

/* ── Shell: quiet nav · flow · companion ─────────────────────────────── */

.k-shell {
  display: grid;
  grid-template-columns: var(--ui-nav-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.k-side {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px calc(20px + env(safe-area-inset-bottom));
  background: var(--ui-bg);
  border-right: 1px solid var(--ui-line);
}

.k-side-logo {
  display: flex;
  align-items: center;
  padding: 4px 10px 22px;
  color: var(--ui-ink);
  text-decoration: none;
}

.k-side-logo svg { width: 104px; height: auto; display: block; }

.k-side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }

.k-side-head {
  padding: 14px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ui-muted);
}

.k-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--ui-r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ui-ink-2);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.k-side-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.65; }
.k-side-item:hover { background: var(--ui-surface-soft); color: var(--ui-ink); }
.k-side-item.is-active {
  background: var(--ui-surface-soft);
  color: var(--ui-ink);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--ui-brass);
}
.k-side-item.is-active svg { opacity: 1; color: var(--ui-brass); }
.k-side-item .k-dot {
  margin-left: auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ui-brass);
}

.k-side-foot { padding-top: 12px; border-top: 1px solid var(--ui-line); }

.k-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--ui-r-sm);
  text-decoration: none; color: var(--ui-ink);
}
.k-user:hover { background: var(--ui-surface-soft); }
.k-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ui-surface-soft); color: var(--ui-ink);
  font-weight: 700; font-size: 13px; overflow: hidden; flex-shrink: 0;
}
.k-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.k-user-name { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.k-user-meta { font-size: 12px; color: var(--ui-muted); }

.k-main { min-width: 0; display: flex; flex-direction: column; }

.k-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(20px, 4vw, 44px);
  min-height: 73px;
  background: color-mix(in srgb, var(--ui-bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid var(--ui-line);
}

.k-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.k-crumbs a { color: var(--ui-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.k-crumbs a:hover { color: var(--ui-ink); }
.k-crumbs .sep { color: var(--ui-muted); font-size: 12px; }
.k-crumbs .here { font-size: 13px; font-weight: 700; color: var(--ui-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.k-topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.k-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent;
  color: var(--ui-ink-2); cursor: pointer;
}
.k-icon-btn:hover { background: var(--ui-surface-soft); color: var(--ui-ink); }
.k-icon-btn svg { width: 19px; height: 19px; }

.k-content {
  width: min(var(--ui-max-w), 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 44px) 120px;
}

.k-flow {
  display: grid;
  grid-template-columns: minmax(0, var(--ui-flow-w)) var(--ui-rail-w);
  gap: 32px;
  justify-content: center;
  align-items: start;
}

.k-companion { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }

/* Centre column — min-width:0 so the 720px flow never blows out the grid */
.k-feed-col { min-width: 0; display: flex; flex-direction: column; }

/* Focus rings everywhere (acceptance) */
.k-side-item:focus-visible, .k-btn:focus-visible, .k-chip:focus-visible,
.k-seg-btn:focus-visible, .k-fab:focus-visible, .k-icon-btn:focus-visible,
.k-horizon:focus-visible, .k-more-btn:focus-visible, .k-user:focus-visible {
  outline: 3px solid var(--ui-brass);
  outline-offset: 2px;
}

/* Journey nudge — compact progress strip */
.k-nudge {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  padding: 6px 16px; border-radius: var(--ui-r-sm);
  background: var(--ui-brass-soft); border: 1px solid var(--ui-brass-line);
  margin-bottom: 14px; text-decoration: none;
}
.k-nudge-dots { display: flex; align-items: center; gap: 4px; }
.k-nudge-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ui-line-strong); transition: width 160ms ease, background 160ms ease; }
.k-nudge-dot.is-done { width: 14px; background: var(--ui-brass); }
.k-nudge-label { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ui-brass); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-nudge-arrow { color: var(--ui-brass); width: 14px; height: 14px; flex-shrink: 0; }

/* Horizon extras: favorite dot + dashed discover anchor + all-brands active face */
.k-horizon-fav {
  position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ui-surface); border: 1px solid var(--ui-line-strong);
  display: flex; align-items: center; justify-content: center;
}
.k-horizon-fav svg { width: 10px; height: 10px; color: #B4232A; fill: #B4232A; }
.k-horizon.is-all.is-on .k-horizon-face { background: var(--ui-dark); color: var(--ui-light); }
.k-horizon.is-all.is-on .k-horizon-name { color: var(--ui-ink); }
.k-horizon-discover {
  width: 52px; height: 52px; border-radius: 50%; border: 1px dashed var(--ui-line-strong);
  background: var(--ui-surface-soft); display: flex; align-items: center; justify-content: center; color: var(--ui-muted);
}
.k-horizon-discover svg { width: 20px; height: 20px; }

/* Clubs rail on Feed */
.k-club-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.k-club-head-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-muted); }
.k-club-head-link { font-size: 13px; font-weight: 600; color: var(--ui-brass); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.k-club-card {
  width: 188px; min-width: 188px; border-radius: var(--ui-r-lg);
  border: 1px solid var(--ui-line); background: var(--ui-surface);
  padding: 14px 16px; text-decoration: none; display: flex; flex-direction: column; justify-content: center;
  transition: border-color 160ms ease, transform 160ms ease;
}
.k-club-card:hover { border-color: var(--ui-brass-line); transform: translateY(-1px); }
.k-club-card.is-on { border-color: var(--ui-brass-line); background: var(--ui-brass-soft); }
.k-club-name { font-size: 14.5px; font-weight: 600; color: var(--ui-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.k-club-meta { font-size: 12px; color: var(--ui-muted); }
.k-club-meta.is-new { color: var(--ui-brass); font-weight: 600; }

/* Club contribution card on Feed */
.k-contrib {
  display: block; border-radius: var(--ui-r-lg); border: 1px solid var(--ui-line);
  background: var(--ui-surface); padding: 18px 20px; text-decoration: none;
  transition: border-color 160ms ease;
}
.k-contrib:hover { border-color: var(--ui-brass-line); }
.k-contrib-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.k-contrib-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ui-surface-soft);
  color: var(--ui-ink); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; overflow: hidden; flex-shrink: 0;
}
.k-contrib-avatar img { width: 100%; height: 100%; object-fit: cover; }
.k-contrib-author { font-size: 14.5px; font-weight: 600; color: var(--ui-ink); line-height: 1.25; }
.k-contrib-meta { font-size: 12px; color: var(--ui-muted); margin-top: 2px; }
.k-contrib-title { font-size: 16.5px; font-weight: 600; color: var(--ui-ink); line-height: 1.35; margin: 0 0 6px; }
.k-contrib-snippet { font-size: 13.5px; color: var(--ui-ink-2); line-height: 1.55; margin: 0 0 12px; }
.k-contrib-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.k-contrib-tag {
  display: inline-flex; padding: 3px 10px; border-radius: 999px;
  background: var(--ui-surface-soft); color: var(--ui-ink-2); font-size: 11.5px; font-weight: 500;
}

/* ── PageHeader: one glance ──────────────────────────────────────────── */

.k-page-head { margin: 8px 0 20px; }

.k-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ui-muted);
  margin-bottom: 6px;
}

.k-title {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ui-ink); margin: 0;
}

.k-lead {
  font-size: 15px; line-height: 1.5; color: var(--ui-ink-2);
  margin: 8px 0 0; max-width: 56ch;
}

/* ── Buttons: one primary per screen ─────────────────────────────────── */

.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--ui-r-pill);
  font-size: 14px; font-weight: 700; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  transition: opacity 160ms ease, background 160ms ease, transform 120ms ease;
}
.k-btn:active { transform: scale(0.98); }
.k-btn-primary { background: var(--ui-dark); color: var(--ui-light); }
.k-btn-primary:hover { opacity: 0.88; }
.k-btn-outline {
  background: transparent; color: var(--ui-ink);
  border-color: var(--ui-line-strong);
}
.k-btn-outline:hover { background: var(--ui-surface-soft); }
.k-btn-ghost { background: transparent; color: var(--ui-muted); }
.k-btn-ghost:hover { color: var(--ui-ink); }
.k-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ── FAB: the one create orb ─────────────────────────────────────────── */

.k-fab {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  /* Above bottom nav height on mobile, clear in desktop */
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--ui-dark); color: var(--ui-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(20, 20, 18, 0.22);
  transition: transform 160ms ease, opacity 160ms ease;
}
.k-fab:hover { transform: translateY(-2px); }
.k-fab:active { transform: scale(0.96); }
.k-fab svg { width: 24px; height: 24px; }

/* ── Segmented switch (Brands | Clubs) ───────────────────────────────── */

.k-seg {
  display: flex;
  background: var(--ui-surface-soft);
  border-radius: var(--ui-r-pill);
  padding: 4px;
  margin: 4px 0 16px;
}

.k-seg-btn {
  flex: 1; min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--ui-r-pill);
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  color: var(--ui-ink-2);
  border: none; background: transparent; cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.k-seg-btn.is-on {
  background: var(--ui-dark); color: var(--ui-light);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(20, 20, 18, 0.14);
}

/* ── Chips (filters) ─────────────────────────────────────────────────── */

.k-chip {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 16px;
  border-radius: var(--ui-r-pill);
  font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ui-line-strong);
  background: var(--ui-surface); color: var(--ui-ink-2);
  transition: background 160ms ease, color 160ms ease;
}
.k-chip:hover { color: var(--ui-ink); }
.k-chip.is-on { background: var(--ui-dark); color: var(--ui-light); border-color: var(--ui-dark); }
.k-chip.is-on:hover { color: var(--ui-light); }

/* Purpose whisper tones — meaning, not rainbow */
.k-chip[data-tone="stories"] { background: #E8EFF0; border-color: #BFD3D7; color: #245963; }
html[data-theme="dark"] .k-chip[data-tone="stories"] { background: rgba(36,89,99,0.30); border-color: rgba(127,179,189,0.35); color: #7FB3BD; }
.k-chip[data-tone="drops"] { background: #FDECEC; border-color: #F3C1C1; color: #C93A3A; }
html[data-theme="dark"] .k-chip[data-tone="drops"] { background: rgba(250,92,92,0.16); border-color: rgba(250,92,92,0.38); color: #FF9B9B; }
.k-chip[data-tone="polls"] { background: #FDF6E3; border-color: #F0DDAE; color: #A3794A; }
html[data-theme="dark"] .k-chip[data-tone="polls"] { background: rgba(163,121,74,0.14); border-color: rgba(163,121,74,0.30); color: #C49A6C; }
.k-chip[data-tone="stories"].is-on { background: #245963; border-color: #245963; color: #fff; }
.k-chip[data-tone="drops"].is-on { background: #D93D3D; border-color: #D93D3D; color: #fff; }
.k-chip[data-tone="polls"].is-on { background: #A3794A; border-color: #A3794A; color: #fff; }

/* ── Cards: one idea per card ────────────────────────────────────────── */

.k-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-lg);
  padding: 20px;
}

.k-card-title {
  font-size: 16px; font-weight: 700; color: var(--ui-ink);
  margin: 0 0 6px; letter-spacing: -0.01em;
}

.k-card-body {
  font-size: 13.5px; line-height: 1.55; color: var(--ui-ink-2);
  margin: 0 0 14px;
}

.k-card-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ui-muted);
  display: block; margin-bottom: 8px;
}

.k-bes {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--ui-r-pill);
  background: var(--ui-brass-soft);
  border: 1px solid var(--ui-brass-line);
  color: var(--ui-brass);
  font-size: 13.5px; font-weight: 700;
}
.k-bes svg { width: 14px; height: 14px; }

/* ── Feed list ───────────────────────────────────────────────────────── */

.k-feed { display: flex; flex-direction: column; gap: 16px; }

/* Horizon rail — brands you know */
.k-rail {
  display: flex; gap: 14px;
  overflow-x: auto; scrollbar-width: none;
  padding: 6px 2px 14px; margin: 0 0 6px;
}
.k-rail::-webkit-scrollbar { display: none; }

.k-horizon {
  display: flex; flex-direction: column; align-items: center;
  width: 64px; min-width: 64px; text-decoration: none;
}

.k-horizon-face {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ui-surface); border: 1px solid var(--ui-line-strong);
  overflow: hidden; position: relative;
  transition: border-color 160ms ease;
}
.k-horizon-face img { width: 100%; height: 100%; object-fit: cover; }
.k-horizon:hover .k-horizon-face { border-color: var(--ui-brass); }
.k-horizon.is-on .k-horizon-face {
  border: 2px solid var(--ui-brass);
}
.k-horizon-name {
  font-size: 11.5px; font-weight: 500; color: var(--ui-ink-2);
  max-width: 72px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-align: center; margin-top: 5px;
}
.k-horizon.is-on .k-horizon-name { color: var(--ui-brass); font-weight: 700; }

.k-chip-row {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 2px 16px;
}
.k-chip-row::-webkit-scrollbar { display: none; }

/* Caught up — quiet ending, not a celebration wall */
.k-caught {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 44px 0 28px; color: var(--ui-muted);
  font-size: 13px; font-weight: 500; text-align: center;
}
.k-caught-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ui-surface-soft); border: 1px solid var(--ui-line);
  display: flex; align-items: center; justify-content: center; color: var(--ui-brass);
}
.k-caught-dot svg { width: 14px; height: 14px; }

/* Load more — one quiet affordance */
.k-more {
  display: flex; justify-content: center; padding-top: 8px;
}
.k-more-btn {
  min-height: 44px; padding: 0 24px;
  border-radius: var(--ui-r-pill);
  border: 1px solid var(--ui-line-strong);
  background: var(--ui-surface); color: var(--ui-ink);
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.k-more-btn:hover { background: var(--ui-surface-soft); }
.k-more-btn[disabled] { opacity: 0.5; cursor: default; }

/* Empty / first-run — one composition */
.k-empty {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  border-radius: var(--ui-r-lg);
  padding: 28px;
}
.k-empty-title {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 24px; font-weight: 600; color: var(--ui-ink);
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.k-empty-body {
  font-size: 14px; line-height: 1.55; color: var(--ui-ink-2);
  margin: 0 0 18px; max-width: 48ch;
}
.k-steps { list-style: none; margin: 0 0 4px; padding: 0; }
.k-step {
  display: flex; gap: 14px; padding: 14px 0;
  border-top: 1px solid var(--ui-line);
}
.k-step:first-child { border-top: none; }
.k-step-n {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ui-surface-soft); border: 1px solid var(--ui-line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ui-ink-2); flex-shrink: 0;
}
.k-step.is-done .k-step-n { background: var(--ui-brass-soft); border-color: var(--ui-brass-line); color: var(--ui-brass); }
.k-step-t { font-size: 14.5px; font-weight: 700; color: var(--ui-ink); margin: 0 0 3px; }
.k-step-b { font-size: 13.5px; line-height: 1.5; color: var(--ui-muted); margin: 0 0 10px; }
.k-segs { display: flex; gap: 6px; margin: 14px 0 6px; }
.k-seg-bar { flex: 1; height: 4px; border-radius: 999px; background: var(--ui-line-strong); }
.k-seg-bar.is-on { background: var(--ui-brass); }

/* Companion cards stack — quiet, useful, nothing shouting */
.k-comp-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-lg);
  padding: 20px;
}

/* ── Greeting: date eyebrow + serif hello ──────────────────────────── */

.k-greet-date {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--k-muted);
  margin: 0 0 6px;
}
.k-greet-title {
  font-family: var(--k-serif, Georgia, serif);
  font-weight: 500; letter-spacing: -0.01em;
  font-size: 34px; line-height: 1.12;
  color: var(--k-ink);
  margin: 0 0 18px;
}
.k-greet-title em {
  font-style: italic; color: var(--k-brass-ink);
}

/* ── Journey bar: dark strip per guidelines .nudge spec ───────────── */

.k-journey {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 20px;
  background: var(--k-inverse-bg); color: var(--k-inverse-ink);
  margin-bottom: 20px;
}
.k-journey-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--k-brass, var(--k-inverse-ink));
  white-space: nowrap;
}
.k-journey-body {
  flex: 1; font-size: 14.5px; line-height: 1.4;
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.k-journey-cta {
  background: var(--k-inverse-ink); color: var(--k-inverse-bg);
  font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  border: none; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: opacity 150ms var(--k-ease, ease);
}
.k-journey-cta:hover { opacity: 0.88; }
.k-journey-close {
  width: 28px; height: 28px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--k-inverse-ink); opacity: 0.6; flex-shrink: 0;
}
.k-journey-close:hover { opacity: 1; }
.k-journey-close svg { width: 16px; height: 16px; }

/* ── Pastel letter avatars: tint pairs, gold conic ring when unseen ── */

.k-face {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
}
.k-face--fill { width: 100%; height: 100%; }
.k-horizon-face .k-face--fill .k-face--letter { font-size: 21px; line-height: 1; }
.k-face.is-new {
  border-color: transparent;
  background:
    linear-gradient(var(--k-surface, #fff), var(--k-surface, #fff)) padding-box,
    conic-gradient(from 90deg,
      var(--k-brass) 0deg, #EBDDBC 90deg, var(--k-brass) 180deg, #EBDDBC 270deg, var(--k-brass) 360deg)
      border-box;
}
.k-face--letter { font-family: var(--k-serif, Georgia, serif); font-weight: 600; }
.k-face--sand { background: var(--k-sand-bg); color: var(--k-sand-fg); }
.k-face--sage { background: var(--k-sage-bg); color: var(--k-sage-fg); }
.k-face--rose { background: var(--k-rose-bg); color: var(--k-rose-fg); }
.k-face--moss { background: var(--k-moss-bg); color: var(--k-moss-fg); }
.k-face--iris { background: var(--k-iris-bg); color: var(--k-iris-fg); }
.k-face--plum { background: var(--k-plum-bg); color: var(--k-plum-fg); }

/* ── Companion stat cards: serif tabular numbers ───────────────────── */

.k-comp-stat {
  font-family: var(--k-serif, Georgia, serif);
  font-weight: 500; font-variant-numeric: tabular-nums;
  font-size: 40px; line-height: 1; letter-spacing: -0.01em;
  color: var(--k-ink);
  margin: 6px 0 4px;
}
.k-comp-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--k-muted);
  margin: 0 0 2px;
}
.k-comp-note { font-size: 13.5px; line-height: 1.5; color: var(--k-ink-2); margin: 0; }
.k-comp-note + .k-comp-note { margin-top: 6px; }
.k-comp-title {
  font-family: var(--k-serif, Georgia, serif);
  font-weight: 600; font-size: 20px; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--k-ink); margin: 0 0 6px;
}

/* ── Search pill: magnifier left, round arrow submit ─────────────────── */

.k-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--ui-surface); border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-r-pill);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--k-shadow-card);
  max-width: 560px;
}
.k-search svg { width: 18px; height: 18px; color: var(--ui-muted); flex-shrink: 0; }
.k-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 15px; color: var(--ui-ink);
}
.k-search input::placeholder { color: var(--ui-muted); }
.k-search-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--ui-dark); color: var(--ui-light);
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.k-search-btn svg { width: 18px; height: 18px; color: inherit; }
.k-search-btn:hover { opacity: 0.88; }
.k-search:focus-within { border-color: var(--ui-brass); }

/* ── Filter chips with counts ────────────────────────────────────────── */

.k-chip .k-chip-count {
  margin-left: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--ui-muted);
}
.k-chip.is-on .k-chip-count { color: inherit; opacity: 0.7; }

/* ── Section heads: serif title + quiet link ─────────────────────────── */

.k-sec { margin: 32px 0 0; }
.k-sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.k-sec-title {
  font-family: var(--k-serif, Georgia, serif);
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--k-ink); margin: 0;
}
.k-sec-title sup { font-size: 14px; font-weight: 600; color: var(--ui-muted); margin-left: 4px; }
.k-sec-link {
  font-size: 12.5px; font-weight: 700; color: var(--ui-brass);
  text-decoration: none; white-space: nowrap;
}
.k-sec-link:hover { text-decoration: underline; }

/* ── Brand face rail (Your brands) ───────────────────────────────────── */

.k-face-rail {
  display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none;
  background: var(--ui-surface); border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-lg); padding: 18px 20px;
  box-shadow: var(--k-shadow-card);
}
.k-face-rail::-webkit-scrollbar { display: none; }
.k-face-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-decoration: none; min-width: 64px;
}
.k-face-item .k-face {
  border: 2px solid transparent;
  background: var(--ui-surface);
  border-radius: 50%;
  padding: 2px;
}
.k-face-item .k-face--fill-wrap { border-radius: 50%; }
.k-face-name {
  font-size: 12px; font-weight: 500; color: var(--ui-ink-2);
  max-width: 72px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-align: center;
}
.k-face-item:hover .k-face-name { color: var(--ui-ink); }
.k-face-add {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px dashed var(--ui-line-strong);
  background: var(--ui-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--ui-muted);
}
.k-face-add svg { width: 20px; height: 20px; }

/* ── Featured tinted cards ───────────────────────────────────────────── */

.k-feat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.k-feat {
  border-radius: var(--ui-r-lg); overflow: hidden;
  border: 1px solid var(--ui-line); background: var(--ui-surface);
  text-decoration: none; display: flex; flex-direction: column;
  box-shadow: var(--k-shadow-card);
  transition: transform 160ms ease;
}
.k-feat:hover { transform: translateY(-2px); }
.k-feat-hero {
  height: 104px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.k-feat-hero .k-feat-letter {
  font-family: var(--k-serif, Georgia, serif); font-size: 48px;
  font-weight: 600; line-height: 1;
}
.k-feat-hero--sand { background: var(--k-sand-bg); color: var(--k-sand-fg); }
.k-feat-hero--sage { background: var(--k-sage-bg); color: var(--k-sage-fg); }
.k-feat-hero--rose { background: var(--k-rose-bg); color: var(--k-rose-fg); }
.k-feat-hero--moss { background: var(--k-moss-bg); color: var(--k-moss-fg); }
.k-feat-hero--iris { background: var(--k-iris-bg); color: var(--k-iris-fg); }
.k-feat-hero--plum { background: var(--k-plum-bg); color: var(--k-plum-fg); }
.k-feat-pill {
  position: absolute; top: 10px; left: 10px;
  font-size: 10.5px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: var(--ui-surface);
  color: var(--ui-ink-2); box-shadow: var(--k-shadow-card);
}
.k-feat-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.k-feat-name {
  font-family: var(--k-serif, Georgia, serif); font-size: 19px;
  font-weight: 600; color: var(--ui-ink); line-height: 1.15;
}
.k-feat-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: var(--ui-muted);
}
.k-feat-meta b { color: var(--ui-brass-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Brand connect cards (Top by BES grid) ───────────────────────────── */

.k-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.k-brand-card {
  background: var(--ui-surface); border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--k-shadow-card);
}
.k-brand-card-top { display: flex; gap: 12px; align-items: center; }
.k-brand-card-name {
  font-family: var(--k-serif, Georgia, serif); font-size: 18px;
  font-weight: 600; color: var(--ui-ink); line-height: 1.15;
  display: block; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.k-brand-card-ind { font-size: 12px; color: var(--ui-muted); display: block; margin-top: 2px; }
.k-brand-card-tag {
  font-size: 13px; color: var(--ui-ink-2); line-height: 1.5;
  margin: 0; min-height: 39px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.k-brand-card-stats {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ui-ink-2);
}
.k-brand-card-stats .k-bes {
  padding: 2px 8px; font-size: 11.5px; font-weight: 700;
  background: var(--ui-brass-soft); border-color: var(--ui-brass-line);
}
.k-brand-card-stats .k-bes svg { width: 10px; height: 10px; }
.k-brand-card .k-btn { width: 100%; margin-top: auto; }
.k-connected {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; border-radius: var(--ui-r-pill);
  background: var(--ui-dark); color: var(--ui-light);
  font-size: 13.5px; font-weight: 700; margin-top: auto;
}
.k-connected svg { width: 14px; height: 14px; }

/* ── Companion rail cards: quick links + ranked list ─────────────────── */

.k-rail-card {
  background: var(--ui-surface); border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-lg); padding: 18px 20px;
  box-shadow: var(--k-shadow-card);
}
.k-link-row {
  display: flex; gap: 10px; padding: 9px 0;
  text-decoration: none; align-items: baseline;
}
.k-link-row + .k-link-row { border-top: 1px solid var(--ui-line); }
.k-link-row b {
  display: block; font-size: 14px; font-weight: 700; color: var(--ui-ink);
}
.k-link-row span { display: block; font-size: 12.5px; color: var(--ui-muted); margin-top: 1px; }
.k-link-row .k-link-arrow {
  margin-left: auto; color: var(--ui-brass); font-size: 15px; align-self: center;
}
.k-rank-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  text-decoration: none;
}
.k-rank-row + .k-rank-row { border-top: 1px solid var(--ui-line); }
.k-rank-n { font-size: 12px; font-weight: 700; color: var(--ui-muted); width: 14px; text-align: right; flex-shrink: 0; }
.k-rank-name { font-size: 13.5px; font-weight: 700; color: var(--ui-ink); display: block; line-height: 1.2; }
.k-rank-ind { font-size: 11.5px; color: var(--ui-muted); display: block; }
.k-rank-bes { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ui-brass-ink); font-variant-numeric: tabular-nums; }

/* ── Stage tabs (Browse by stage) ────────────────────────────────────── */

.k-stage-seg {
  display: inline-flex; background: var(--ui-surface-soft);
  border-radius: var(--ui-r-pill); padding: 4px; margin-bottom: 16px;
}
.k-stage-btn {
  min-height: 38px; padding: 0 18px; border-radius: var(--ui-r-pill);
  border: none; background: transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 600; font-family: inherit; color: var(--ui-ink-2);
}
.k-stage-btn.is-on { background: var(--ui-surface); color: var(--ui-ink); box-shadow: var(--k-shadow-card); font-weight: 700; }

/* ── Search pill: magnifier left, round arrow submit ─────────────────── */

.k-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--ui-surface); border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-r-pill);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--k-shadow-card);
  max-width: 640px;
}
.k-search > svg { width: 18px; height: 18px; color: var(--ui-muted); flex-shrink: 0; }
.k-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 15px; color: var(--ui-ink);
}
.k-search input::placeholder { color: var(--ui-muted); }
.k-search-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--ui-dark); color: var(--ui-light);
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.k-search-btn svg { width: 18px; height: 18px; }
.k-search-btn:hover { opacity: 0.88; }

/* ── Filter chips with counts ────────────────────────────────────────── */

.k-chip .k-chip-count {
  margin-left: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--ui-muted);
}
.k-chip.is-on .k-chip-count { color: inherit; opacity: 0.7; }

/* ── Section heads: serif title + quiet link ─────────────────────────── */

.k-sec { margin: 32px 0 0; }
.k-sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.k-sec-title {
  font-family: var(--k-serif, Georgia, serif);
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--k-ink); margin: 0;
}
.k-sec-title .k-sec-count { font-size: 15px; font-weight: 500; color: var(--ui-muted); margin-left: 4px; }
.k-sec-link {
  font-size: 12.5px; font-weight: 700; color: var(--ui-brass);
  text-decoration: none; white-space: nowrap;
}
.k-sec-link:hover { text-decoration: underline; }

/* ── Brand face rail (Your brands) ───────────────────────────────────── */

.k-face-rail {
  display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none;
  background: var(--ui-surface); border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-lg); padding: 18px 20px;
  box-shadow: var(--k-shadow-card);
}
.k-face-rail::-webkit-scrollbar { display: none; }
.k-face-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-decoration: none; min-width: 64px;
}
.k-face-item .k-face {
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 2px;
}
.k-face-name {
  font-size: 12px; font-weight: 500; color: var(--ui-ink-2);
  max-width: 72px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-align: center;
}
.k-face-item:hover .k-face-name { color: var(--ui-ink); }
.k-face-add {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px dashed var(--ui-line-strong);
  background: var(--ui-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--ui-muted);
}
.k-face-add svg { width: 20px; height: 20px; }

/* ── Featured tinted cards ───────────────────────────────────────────── */

.k-feat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.k-feat {
  border-radius: var(--ui-r-lg); overflow: hidden;
  border: 1px solid var(--ui-line); background: var(--ui-surface);
  text-decoration: none; display: flex; flex-direction: column;
  box-shadow: var(--k-shadow-card);
  transition: transform 160ms ease;
}
.k-feat:hover { transform: translateY(-2px); }
.k-feat-hero {
  height: 104px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.k-feat-hero .k-feat-letter {
  font-family: var(--k-serif, Georgia, serif); font-size: 48px;
  font-weight: 600; line-height: 1;
}
.k-feat-hero--sand { background: var(--k-sand-bg); color: var(--k-sand-fg); }
.k-feat-hero--sage { background: var(--k-sage-bg); color: var(--k-sage-fg); }
.k-feat-hero--rose { background: var(--k-rose-bg); color: var(--k-rose-fg); }
.k-feat-hero--moss { background: var(--k-moss-bg); color: var(--k-moss-fg); }
.k-feat-hero--iris { background: var(--k-iris-bg); color: var(--k-iris-fg); }
.k-feat-hero--plum { background: var(--k-plum-bg); color: var(--k-plum-fg); }
.k-feat-pill {
  position: absolute; top: 10px; left: 10px;
  font-size: 10.5px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: var(--ui-surface);
  color: var(--ui-ink-2); box-shadow: var(--k-shadow-card);
}
.k-feat-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.k-feat-name {
  font-family: var(--k-serif, Georgia, serif); font-size: 19px;
  font-weight: 600; color: var(--ui-ink); line-height: 1.15;
}
.k-feat-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: var(--ui-muted);
}
.k-feat-meta b { color: var(--ui-brass-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Brand connect cards (Top by BES grid) ───────────────────────────── */

.k-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.k-brand-card {
  background: var(--ui-surface); border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--k-shadow-card);
}
.k-brand-card-top { display: flex; gap: 12px; align-items: center; }
.k-brand-card-name {
  font-family: var(--k-serif, Georgia, serif); font-size: 18px;
  font-weight: 600; color: var(--ui-ink); line-height: 1.15;
  display: block; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.k-brand-card-ind { font-size: 12px; color: var(--ui-muted); display: block; margin-top: 2px; }
.k-brand-card-tag {
  font-size: 13px; color: var(--ui-ink-2); line-height: 1.5;
  margin: 0; min-height: 39px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.k-brand-card-stats {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ui-ink-2);
}
.k-brand-card-stats .k-bes {
  padding: 2px 8px; font-size: 11.5px; font-weight: 700;
  background: var(--ui-brass-soft); border-color: var(--ui-brass-line);
}
.k-brand-card-stats .k-bes svg { width: 10px; height: 10px; }
.k-brand-card .k-btn { width: 100%; margin-top: auto; }
.k-connected {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; border-radius: var(--ui-r-pill);
  background: var(--ui-dark); color: var(--ui-light);
  font-size: 13.5px; font-weight: 700; margin-top: auto;
}
.k-connected svg { width: 14px; height: 14px; }

/* ── Companion rail cards: quick links + ranked list ─────────────────── */

.k-rail-card {
  background: var(--ui-surface); border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-lg); padding: 18px 20px;
  box-shadow: var(--k-shadow-card);
}
.k-link-row {
  display: flex; gap: 10px; padding: 9px 0;
  text-decoration: none; align-items: baseline;
}
.k-link-row + .k-link-row { border-top: 1px solid var(--ui-line); }
.k-link-row b {
  display: block; font-size: 14px; font-weight: 700; color: var(--ui-ink);
}
.k-link-row span { display: block; font-size: 12.5px; color: var(--ui-muted); margin-top: 1px; }
.k-link-row .k-link-arrow {
  margin-left: auto; color: var(--ui-brass); font-size: 15px; align-self: center;
}
.k-rank-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  text-decoration: none;
}
.k-rank-row + .k-rank-row { border-top: 1px solid var(--ui-line); }
.k-rank-n { font-size: 12px; font-weight: 700; color: var(--ui-muted); width: 14px; text-align: right; flex-shrink: 0; }
.k-rank-name { font-size: 13.5px; font-weight: 700; color: var(--ui-ink); display: block; line-height: 1.2; }
.k-rank-ind { font-size: 11.5px; color: var(--ui-muted); display: block; }
.k-rank-bes { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ui-brass-ink); font-variant-numeric: tabular-nums; }

/* ── Stage tabs (Browse by stage) ────────────────────────────────────── */

.k-stage-seg {
  display: inline-flex; background: var(--ui-surface-soft);
  border-radius: var(--ui-r-pill); padding: 4px; margin-bottom: 16px;
}
.k-stage-btn {
  min-height: 38px; padding: 0 18px; border-radius: var(--ui-r-pill);
  border: none; background: transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 600; font-family: inherit; color: var(--ui-ink-2);
}
.k-stage-btn.is-on { background: var(--ui-surface); color: var(--ui-ink); box-shadow: var(--k-shadow-card); font-weight: 700; }

/* Preferred (personalized) chip — Konyct brass gradient, never purple/blue */
.k-chip.is-preferred {
  background: linear-gradient(135deg, var(--ui-brass-soft) 0%, color-mix(in srgb, var(--ui-brass) 18%, var(--ui-surface)) 100%);
  border-color: var(--ui-brass-line);
  color: var(--ui-brass-ink);
}
.k-chip.is-preferred:hover { border-color: var(--ui-brass); }
.k-chip.is-preferred .k-chip-count { color: var(--ui-brass); opacity: 0.8; }
.k-chip.is-preferred.is-on {
  background: var(--ui-dark); color: var(--ui-light); border-color: var(--ui-dark);
}
.k-chip.is-preferred.is-on .k-chip-count { color: var(--ui-light); opacity: 0.7; }

/* ── Desktop: only the center column scrolls ────────────────────────────
   Side nav + companion rail stay put; the flow is the one scroll surface.
   Mobile (<1024px) keeps normal page scroll (bottom-nav pattern). */
@media (min-width: 1024px) {
  html, body { height: 100%; overflow: hidden; }
  .k-shell {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .k-side {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .k-main {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
  }
  .k-companion {
    position: sticky;
    top: 84px;
  }
}

/* ── Breakpoints: one switch, not five fights ────────────────────────── */

/* <1024px: app parity. No side nav. Bottom nav. Single flow. */
@media (max-width: 1023px) {
  .k-shell { grid-template-columns: 1fr; }
  .k-side { display: none !important; }
  .k-companion { display: none !important; }
  .k-flow { grid-template-columns: minmax(0, 1fr); }
  .k-content { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .k-fab { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* Tablet band (768–1023): app parity but wider flow — still single column */
@media (min-width: 768px) and (max-width: 1023px) {
  .k-flow { max-width: 760px; margin: 0 auto; width: 100%; }
}

/* ≥1024px: desktop web. Side nav + flow + companion. No bottom nav. */
@media (min-width: 1024px) {
  .k-fab { bottom: 28px; right: max(28px, env(safe-area-inset-right)); }
}

/* ═══════════════════════════════════════════════════════════════════════
   CLUBS, PERSPECTIVES & COMPANION RAIL COMPONENTS
   Single source of truth matching Konyct Design Guidelines v2 mockups.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Topbar Search ──────────────────────────────────────────────────── */
.k-topbar-search {
  flex: 0 1 480px;
  max-width: 480px;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius-pill);
  padding: 8px 16px;
  box-shadow: 0 1px 3px rgba(20,20,18,0.03);
}
.k-topbar-search svg {
  width: 16px; height: 16px;
  color: var(--k-muted);
  flex-shrink: 0;
}
.k-topbar-search .k-topbar-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none;
  font-family: var(--k-font-body);
  font-size: 13.5px !important;
  color: var(--k-ink);
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
}
.k-topbar-search-input::placeholder {
  color: var(--k-muted);
}

/* ── Club Detail Hero & Identity ────────────────────────────────────── */
.k-club-hero {
  margin-bottom: 24px;
}
.k-club-ident {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.k-club-avatar-box {
  width: 64px;
  height: 64px;
  border-radius: var(--k-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--k-font-display);
  font-size: 32px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: var(--k-shadow-card);
}
.k-club-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--k-muted);
  margin-top: 6px;
}
.k-club-meta-row strong {
  color: var(--k-ink);
  font-weight: 600;
}
.k-club-meta-row a.k-leaderboard-link {
  color: var(--k-brass-ink);
  font-weight: 600;
  text-decoration: none;
}
.k-club-meta-row a.k-leaderboard-link:hover {
  text-decoration: underline;
}
.k-club-belief-quote {
  font-family: var(--k-font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--k-ink);
  margin: 0 0 18px;
}
.k-club-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.k-club-actions-row .k-btn {
  min-height: 40px;
}

/* ── Community Response Banner ──────────────────────────────────────── */
.k-community-response-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: var(--k-radius-md);
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  box-shadow: var(--k-shadow-card);
  margin-bottom: 24px;
}
.k-cr-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-muted);
  white-space: nowrap;
}
.k-cr-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--k-sunken);
  overflow: hidden;
}
.k-cr-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--k-brass);
}
.k-cr-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--k-ink);
  white-space: nowrap;
}
.k-cr-votes {
  font-weight: 400;
  color: var(--k-muted);
}

/* ── Clean Tabs ─────────────────────────────────────────────────────── */
.k-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--k-line);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.k-tabs::-webkit-scrollbar { display: none; }
.k-tab-item {
  padding: 12px 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--k-muted);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.k-tab-item:hover {
  color: var(--k-ink);
}
.k-tab-item.is-active {
  color: var(--k-ink);
}
.k-tab-item.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--k-ink);
  border-radius: 2px;
}
.k-tab-count {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}

/* ── Composer Pill Input ────────────────────────────────────────────── */
.k-composer-input-pill {
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius-pill);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--k-shadow-card);
  cursor: pointer;
  margin-bottom: 20px;
  transition: border-color var(--k-dur-fast) var(--k-ease);
}
.k-composer-input-pill:hover {
  border-color: var(--k-brass);
}
.k-composer-input-text {
  font-size: 14px;
  color: var(--k-muted);
}

/* ── Filter Toolbar ─────────────────────────────────────────────────── */
.k-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.k-filter-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius-pill);
  padding: 7px 14px;
  box-shadow: 0 1px 2px rgba(20,20,18,0.03);
}
.k-filter-search svg {
  width: 15px;
  height: 15px;
  color: var(--k-muted);
}
.k-filter-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--k-ink);
}
.k-sort-pills {
  display: inline-flex;
  gap: 6px;
}
.k-sort-pill {
  padding: 5px 12px;
  border-radius: var(--k-radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--k-muted);
  text-decoration: none;
  background: var(--k-sunken);
  border: 1px solid transparent;
  transition: all var(--k-dur-fast) var(--k-ease);
}
.k-sort-pill:hover {
  color: var(--k-ink);
}
.k-sort-pill.is-active {
  background: var(--k-surface);
  color: var(--k-ink);
  border-color: var(--k-line-strong);
  box-shadow: 0 1px 2px rgba(20,20,18,0.04);
}

/* ── Tag Chips Strip ────────────────────────────────────────────────── */
.k-tags-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.k-tag-chip {
  padding: 4px 12px;
  border-radius: var(--k-radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--k-muted);
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  text-decoration: none;
  transition: all var(--k-dur-fast) var(--k-ease);
}
.k-tag-chip:hover {
  border-color: var(--k-line-strong);
  color: var(--k-ink);
}
.k-tag-chip.is-active {
  background: var(--k-inverse-bg);
  color: var(--k-inverse-ink);
  border-color: var(--k-inverse-bg);
}

/* ── Perspective Cards ──────────────────────────────────────────────── */
.k-perspective-card {
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--k-shadow-card);
  margin-bottom: 16px;
  transition: transform var(--k-dur-fast) var(--k-ease);
}
.k-perspective-card:hover {
  transform: translateY(-1px);
}
.k-perspective-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.k-perspective-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.k-perspective-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--k-ink);
  line-height: 1.2;
}
.k-perspective-meta {
  font-size: 12px;
  color: var(--k-muted);
  margin-top: 2px;
}
.k-perspective-type {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
}
.k-type--experience { background: var(--k-sand-bg); color: var(--k-sand-fg); }
.k-type--question { background: var(--k-sage-bg); color: var(--k-sage-fg); }
.k-type--opinion { background: var(--k-iris-bg); color: var(--k-iris-fg); }
.k-type--observation { background: var(--k-moss-bg); color: var(--k-moss-fg); }

.k-perspective-title {
  font-family: var(--k-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--k-ink);
  margin: 0 0 8px;
  line-height: 1.25;
}
.k-perspective-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--k-ink-2);
  margin: 0 0 16px;
}
.k-perspective-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--k-line);
}
.k-perspective-reactions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.k-reaction-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--k-muted);
  background: var(--k-sunken);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background var(--k-dur-fast) var(--k-ease);
}
.k-reaction-btn:hover {
  background: var(--k-surface);
  border-color: var(--k-line-strong);
  color: var(--k-ink);
}
.k-reaction-btn.is-reacted {
  background: var(--k-brass-tint);
  color: var(--k-brass-ink);
  border-color: var(--k-brass-line);
}
.k-perspective-replies {
  font-size: 12.5px;
  color: var(--k-muted);
}

/* ── Clubs & Circles 2-Column Grid ──────────────────────────────────── */
.k-club-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 680px) {
  .k-club-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.k-circle-card {
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius-lg);
  padding: 22px;
  box-shadow: var(--k-shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--k-dur-fast) var(--k-ease);
  text-decoration: none;
  color: inherit;
}
.k-circle-card:hover {
  transform: translateY(-2px);
}
.k-circle-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.k-circle-card-ident {
  display: flex;
  align-items: center;
  gap: 10px;
}
.k-circle-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--k-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--k-font-display);
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.k-circle-label {
  font-size: 12px;
  color: var(--k-muted);
  font-weight: 500;
}
.k-pill-new {
  background: var(--k-brass-tint);
  color: var(--k-brass-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.k-circle-title {
  font-family: var(--k-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--k-ink);
  line-height: 1.2;
  margin: 0 0 8px;
}
.k-circle-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--k-ink-2);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.k-circle-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}
.k-avatar-stack {
  display: flex;
  align-items: center;
}
.k-stack-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--k-surface);
  margin-left: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--k-font-display);
}
.k-stack-avatar:first-child {
  margin-left: 0;
}
.k-circle-members {
  font-size: 12px;
  color: var(--k-muted);
  margin-left: 8px;
}
.k-btn-joined {
  background: var(--k-brass-tint) !important;
  color: var(--k-brass-ink) !important;
  border-color: var(--k-brass-line) !important;
  font-weight: 600 !important;
}

/* ── Curate Banner ──────────────────────────────────────────────────── */
.k-curate-banner {
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--k-shadow-card);
  margin-bottom: 20px;
}
.k-curate-star {
  color: var(--k-brass);
  font-size: 18px;
  flex-shrink: 0;
}
.k-curate-info {
  flex: 1;
  min-width: 0;
}
.k-curate-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--k-ink);
  margin: 0 0 2px;
}
.k-curate-desc {
  font-size: 12.5px;
  color: var(--k-muted);
  margin: 0;
}

/* ── Right Rail: Where People Gather ────────────────────────────────── */
.k-distribution-item {
  margin-bottom: 12px;
}
.k-distribution-item:last-child {
  margin-bottom: 0;
}
.k-distribution-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--k-ink-2);
  margin-bottom: 6px;
}
.k-distribution-track {
  height: 6px;
  border-radius: 999px;
  background: var(--k-sunken);
  overflow: hidden;
}
.k-distribution-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--k-brass);
}

/* ── Right Rail: Dark Obsidian Cards ────────────────────────────────── */
.k-dark-card {
  background: var(--k-inverse-bg);
  color: var(--k-inverse-ink);
  border-radius: var(--k-radius-lg);
  padding: 24px;
  box-shadow: var(--k-shadow-card);
}
.k-dark-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-brass);
  margin-bottom: 12px;
}
.k-dark-text {
  font-size: 13.5px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 12px;
}
.k-dark-sub {
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.65;
  margin: 0;
}

/* ── Right Rail: Club Badge Card ────────────────────────────────────── */
.k-club-badge-card {
  background: var(--k-inverse-bg);
  color: var(--k-inverse-ink);
  border-radius: var(--k-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--k-shadow-card);
}
.k-badge-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-brass);
  margin-bottom: 16px;
}
.k-badge-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.k-badge-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.k-badge-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #262522;
  border: 1.5px solid var(--k-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: var(--k-font-display);
  color: #fff;
}
.k-badge-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.k-badge-club {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 2px;
}
.k-badge-rank-num {
  font-family: var(--k-font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--k-brass);
  line-height: 1;
  text-align: right;
}
.k-badge-rank-label {
  font-size: 11px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  margin-top: 2px;
}
.k-badge-footer {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.65;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  margin: 0;
}

/* ── Right Rail: Top Contributors ───────────────────────────────────── */
.k-contributor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
}
.k-contributor-row + .k-contributor-row {
  border-top: 1px solid var(--k-line);
}
.k-contributor-info {
  flex: 1;
  min-width: 0;
}
.k-contributor-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--k-ink);
  line-height: 1.2;
}
.k-contributor-count {
  font-size: 12px;
  color: var(--k-muted);
  margin-top: 2px;
}
.k-contributor-bes {
  font-size: 13px;
  font-weight: 700;
  color: var(--k-brass-ink);
  font-variant-numeric: tabular-nums;
}

/* ── Club Detail: cl-post styling (matches k-perspective-card & Mockup 4) ── */
.cl-post {
  background: var(--k-surface) !important;
  border: 1px solid var(--k-line) !important;
  border-radius: var(--k-radius-lg, 24px) !important;
  padding: 22px 24px !important;
  box-shadow: var(--k-shadow-card) !important;
  margin-bottom: 20px !important;
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform var(--k-dur-fast) var(--k-ease), border-color var(--k-dur-fast) var(--k-ease) !important;
}
.cl-post:hover {
  transform: translateY(-1px) !important;
  border-color: var(--k-line-hover) !important;
}
.cl-post .cl-post-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}
.cl-post .cl-face {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: var(--k-sand-bg) !important;
  color: var(--k-sand-fg) !important;
  flex-shrink: 0 !important;
}
.cl-post .cl-post-author {
  flex: 1 !important;
  margin-left: 10px !important;
}
.cl-post .cl-post-name {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--k-ink) !important;
  line-height: 1.2 !important;
}
.cl-post .cl-post-handle {
  font-size: 12px !important;
  color: var(--k-muted) !important;
  margin-top: 2px !important;
}
.cl-post .cl-type {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  text-transform: capitalize !important;
  background: var(--k-sand-bg) !important;
  color: var(--k-sand-fg) !important;
}
.cl-post .cl-post-title {
  font-family: var(--k-font-display) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--k-ink) !important;
  line-height: 1.25 !important;
  margin: 10px 0 8px !important;
}
.cl-post .cl-post-body {
  font-family: var(--k-font-text) !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  color: var(--k-ink-soft) !important;
  margin: 0 0 14px 0 !important;
}
.cl-post .context-votes {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--k-line) !important;
}
.cl-post .context-votes .vote-btn {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--k-line) !important;
  background: transparent !important;
  color: var(--k-ink-soft) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all var(--k-dur-fast) var(--k-ease) !important;
}
.cl-post .context-votes .vote-btn:hover {
  background: var(--k-sand-bg) !important;
  border-color: var(--k-line-hover) !important;
}
.cl-post .cl-post-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  font-size: 12px !important;
  color: var(--k-muted) !important;
  margin-top: 10px !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   LEGACY ALIASES — old shell pages use these class names. Map them to the
   k-* system so every page shares one sidebar + nav look. Single source.
   ═══════════════════════════════════════════════════════════════════════ */
.side-nav { /* alias for .k-side */ }
.side-nav { width: var(--ui-nav-w, 264px); position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh; z-index: 30; display: flex; flex-direction: column; padding: 20px 14px calc(20px + env(safe-area-inset-bottom)); background: var(--ui-bg, var(--bg)); border-right: 1px solid var(--ui-line, var(--border)); overflow: visible; }
.side-logo { display: flex; align-items: center; padding: 4px 10px 22px; color: var(--ui-ink, var(--text)); text-decoration: none; }
.side-logo svg { width: 104px; height: auto; display: block; }
.side-nav-items { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--ui-r-sm, 12px); font-size: 13.5px; font-weight: 600; color: var(--ui-ink-2, var(--text-secondary)); text-decoration: none !important; transition: background 160ms ease, color 160ms ease; cursor: pointer; border: none; background: transparent; width: 100%; text-align: left; font-family: inherit; }
.nav-item:hover { background: var(--ui-surface-soft, var(--surface-muted)); color: var(--ui-ink, var(--text)); }
.nav-item svg { width: 17px; height: 17px; opacity: 0.65; flex-shrink: 0; }
.nav-item-active { background: var(--ui-surface-soft, var(--surface-muted)); color: var(--ui-ink, var(--text)); font-weight: 700; box-shadow: inset 2px 0 0 var(--ui-brass, #a3794a); }
.nav-item-active:hover { background: var(--ui-surface-soft, var(--surface-muted)); color: var(--ui-ink, var(--text)); }
.nav-item-active svg { opacity: 1; color: var(--ui-brass, #a3794a); }
.nav-item-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--ui-brass, #a3794a); }
.side-nav-head { padding: 14px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-muted, var(--muted)); }
.side-foot { padding-top: 12px; border-top: 1px solid var(--ui-line, var(--border)); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--ui-r-sm, 12px); text-decoration: none; color: var(--ui-ink, var(--text)); }
.side-user:hover { background: var(--ui-surface-soft, var(--surface-muted)); }
.side-user-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ui-surface-soft, var(--surface-muted)); color: var(--ui-ink, var(--text)); font-weight: 700; font-size: 13px; overflow: hidden; flex-shrink: 0; }
.side-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-user-name { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.side-user-meta { font-size: 12px; color: var(--ui-muted, var(--muted)); }
.side-user-chevron { width: 14px; height: 14px; color: var(--ui-muted, var(--muted)); flex-shrink: 0; }
.side-user-handle { font-size: 11.5px; color: var(--ui-muted, var(--muted)); margin-top: 1px; }
.side-user-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.side-user-name { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.side-user-section { padding-top: 12px; border-top: 1px solid var(--ui-line, var(--border)); }
