/* ==========================================================================
   catknows. — Component Library
   Warm & Friendly Design System

   Consumes tokens from tokens.css exclusively — no hardcoded values.

   Naming: BEM-inspired with ck- prefix
     Block:    ck-btn, ck-card, ck-badge
     Modifier: ck-btn--primary, ck-btn--sm
     Element:  ck-navbar__link

   Load order: tokens.css → components.css → default.css → page <style>
   ========================================================================== */


/* ==========================================================================
   0. NAVBAR
   ========================================================================== */

.ck-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-4);
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-sizing: border-box;
}

.ck-navbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-width: 0;
}

.ck-navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.ck-navbar__logo:hover {
  color: var(--color-text-primary);
}

.ck-navbar__logo-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.ck-navbar__links {
  display: flex;
  align-items: center;
  gap: var(--navbar-link-gap);
}

.ck-navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--navbar-link-padding);
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--navbar-link-color);
  text-decoration: none;
  border-radius: var(--navbar-link-radius);
  transition: background var(--motion-fast), color var(--motion-fast);
  white-space: nowrap;
}

.ck-navbar__link:hover {
  background: var(--navbar-link-hover-bg);
  color: var(--color-text-primary);
}

.ck-navbar__link.active {
  color: var(--navbar-link-active-color);
  background: rgba(var(--brand-primary-rgb), 0.1);
}

.ck-navbar__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ck-navbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.ck-navbar__community-select {
  height: 34px;
  padding: 4px 12px;
  font-size: var(--font-size-small);
  font-weight: 500;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  max-width: 200px;
  cursor: pointer;
  transition: border-color var(--motion-fast);
}

.ck-navbar__community-select:hover {
  border-color: var(--color-text-disabled);
}

.ck-navbar__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background var(--motion-fast), color var(--motion-fast);
}

.ck-navbar__icon-link:hover {
  background: var(--navbar-link-hover-bg);
  color: var(--color-text-primary);
}

.ck-navbar__icon-link.active {
  color: var(--navbar-link-active-color);
  background: rgba(var(--brand-primary-rgb), 0.1);
}

.ck-navbar__icon-link svg {
  width: 18px;
  height: 18px;
}


/* ==========================================================================
   0b. PAGE TOOLBAR
   ========================================================================== */

.ck-page-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-small);
  flex-wrap: wrap;
  min-height: 40px;
  box-sizing: border-box;
}

.ck-page-toolbar__separator {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  flex-shrink: 0;
}

.ck-page-toolbar__label {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  white-space: nowrap;
}


/* ==========================================================================
   1. BUTTONS
   ========================================================================== */

.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--btn-height-default);
  padding: var(--btn-padding-default);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--motion-fast), border-color var(--motion-fast),
              box-shadow var(--motion-fast), opacity var(--motion-fast);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  box-sizing: border-box;
}

.ck-btn:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-text-disabled);
  box-shadow: var(--shadow-sm);
}

.ck-btn:active {
  opacity: 0.85;
}

.ck-btn:disabled,
.ck-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* -- Primary: brand-colored, white text -- */
.ck-btn--primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.ck-btn--primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  box-shadow: 0 2px 8px rgba(var(--brand-primary-rgb), 0.3);
}
.ck-btn--primary:active {
  background: var(--brand-primary-active);
  border-color: var(--brand-primary-active);
  opacity: 1;
}

/* -- Secondary: outlined / ghost -- */
.ck-btn--secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}
.ck-btn--secondary:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-text-disabled);
  color: var(--color-text-primary);
}

/* -- Danger: destructive action -- */
.ck-btn--danger {
  background: var(--color-error);
  border-color: var(--color-error);
  color: #fff;
}
.ck-btn--danger:hover {
  opacity: 0.9;
}

/* -- Size: small -- */
.ck-btn--sm {
  height: var(--btn-height-small);
  padding: var(--btn-padding-small);
  font-size: var(--font-size-small);
}

/* -- Size: extra-small -- */
.ck-btn--xs {
  height: var(--btn-height-xs);
  padding: var(--btn-padding-xs);
  font-size: var(--font-size-small);
  border-radius: 6px;
}


/* ==========================================================================
   2. CARDS
   ========================================================================== */

.ck-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}

/* -- Interactive: lifts on hover -- */
.ck-card--interactive {
  cursor: pointer;
  transition: box-shadow var(--motion-base), border-color var(--motion-base),
              transform var(--motion-base);
}
.ck-card--interactive:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-text-disabled);
  transform: translateY(-1px);
}
.ck-card--interactive:active {
  border-color: var(--brand-primary);
  transform: translateY(0);
}


/* ==========================================================================
   3. BADGES
   ========================================================================== */

.ck-badge {
  display: inline-block;
  padding: 3px var(--space-3);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  /* Default: neutral muted */
  background: rgba(156, 163, 175, 0.15);
  color: var(--color-text-secondary);
}

.ck-badge--success {
  background: rgba(var(--color-success-rgb), 0.15);
  color: var(--color-success);
}

