/* listenheimer — copied from sites/mootfluence's style.css (Bluesky-app
   look: white/blue, system sans-serif, rounded cards, pill buttons), with the
   rank-hero/pack-panel blocks swapped for a liker grid + a list-build panel. */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f9fa;
  --ink: #0f1419;
  --muted: #536471;
  --faint: #e1e8ed;
  --accent: #1083fe;
  --accent-dark: #0a6fd9;
  --card: #ffffff;
  --up: #00ba7c;
  --down: #f91880;
  --warn: #b8860b;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg-alt); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap {
  max-width: 600px; margin: 0 auto; padding: 0 0 4rem; background: var(--bg);
  min-height: 100vh; border-left: 1px solid var(--faint); border-right: 1px solid var(--faint);
}

header.top {
  position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 0.9rem 1.1rem 1rem; border-bottom: 1px solid var(--faint);
}
header.top .home-link { font-size: 0.8rem; color: var(--muted); }
header.top h1 {
  font-size: 1.35rem; margin: 0.35rem 0 0.3rem; font-weight: 800;
  letter-spacing: -0.01em;
}
header.top p.tag { color: var(--muted); margin: 0; font-size: 0.9rem; }

section { margin: 1.4rem 1.1rem 2rem; }
h2.section-title {
  font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 0.9rem;
}
p.section-note { color: var(--muted); font-size: 0.85rem; margin: -0.4rem 0 0.9rem; }

label { display: block; font-size: 0.82rem; color: var(--muted); margin: 0 0 0.3rem; font-weight: 600; }
input[type="text"], input[type="search"], input[type="number"] {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; padding: 0.65rem 0.85rem;
  border: 1px solid var(--faint); border-radius: 999px; background: var(--card); color: var(--ink);
}
input[type="text"]:focus, input[type="search"]:focus, input[type="number"]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16, 131, 254, 0.15);
}

button {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 700; padding: 0.6rem 1.15rem;
  border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  cursor: pointer; transition: background 0.12s ease, opacity 0.12s ease;
}
button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
button.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--faint); }
button.secondary:hover { background: var(--bg-alt); border-color: var(--faint); }
button:disabled { opacity: 0.4; cursor: default; }

.session-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.5rem; }
.session-row input[type="text"] { width: 14rem; }
.status { font-size: 0.82rem; color: var(--muted); min-height: 1.1em; margin-top: 0.4rem; }
.status.err { color: var(--down); }
.status.ok { color: var(--up); }
.status.warn { color: var(--warn); }
.share-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }

/* --- source post preview --- */
.post-hero {
  border: 1px solid var(--faint); border-radius: 16px; padding: 1rem 1.1rem;
  background: var(--bg-alt); display: flex; gap: 0.7rem; align-items: flex-start;
  margin-bottom: 1rem;
}
.post-hero .avatar { width: 40px; height: 40px; margin-top: 0.1rem; }
.post-hero .body { min-width: 0; flex: 1; }
.post-hero .name { font-weight: 700; }
.post-hero .handle { color: var(--muted); font-size: 0.82rem; margin-left: 0.3rem; }
.post-hero .text { margin-top: 0.25rem; color: var(--ink); font-size: 0.92rem; white-space: pre-wrap; word-break: break-word; }
.like-count {
  text-align: center; font-size: 2rem; font-weight: 800; color: var(--accent);
  margin-bottom: 0.2rem; line-height: 1;
}
.like-count-sub { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }

/* --- liker avatar grid --- */
.liker-grid {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem;
}
.liker-grid a { display: block; }
.liker-grid img.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--faint); object-fit: cover; display: block;
}
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--faint); object-fit: cover; flex: none; }
.empty { color: var(--muted); font-size: 0.88rem; }

/* --- list-build panel --- */
.pack-panel {
  border: 1px solid var(--faint); border-radius: 16px; padding: 1.1rem 1.2rem;
  background: var(--card); box-shadow: 0 1px 3px rgba(15, 20, 25, 0.04);
}
.pack-row { display: flex; gap: 0.6rem; align-items: flex-end; flex-wrap: wrap; margin-top: 0.7rem; }
.pack-row .field { flex: 1; min-width: 8rem; }
.pack-link { font-weight: 700; word-break: break-all; }

footer {
  margin: 2rem 1.1rem 0; padding-top: 1rem; border-top: 1px solid var(--faint);
  color: var(--muted); font-size: 0.8rem;
}
footer code { background: var(--bg-alt); padding: 0.05rem 0.35rem; border-radius: 4px; }
