:root {
  --lw-bg: #fafafa;
  --lw-ink: #171717;
  --lw-muted: #737373;
  --lw-line: #eaeaea;
  --lw-card: #ffffff;
  --lw-blue: #2563eb;
  --lw-blue-hover: #1d4ed8;
  --lw-green: #16a34a;
  --lw-radius: 12px;
  --lw-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --lw-display: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.lw {
  margin: 0;
  min-height: 100vh;
  background: var(--lw-bg);
  color: var(--lw-ink);
  font-family: var(--lw-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.lw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lw-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

/* board / daily get a wider two-column canvas */
body.lw[data-view="board"] .lw-page,
body.lw[data-view="daily"] .lw-page { max-width: 1040px; }

.lw-layout { display: block; }
.lw-main { min-width: 0; }

@media (min-width: 900px) {
  .lw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
  }
  .lw-main { order: 1; }
  .lw-side { order: 2; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
}

.lw-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.lw-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--lw-ink);
  font-family: var(--lw-display);
  font-weight: 700;
  font-size: 17px;
}

.lw-wordmark img { border-radius: 8px; }

.lw-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.lw-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--lw-muted);
  font-size: 13px;
  font-weight: 600;
}

.lw-nav a.is-on,
.lw-nav a:hover {
  color: var(--lw-ink);
  background: #fff;
  box-shadow: 0 0 0 1px var(--lw-line);
}

.lw-live {
  margin: 0;
  font-size: 12px;
  color: var(--lw-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lw-live__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lw-green);
  animation: lw-pulse 2s ease infinite;
}

@keyframes lw-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lw-flash {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--lw-radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.lw-flash--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.lw-signout {
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  color: var(--lw-muted);
  cursor: pointer;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lw-post-field--email input {
  width: 100%;
  border: 1px solid var(--lw-line);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  margin-top: 12px;
}

.lw-post-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--lw-muted);
}

.lw-post {
  background: var(--lw-card);
  border: 1px solid var(--lw-line);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.lw-hero {
  font-family: var(--lw-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.lw-hero__accent { color: var(--lw-blue); }

.lw-hero__sub {
  margin: 0 0 20px;
  color: var(--lw-muted);
  font-size: 15px;
}

.lw-post-field input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--lw-line);
  background: transparent;
  font: inherit;
  font-size: 18px;
  padding: 12px 4px;
  outline: none;
}

.lw-post-field input:focus { border-bottom-color: var(--lw-blue); }

.lw-post-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.lw-post-cat select {
  border: 1px solid var(--lw-line);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

.lw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.lw-btn--primary {
  background: var(--lw-blue);
  color: #fff;
  margin-left: auto;
}

.lw-btn--primary:hover { background: var(--lw-blue-hover); }

.lw-btn--ghost {
  background: transparent;
  color: var(--lw-muted);
  border: 1px solid var(--lw-line);
}

.lw-error {
  color: #dc2626;
  font-size: 13px;
  margin: 8px 0 0;
}

.lw-daily {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #dbeafe;
  border-radius: var(--lw-radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.lw-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lw-blue);
}

.lw-daily__prompt {
  margin: 0;
  font-family: var(--lw-display);
  font-weight: 700;
  font-size: 17px;
}

.lw-daily__count {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--lw-muted);
}

.lw-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.lw-filter {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--lw-muted);
  background: #fff;
  border: 1px solid var(--lw-line);
}

.lw-filter.is-on {
  color: var(--lw-blue);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.lw-feed__title {
  font-family: var(--lw-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lw-muted);
  margin: 0 0 12px;
}

.lw-empty {
  color: var(--lw-muted);
  text-align: center;
  padding: 32px 16px;
}

.lw-win {
  background: var(--lw-card);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  padding: 16px;
  margin-bottom: 10px;
}

.lw-win__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lw-win__who {
  font-weight: 700;
  color: var(--lw-ink);
  text-decoration: none;
}

.lw-win__meta {
  font-size: 12px;
  color: var(--lw-muted);
}

.lw-win__body {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.45;
}

.lw-win__reacts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.lw-react {
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lw-muted);
}

.lw-react:hover,
.lw-react.is-on {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--lw-blue);
}

.lw-win__share {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--lw-muted);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.lw-win__share:hover { color: var(--lw-blue); }

/* ---- identity / tiers ---- */
.lw-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--lw-line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  color: var(--lw-ink);
  font-size: 13px;
  font-weight: 600;
}