.ck-badge--warning {
  background: rgba(var(--color-warning-rgb), 0.15);
  color: var(--color-warning);
}

.ck-badge--error {
  background: rgba(var(--color-error-rgb), 0.15);
  color: var(--color-error);
}

.ck-badge--info {
  background: rgba(var(--color-info-rgb), 0.15);
  color: var(--color-info);
}


/* ==========================================================================
   4. TABLES
   ========================================================================== */

.ck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-body);
}

.ck-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  height: var(--table-header-height);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-disabled);
  border-bottom: 1px solid var(--table-border);
  box-sizing: border-box;
}

.ck-table td {
  padding: var(--space-3) var(--space-4);
  height: var(--table-row-height);
  border-bottom: 1px solid var(--table-border);
  box-sizing: border-box;
}

.ck-table tbody tr:hover td {
  background: rgba(var(--brand-primary-rgb), 0.04);
}


/* ==========================================================================
   5. INPUTS
   ========================================================================== */

.ck-input {
  display: block;
  width: 100%;
  height: var(--input-height);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  border: 1px solid var(--input-border-default);
  border-radius: var(--input-radius);
  outline: none;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  box-sizing: border-box;
}

.ck-input::placeholder {
  color: var(--color-text-disabled);
}

.ck-input:hover {
  border-color: var(--color-text-disabled);
}

.ck-input:focus {
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.15);
}

.ck-input--error {
  border-color: var(--input-border-error);
}

/* -- Select dropdown -- */
.ck-select {
  display: inline-flex;
  height: var(--input-height);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  border: 1px solid var(--input-border-default);
  border-radius: var(--input-radius);
  outline: none;
  cursor: pointer;
  transition: border-color var(--motion-fast);
  box-sizing: border-box;
}

.ck-select:hover {
  border-color: var(--color-text-disabled);
}

.ck-select:focus {
  border-color: var(--input-border-focus);
}

/* -- Checkbox -- */
.ck-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}


/* ==========================================================================
   6. MODALS (native <dialog>)
   ========================================================================== */

.ck-modal {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--modal-radius);
  padding: var(--modal-padding);
  box-shadow: var(--modal-shadow);
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.ck-modal::backdrop {
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
}


/* ==========================================================================
   7. TOASTS
   ========================================================================== */

.ck-toast {
  position: fixed;
  bottom: 70px;
  right: var(--space-5);
  z-index: 10000;
  max-width: 400px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  word-break: break-word;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.ck-toast--success { border-left-color: var(--color-success); }
.ck-toast--error   { border-left-color: var(--color-error); }
.ck-toast--warning { border-left-color: var(--color-warning); }
.ck-toast--info    { border-left-color: var(--color-info); }


/* ==========================================================================
   8. SPINNER
   ========================================================================== */

.ck-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-text-secondary);
  border-radius: 50%;
  animation: ck-spin 0.7s linear infinite;
}

.ck-spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.ck-spinner--xs {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.ck-spinner--brand {
  border-top-color: var(--brand-primary);
}

@keyframes ck-spin {
  to { transform: rotate(360deg); }
}


/* ==========================================================================
   9. FILTER BUTTONS
   ========================================================================== */

.ck-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color var(--motion-fast), color var(--motion-fast),
              background var(--motion-fast);
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
}

.ck-filter-btn:hover {
  border-color: var(--brand-primary);
  color: var(--color-text-primary);
  background: rgba(var(--brand-primary-rgb), 0.05);
}

.ck-filter-btn--active,
.ck-filter-btn.active {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), 0.1);
  font-weight: var(--font-weight-semibold);
}


/* ==========================================================================
   10. WALKTHROUGH (Onboarding Tour)
   ========================================================================== */

.ck-wt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: transparent;
}

.ck-wt-spotlight {
  position: fixed;
  z-index: 10002;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.ck-wt-tooltip {
  position: fixed;
  z-index: 10003;
  width: 340px;
  max-width: calc(100vw - 16px);
  padding: var(--space-5);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--color-text-primary);
  box-sizing: border-box;
}

.ck-wt-tooltip__title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.ck-wt-tooltip__body {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-4);
}

.ck-wt-tooltip__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ck-wt-tooltip__progress {
  font-size: var(--font-size-small);
  color: var(--color-text-disabled);
}

.ck-wt-tooltip__actions {
  display: flex;
  gap: var(--space-2);
}


/* ==========================================================================
   10b. FIRST-VISIT BANNER (one-line page intro)
   ========================================================================== */

.ck-onboard-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  background: rgba(var(--brand-primary-rgb), 0.08);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-base);
  animation: ck-banner-in 0.3s ease;
}

