/* influential25 — copied from sites/socialcredit's Bluesky-app look: white/blue,
   system sans-serif, rounded cards, pill buttons, sticky underline tabs. Same
   class names, plus .board-row.top25 for the cutoff highlight. */

: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 0; 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 0 0.9rem; font-size: 0.9rem; }
nav.tabs { display: flex; gap: 0; margin-top: 0.4rem; font-size: 0.9rem; }
nav.tabs a {
  flex: 1; text-align: center; padding: 0.8rem 0.4rem; color: var(--muted);
  font-weight: 600; border-bottom: 3px solid transparent;
}
nav.tabs a.active, nav.tabs a:hover { color: var(--ink); border-bottom-color: var(--accent); text-decoration: none; }

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;
}

label { display: block; font-size: 0.82rem; color: var(--muted); margin: 0 0 0.3rem; font-weight: 600; }
input[type="text"], input[type="search"], textarea {
  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);
}
textarea { border-radius: 16px; }
input[type="text"]:focus, input[type="search"]:focus, textarea: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.8rem; }
.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.8rem; }

/* --- vote widget --- */
.vote-card {
  border: 1px solid var(--faint); border-radius: 16px; padding: 1.1rem 1.2rem;
  background: var(--card); margin-top: 0.8rem; box-shadow: 0 1px 3px rgba(15, 20, 25, 0.04);
}
.vote-target { display: flex; align-items: center; gap: 0.7rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--faint); object-fit: cover; flex: none; }
.avatar.sm { width: 26px; height: 26px; }
.vote-target-meta { min-width: 0; }
.vote-target-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-target-handle { color: var(--muted); font-size: 0.85rem; }
.vote-target-score { margin-left: auto; text-align: right; }
.score-pill {
  display: inline-block; font-weight: 800; font-size: 1.1rem; padding: 0.2rem 0.7rem;
  border-radius: 999px; background: var(--bg-alt); color: var(--ink);
}
.score-pill.pos { background: rgba(0, 186, 124, 0.12); color: var(--up); }
.score-pill.neg { background: rgba(249, 24, 128, 0.1); color: var(--down); }
.score-pill.zero { background: var(--bg-alt); color: var(--muted); }

.vote-buttons { display: flex; gap: 0.7rem; margin-top: 1rem; }
.vote-buttons button {
  flex: 1; font-size: 1.4rem; font-weight: 800; padding: 0.7rem 0; border-radius: 999px;
}
button.btn-up { background: var(--up); border-color: var(--up); }
button.btn-up:hover { background: #00a06a; border-color: #00a06a; }
button.btn-down { background: var(--down); border-color: var(--down); }
button.btn-down:hover { background: #e0106e; border-color: #e0106e; }

.vote-extra { margin-top: 0.8rem; display: grid; gap: 0.5rem; }
.vote-extra input { font-size: 0.85rem; border-radius: 12px; }
.cooldown-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }

/* --- leaderboard --- */
.lb-controls { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.lb-controls input[type="search"] { flex: 1; min-width: 10rem; }
.sort-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.sort-tabs button {
  background: var(--card); color: var(--muted); border: 1px solid var(--faint);
  font-size: 0.8rem; font-weight: 600; padding: 0.45rem 0.85rem;
}
.sort-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.window-tabs { display: flex; gap: 0.3rem; margin-bottom: 0.9rem; }
.window-tabs button { font-size: 0.75rem; padding: 0.35rem 0.7rem; background: var(--card); color: var(--muted); border: 1px solid var(--faint); }
.window-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.board-row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0;
  border-top: 1px solid var(--faint); text-decoration: none; color: inherit;
}
.board-row:first-child { border-top: none; }
.board-row:hover { background: var(--bg-alt); margin: 0 -1.1rem; padding: 0.75rem 1.1rem; border-radius: 12px; }
.board-row:hover .board-name { color: var(--accent); }
.board-rank { width: 2.2rem; color: var(--muted); font-size: 0.85rem; text-align: right; flex: none; }
.board-meta { min-width: 0; flex: 1; }
.board-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-handle { color: var(--muted); font-size: 0.8rem; }
.board-stat { color: var(--muted); font-size: 0.78rem; }
.board-score { font-weight: 800; font-size: 1.05rem; text-align: right; flex: none; min-width: 3.4rem; }
.board-score.pos { color: var(--up); }
.board-score.neg { color: var(--down); }

.board-row.top25 { background: rgba(16, 131, 254, 0.05); border-radius: 12px; margin: 0 -1.1rem; padding: 0.75rem 1.1rem; }
.board-row.top25:hover { background: rgba(16, 131, 254, 0.1); }
.board-row.top25 .board-rank { color: var(--accent); font-weight: 800; }

.empty { color: var(--muted); font-size: 0.88rem; }

/* --- activity feed --- */
.feed-item { padding: 0.7rem 0; border-top: 1px solid var(--faint); font-size: 0.88rem; }
.feed-item:first-child { border-top: none; }
.feed-line a { text-decoration: none; font-weight: 600; }
.feed-delta { font-weight: 800; }
.feed-delta.pos { color: var(--up); }
.feed-delta.neg { color: var(--down); }
.feed-reason { color: var(--muted); margin-top: 0.2rem; }
.feed-time { color: var(--muted); font-size: 0.74rem; margin-top: 0.15rem; }

/* --- profile --- */
.profile-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.profile-head .avatar { width: 64px; height: 64px; }
.profile-name { font-size: 1.3rem; font-weight: 800; }
.profile-handle { color: var(--muted); }
.profile-stats { display: flex; gap: 1.6rem; margin: 1rem 0 1.4rem; }
.profile-stat-num { font-size: 1.3rem; font-weight: 800; }
.profile-stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

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; }
