/* ── Inner page layout ───────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

/* ── Feed ────────────────────────────────────────────────── */
.lb-feed {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ── Card ────────────────────────────────────────────────── */
.lb-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
}
.lb-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
}

/* Header row: sector tag + relative time */
.lb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.lb-sector {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.lb-time {
  font-size: 0.78rem;
  color: var(--dim);
  flex-shrink: 0;
}

/* Frank's reply — his candid feedback note, set apart in a quoted block */
.lb-reply {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.3rem;
}
.lb-reply-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.lb-reply-para {
  font-size: 0.9rem;
  color: var(--muted-2);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.lb-reply-para:last-child { margin-bottom: 0; }

/* Signal chips */
.lb-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}
.lb-signal {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(232,80,58,0.08);
  border: 1px solid rgba(232,80,58,0.18);
  border-radius: 6px;
  padding: 0.22rem 0.55rem;
}

/* ── Score block ─────────────────────────────────────────── */
.lb-scores {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.2rem;
}

/* Score bars — markup reused from index.html / styles mirrored from index.css */
.score-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.score-bar-row:last-child { margin-bottom: 0; }
.score-bar-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-2);
  width: 70px;
  flex-shrink: 0;
}
.score-bar-track {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-bar-fill.animate { width: var(--target-width); }
.score-bar-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* Composite row reads a touch heavier than the three dimensions */
.score-bar-row.is-composite { margin-top: 0.95rem; }
.score-bar-row.is-composite .score-bar-name { color: var(--text); font-weight: 700; }

/* ── Empty / error state ─────────────────────────────────── */
.lb-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.lb-state-mascot {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.lb-state-msg {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .lb-card { padding: 1.3rem 1.2rem; }
  .lb-reply { padding: 1rem 1.1rem; }
  .lb-reply-para { font-size: 0.87rem; }
  .score-bar-name { width: 60px; font-size: 0.76rem; }
}