.lw-me:hover { border-color: #bfdbfe; background: #eff6ff; }

.lw-me__avatar,
.lw-win__avatar,
.lw-person__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
  text-decoration: none;
}

.lw-me__streak { color: #ea580c; }

.lw-signout {
  border: 0;
  background: transparent;
  color: var(--lw-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.lw-tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #f3f4f6;
  color: #374151;
  vertical-align: middle;
}

.lw-tier--sm { padding: 0 4px; margin-left: 4px; font-size: 13px; background: transparent; }
.lw-tier--bronze { color: #b45309; }
.lw-tier--silver { color: #6b7280; }
.lw-tier--gold { color: #d97706; }
.lw-tier--platinum { color: #0e7490; }
.lw-tier--diamond { color: #7c3aed; }
.lw-tier:not(.lw-tier--sm).lw-tier--bronze { background: #fef3c7; }
.lw-tier:not(.lw-tier--sm).lw-tier--silver { background: #f3f4f6; }
.lw-tier:not(.lw-tier--sm).lw-tier--gold { background: #fef9c3; }
.lw-tier:not(.lw-tier--sm).lw-tier--platinum { background: #cffafe; }
.lw-tier:not(.lw-tier--sm).lw-tier--diamond { background: #ede9fe; }

/* logged-in strip on the board */
.lw-you {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  text-decoration: none;
  color: var(--lw-ink);
}

.lw-you:hover { border-color: #c4b5fd; }

.lw-you__tier {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #fff;
  border: 1px solid var(--lw-line);
  flex: 0 0 auto;
}

.lw-you__text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lw-you__text strong { font-size: 14px; }
.lw-you__text span { font-size: 13px; color: var(--lw-muted); }

.lw-you__bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-top: 4px;
}

.lw-you__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #7c3aed);
  transition: width .4s ease;
}

.lw-you__go { font-size: 13px; font-weight: 700; color: var(--lw-blue); white-space: nowrap; }

/* community pulse */
.lw-pulse {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--lw-muted);
}

.lw-pulse strong { color: var(--lw-ink); }

/* ---- avatars (premade emoji icons) ---- */
.lw-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45);
}
.lw-avatar--xs { width: 26px; height: 26px; font-size: 14px; }
.lw-avatar--sm { width: 34px; height: 34px; font-size: 18px; }
.lw-avatar--md { width: 42px; height: 42px; font-size: 22px; }
.lw-avatar--lg { width: 64px; height: 64px; font-size: 34px; }
.lw-avatar--ghost { background: #f3f4f6 !important; box-shadow: inset 0 0 0 1px var(--lw-line); }

.lw-avatar-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  padding: 12px;
  margin: 0 0 16px;
  background: var(--lw-card);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
}
.lw-avatar-opt {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--lw-line);
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}
.lw-avatar-opt:hover { border-color: #bfdbfe; background: #eff6ff; }
.lw-avatar-opt.is-on { border-color: var(--lw-blue); background: #eff6ff; box-shadow: 0 0 0 2px #bfdbfe; }

.lw-dashboard__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lw-dashboard__head h1 { margin: 0; }
.lw-dashboard__head .lw-dashboard__sub { margin: 4px 0 0; }
.lw-profile__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lw-profile__head h1 { margin: 0; flex: 1 1 auto; }
.lw-profile__head .lw-profile__counts { width: 100%; margin: 0; }

.lw-linkbtn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--lw-blue);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- sidebar: people celebrating ---- */
.lw-side { margin-bottom: 16px; }

.lw-people__head { margin-bottom: 10px; }
.lw-people__head h2 { font-family: var(--lw-display); font-size: 17px; margin: 0; }
.lw-people__head p { margin: 2px 0 0; font-size: 12px; color: var(--lw-muted); }

.lw-people__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--lw-card);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  display: flex;
  flex-direction: column;
}

.lw-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
}
.lw-person:hover { background: #f8fafc; }
.lw-person__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lw-person__name { font-weight: 700; font-size: 13px; color: var(--lw-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-person__meta { font-size: 11px; color: var(--lw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-person .lw-follow { flex: 0 0 auto; }

.lw-side-card {
  background: var(--lw-card);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  padding: 14px 16px;
}
.lw-side-card h3 { font-family: var(--lw-display); font-size: 15px; margin: 0 0 10px; }
.lw-side-card p { margin: 0 0 12px; font-size: 13px; color: var(--lw-muted); }
.lw-side-card--pulse ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lw-side-card--pulse li { display: flex; flex-direction: column; gap: 2px; }
.lw-side-card--pulse strong { font-family: var(--lw-display); font-size: 20px; line-height: 1; }
.lw-side-card--pulse span { font-size: 11px; color: var(--lw-muted); }
.lw-side-card--join { background: linear-gradient(135deg, #eff6ff, #f5f3ff); border-color: #dbeafe; }
.lw-btn--block { width: 100%; margin-left: 0; }

/* mobile: sidebar becomes a horizontal "stories" row above the composer */
@media (max-width: 899px) {
  .lw-side .lw-people__head p { display: none; }
  .lw-side .lw-people__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lw-side .lw-people__list::-webkit-scrollbar { display: none; }
  .lw-side .lw-person {
    flex: 0 0 96px;
    scroll-snap-align: start;
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 8px 4px;
  }
  .lw-side .lw-person .lw-avatar--md { width: 50px; height: 50px; font-size: 26px; }
  .lw-side .lw-person__text { align-items: center; width: 100%; }
  .lw-side .lw-person__name { font-size: 12px; max-width: 100%; }
  .lw-side .lw-person__meta { display: none; }
  .lw-side .lw-person .lw-follow { font-size: 11px; padding: 4px 8px; }
  .lw-side .lw-side-card--pulse { display: none; }
  .lw-side .lw-side-card--join { display: none; }
}

/* ---- composer tuned for posting Ws ---- */
.lw-compose { display: flex; align-items: center; gap: 12px; }
.lw-compose .lw-post-field { flex: 1; min-width: 0; }
.lw-compose .lw-post-field input { font-size: 19px; font-weight: 600; }
.lw-compose .lw-post-field input::placeholder { font-weight: 500; color: #a3a3a3; }

.lw-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.lw-chip {
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--lw-muted);
  cursor: pointer;
}
.lw-chip:hover { border-color: #bfdbfe; background: #eff6ff; color: var(--lw-blue); }
.lw-counter { margin-left: auto; font-size: 11px; color: #a3a3a3; font-variant-numeric: tabular-nums; }
.lw-counter.is-warn { color: #dc2626; font-weight: 700; }

.lw-btn--w {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
  font-size: 15px;
  padding: 13px 22px;
}
.lw-btn--w:hover { filter: brightness(1.06); background: linear-gradient(135deg, #2563eb, #7c3aed); }

.lw-btn--login {
  background: #fff;
  border: 1px solid var(--lw-line);
  color: var(--lw-ink);
  padding: 8px 14px;
  font-size: 13px;
}
.lw-btn--login:hover { border-color: #bfdbfe; background: #eff6ff; color: var(--lw-blue); }

/* ---- login modal ---- */
.lw-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
  backdrop-filter: blur(2px);
}
.lw-modal[hidden] { display: none; }
body.lw-modal-open { overflow: hidden; }

.lw-modal .lw-login-card { max-width: 400px; text-align: center; overflow: visible; }
.lw-login-card__logo { border-radius: 12px; margin-bottom: 8px; }
.lw-login-card h2 { font-family: var(--lw-display); margin: 0 0 8px; font-size: 24px; }
.lw-login-card__input {
  width: 100%;
  border: 1px solid var(--lw-line);
  border-radius: 999px;
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  margin-bottom: 10px;
}
.lw-login-card__input:focus { outline: none; border-color: var(--lw-blue); box-shadow: 0 0 0 3px #dbeafe; }
.lw-login-card__foot { margin: 14px 0 0; font-size: 12px; color: var(--lw-muted); }

.lw-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--lw-muted);
  cursor: pointer;
}

/* win card header layout */
.lw-win__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lw-win__id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lw-win__head .lw-follow { margin-left: auto; }

.lw-win__share-count {
  background: #eff6ff;
  color: var(--lw-blue);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
}

.lw-win__share svg { vertical-align: -2px; margin-right: 4px; }

/* streak card on dashboard */
.lw-streak-card {
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lw-tier-bg--bronze { background: linear-gradient(135deg, #b45309, #f59e0b); }
.lw-tier-bg--silver { background: linear-gradient(135deg, #4b5563, #9ca3af); }
.lw-tier-bg--gold { background: linear-gradient(135deg, #b45309, #fbbf24); }
.lw-tier-bg--platinum { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.lw-tier-bg--diamond { background: linear-gradient(135deg, #6d28d9, #c084fc); }

.lw-streak-card__main { display: flex; align-items: center; gap: 16px; }
.lw-streak-card__emoji { font-size: 48px; line-height: 1; }
.lw-streak-card .lw-kicker { color: rgba(255,255,255,.75); margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.lw-streak-card h2 { font-family: var(--lw-display); margin: 0; font-size: 30px; color: #fff; }
.lw-streak-card__streak { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.9); }
.lw-streak-card__next { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.lw-streak-card__next small { color: rgba(255,255,255,.8); }
.lw-streak-card .lw-you__bar { background: rgba(255,255,255,.28); }
.lw-streak-card .lw-you__bar i { background: #fff; }

.lw-tier-ladder { display: flex; gap: 6px; }
.lw-tier-ladder__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  font-size: 18px;
  opacity: .55;
}
.lw-tier-ladder__step small { font-size: 10px; font-weight: 700; }
.lw-tier-ladder__step.is-done { opacity: 1; }
.lw-tier-ladder__step.is-now { background: rgba(255,255,255,.32); outline: 2px solid rgba(255,255,255,.7); }

.lw-milestone-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 14px;
  color: #78350f;
}

/* celebration extras */
.lw-celebrate__card { position: relative; overflow: hidden; }
.lw-celebrate__streak {
  margin: -8px 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
  background: #f5f3ff;
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-block;
}

.lw-confetti { position: absolute; inset: 0; pointer-events: none; }
.lw-confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: .9;
  animation: lw-fall 1.8s ease-in forwards;
}
.lw-confetti i:nth-child(1) { left: 6%; background: #2563eb; animation-delay: 0s; }
.lw-confetti i:nth-child(2) { left: 14%; background: #f59e0b; animation-delay: .1s; }
.lw-confetti i:nth-child(3) { left: 22%; background: #16a34a; animation-delay: .05s; }
.lw-confetti i:nth-child(4) { left: 31%; background: #ec4899; animation-delay: .2s; }
.lw-confetti i:nth-child(5) { left: 40%; background: #7c3aed; animation-delay: .15s; }
.lw-confetti i:nth-child(6) { left: 49%; background: #f97316; animation-delay: .3s; }
.lw-confetti i:nth-child(7) { left: 58%; background: #2563eb; animation-delay: .08s; }
.lw-confetti i:nth-child(8) { left: 67%; background: #16a34a; animation-delay: .25s; }
.lw-confetti i:nth-child(9) { left: 76%; background: #f59e0b; animation-delay: .12s; }
.lw-confetti i:nth-child(10) { left: 84%; background: #ec4899; animation-delay: .35s; }
.lw-confetti i:nth-child(11) { left: 92%; background: #7c3aed; animation-delay: .18s; }
.lw-confetti i:nth-child(12) { left: 97%; background: #f97316; animation-delay: .28s; }

@keyframes lw-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}

.lw-post-field input.is-pulse,
input.is-pulse {
  outline: 3px solid #c4b5fd;
  outline-offset: 2px;
  transition: outline .2s;
}

.lw-win__body-link {
  color: inherit;
  text-decoration: none;
}

.lw-win__body-link:hover { color: var(--lw-blue); }

.lw-win__shares {
  font-size: 12px;
  font-weight: 600;
  color: var(--lw-muted);
}

.lw-follow {
  border: 1px solid var(--lw-line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lw-muted);
}

.lw-follow:hover,
.lw-follow.is-on {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--lw-green);
}

.lw-follow--prominent {
  padding: 10px 16px;
  font-size: 14px;
}

.lw-connect {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 0;
}

.lw-connect__profile {
  font-size: 13px;
  font-weight: 600;
  color: var(--lw-blue);
  text-decoration: none;
}

.lw-similar {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--lw-line);
}

.lw-similar h2 {
  font-family: var(--lw-display);
  font-size: 20px;
  margin: 0 0 6px;
}

.lw-similar__hint {
  margin: 0 0 16px;
  color: var(--lw-muted);
  font-size: 14px;
}

.lw-dashboard h1,
.lw-profile__head h1 {
  font-family: var(--lw-display);
  margin: 0 0 4px;
}

.lw-dashboard__sub,
.lw-profile__counts {
  color: var(--lw-muted);
  margin: 0 0 20px;
}

.lw-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.lw-stat-card {
  background: var(--lw-card);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lw-stat-card__emoji { font-size: 24px; }

.lw-stat-card strong {
  font-family: var(--lw-display);
  font-size: 28px;
  line-height: 1;
}

.lw-stat-card span:last-child {
  font-size: 13px;
  color: var(--lw-muted);
}

.lw-chart {
  background: var(--lw-card);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  padding: 16px;
  margin-bottom: 24px;
}

.lw-chart__legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--lw-muted);
  margin-bottom: 12px;
}

.lw-chart__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 4px;
  vertical-align: middle;
}

.lw-chart__dot--react { background: var(--lw-blue); }
.lw-chart__dot--share { background: var(--lw-green); }

.lw-chart__cols {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 160px;
}

.lw-chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.lw-chart__bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 120px;
  width: 100%;
  justify-content: center;
}

.lw-chart__bar {
  width: 12px;
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
}

.lw-chart__bar--react { background: linear-gradient(180deg, #60a5fa, var(--lw-blue)); }
.lw-chart__bar--share { background: linear-gradient(180deg, #4ade80, var(--lw-green)); }

.lw-chart__label {
  font-size: 11px;
  color: var(--lw-muted);
  font-weight: 600;
}

.lw-dashboard__wins h2,
.lw-profile__niches h2,
.lw-profile .lw-feed h2 {
  font-family: var(--lw-display);
  font-size: 20px;
  margin: 0 0 12px;
}

.lw-profile__head {
  margin-bottom: 20px;
}

.lw-profile__niches {
  margin-bottom: 24px;
}

.lw-share-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.lw-share-panel__title {
  font-family: var(--lw-display);
  margin: 0 0 6px;
  font-size: 22px;
}

.lw-share-panel__hint {
  margin: 0 0 16px;
  color: var(--lw-muted);
  font-size: 14px;
}

.lw-share-panel__preview {
  border: 1px solid var(--lw-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.lw-share-panel__preview img {
  display: block;
  width: 100%;
  height: auto;
}

.lw-share-panel__actions,
.lw-celebrate__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lw-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--lw-line);
  background: #fff;
  color: var(--lw-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.lw-share-btn:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--lw-blue);
}

.lw-share-btn--x { background: #0f172a; border-color: #0f172a; color: #fff; }
.lw-share-btn--x:hover { background: #1e293b; border-color: #1e293b; color: #fff; }
.lw-share-btn--fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.lw-share-btn--fb:hover { background: #166fe5; border-color: #166fe5; color: #fff; }
.lw-share-btn--li { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.lw-share-btn--li:hover { background: #095aab; border-color: #095aab; color: #fff; }

.lw-doc {
  background: var(--lw-card);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  padding: 24px;
}

.lw-doc h1 {
  font-family: var(--lw-display);
  margin: 0 0 16px;
}

.lw-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lw-stats li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--lw-line);
}

.lw-footer {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--lw-muted);
}

.lw-footer a { color: var(--lw-muted); }

.lw-celebrate,
.lw-pending {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.lw-celebrate[hidden],
.lw-pending[hidden] { display: none; }

.lw-celebrate__card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.lw-celebrate__emoji { font-size: 48px; margin: 0 0 8px; }

.lw-celebrate__card h2 {
  font-family: var(--lw-display);
  margin: 0 0 12px;
  font-size: 28px;
}

.lw-celebrate__body {
  color: var(--lw-muted);
  margin: 0 0 20px;
  font-size: 16px;
}

.lw-celebrate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lw-detail__prompt {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--lw-line);
}

.lw-detail__prompt h2 {
  font-family: var(--lw-display);
  font-size: 20px;
  margin: 0 0 12px;
}

.lw-post-form--inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lw-post-form--inline input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--lw-line);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
}

@media (min-width: 640px) {
  .lw-dashboard__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .lw-nav { flex-wrap: wrap; }
  .lw-you { flex-wrap: wrap; }
  .lw-chips .lw-chip:nth-child(n+4) { display: none; }
  .lw-compose .lw-avatar { display: none; }
  .lw-btn--w { width: 100%; }
  .lw-you__go { width: 100%; text-align: right; }
  .lw-me__name { display: none; }
  .lw-tier-ladder__step small { display: none; }
  .lw-btn--primary { width: 100%; margin-left: 0; margin-top: 8px; }
  .lw-post-row { flex-direction: column; align-items: stretch; }
}