.ck-onboard-banner--hiding {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes ck-banner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ck-onboard-banner__text {
  flex: 1;
}

.ck-onboard-banner__tour {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}

.ck-onboard-banner__tour:hover {
  text-decoration: underline;
}

.ck-onboard-banner__close {
  background: none;
  border: none;
  color: var(--color-text-disabled);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ck-onboard-banner__close:hover {
  color: var(--color-text-primary);
  background: rgba(var(--brand-primary-rgb), 0.1);
}


/* ==========================================================================
   10c. CONTEXTUAL HINTS (one-time inline tips)
   ========================================================================== */

.ck-hint {
  position: fixed;
  z-index: 9999;
  max-width: 280px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  animation: ck-hint-in 0.3s ease;
}

.ck-hint--hiding {
  opacity: 0;
  transition: opacity 0.25s ease;
}

@keyframes ck-hint-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.ck-hint__text {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-base);
}

.ck-hint__close {
  background: none;
  border: none;
  color: var(--color-text-disabled);
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}

.ck-hint__close:hover {
  color: var(--color-text-primary);
}


/* ==========================================================================
   11. HELP TOOLTIPS (info icons with hover tips)
   ========================================================================== */

.ck-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--color-text-secondary);
  color: var(--color-text-secondary);
  font-size: 0.6em;
  font-weight: 600;
  cursor: default;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  transition: border-color 0.15s, color 0.15s;
  font-family: var(--font-body, inherit);
  line-height: 1;
}

.ck-help-icon:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.ck-help-icon .ck-help-tip {
  display: none;
  position: fixed;
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s, 6px);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: normal;
  white-space: normal;
  max-width: 280px;
  width: max-content;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  line-height: 1.4;
}


/* ==========================================================================
   TABS
   ========================================================================== */

.ck-tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
}

.ck-tab {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.ck-tab:hover {
  color: var(--color-text-primary);
}

.ck-tab--active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

/* Tab content panels */
.ck-tab-panel {
  display: none;
}

.ck-tab-panel--active {
  display: block;
}


/* ==========================================================================
   PROFILE HEADER
   ========================================================================== */

.ck-profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.ck-profile-header__avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.ck-profile-header__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  font-size: 18px;
  color: #fff;
  cursor: default;
}

.ck-profile-header__info {
  min-width: 0;
  flex: 1;
}

.ck-profile-header__name {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  line-height: 1.3;
}

.ck-profile-header__meta {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.ck-profile-header__stats {
  font-size: var(--font-size-small);
  color: var(--color-text-disabled);
  margin-top: 4px;
}

.ck-profile-header__communities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.ck-community-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(var(--brand-primary-rgb), 0.12);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.25);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}

.ck-community-pill:hover {
  background: rgba(var(--brand-primary-rgb), 0.22);
}


/* ==========================================================================
   HEATMAP TOGGLE
   ========================================================================== */

.ck-heatmap-toggle {
  display: inline-flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
}

.ck-heatmap-toggle__btn {
  padding: 3px 10px;
  font-size: 11px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ck-heatmap-toggle__btn--active {
  background: rgba(var(--brand-primary-rgb), 0.15);
  color: var(--brand-primary);
}


/* ==========================================================================
   CONTENT FEED
   ========================================================================== */

.ck-feed-filters {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.ck-feed-chip {
  padding: 3px 10px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ck-feed-chip:hover {
  border-color: var(--color-text-disabled);
}

.ck-feed-chip--active {
  background: rgba(var(--brand-primary-rgb), 0.12);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.ck-feed-item {
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--color-border);
  margin-bottom: var(--space-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-bg-secondary);
}

.ck-feed-item--post {
  border-left-color: var(--color-info);
}

.ck-feed-item--comment {
  border-left-color: var(--color-success);
}

.ck-feed-item--liked {
  border-left-color: var(--brand-primary);
}

.ck-feed-item__type {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ck-feed-item__type--post {
  background: rgba(var(--color-info-rgb), 0.15);
  color: var(--color-info);
}

.ck-feed-item__type--comment {
  background: rgba(var(--color-success-rgb), 0.15);
  color: var(--color-success);
}

.ck-feed-item__type--liked {
  background: rgba(var(--brand-primary-rgb), 0.15);
  color: var(--brand-primary);
}

.ck-feed-item__content {
  font-size: var(--font-size-body);
  margin-top: 4px;
  line-height: 1.4;
}

.ck-feed-item__meta {
  font-size: var(--font-size-small);
  color: var(--color-text-disabled);
  margin-top: 4px;
}


/* ==========================================================================
   PROFILE NOTES & ANALYSIS
   ========================================================================== */

.ck-note-item {
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--color-warning);
  margin-bottom: var(--space-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.ck-note-item__date {
  font-size: var(--font-size-small);
  color: var(--color-text-disabled);
}

.ck-note-item__delete {
  position: absolute;
  right: var(--space-2);
  top: var(--space-2);
  background: none;
  border: none;
  color: var(--color-text-disabled);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.ck-note-item__delete:hover {
  color: var(--color-error);
  background: rgba(var(--color-error-rgb), 0.1);
}

.ck-analysis-card {
  padding: var(--space-3);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-bg-secondary);
  margin-bottom: var(--space-3);
}

.ck-analysis-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.ck-analysis-card__body {
  line-height: 1.55;
  font-size: var(--font-size-body);
}
