/* === hub.exe.dev — light, content-first === */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f6f6f5;
  --hover: #f2f2f1;
  --border: #e7e6e3;
  --border-strong: #d9d8d4;
  --text: #1c1b1a;
  --text-soft: #57544f;
  --text-dim: #8c8881;
  --accent: #ff5a1f;          /* warm signal orange */
  --accent-soft: #fff0ea;
  --accent-border: #ffd4c2;
  --link: #c2410c;
  --green: #15803d;
  --green-soft: #e8f5ec;
  --amber: #b45309;
  --amber-soft: #fdf3e3;
  --blue: #1d4ed8;
  --blue-soft: #eaf0ff;
  --red: #b91c1c;
  --red-soft: #fdeceb;
  --violet: #6d28d9;
  --violet-soft: #f1ecfd;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20,18,16,0.04);
  --shadow: 0 1px 3px rgba(20,18,16,0.06), 0 6px 18px rgba(20,18,16,0.04);
  --maxw: 1080px;
  --nav-maxw: 1200px;
  --header-font: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }

.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.13em; }

/* === Topbar === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  font-family: var(--header-font);
  line-height: 1.6;
}
.topbar-inner {
  position: relative;
  max-width: var(--nav-maxw);
  min-height: 68px;
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.site-nav {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}
.site-logo {
  display: flex;
  align-self: center;
  flex: 0 0 auto;
}
.site-logo img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.site-wordmark {
  color: #111;
  font-size: 14.4px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.site-wordmark:hover { color: #111; }
.site-nav-link {
  color: #6b7280;
  font: 400 13.6px/1.6 var(--header-font);
  text-decoration: none;
  white-space: nowrap;
}
a.site-nav-link:hover,
button.site-nav-link:hover { color: #111; }

.navsearch {
  justify-self: center;
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--text-dim);
  transition: border-color .15s, background .15s;
}
.navsearch:focus-within { background: #fff; border-color: var(--accent-border); }
.navsearch-icon { display: inline-flex; font-size: 16px; }
.navsearch input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
  color: var(--text);
  font: 400 13px/1.5 var(--header-font);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
.topbar .btn { font-family: var(--header-font); }
.icon-btn {
  position: relative;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 18px;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.dot {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px;
  border-radius: 8px; text-align: center;
}
.usermenu { display: flex; align-items: center; gap: 10px; }
.avatar {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--violet-soft); color: var(--violet);
  font-weight: 700; text-transform: uppercase; font-size: 13px;
}
.linkbtn {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 13px; font-family: inherit;
}
.linkbtn:hover { color: var(--accent); }
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.logout-btn .icon { width: 15px; height: 15px; }
.pick-name-short { display: none; }

/* === Content === */
.content {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.btn:hover { background: var(--hover); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #e94e15; border-color: #e94e15; color: #fff; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { opacity: .92; color: #fff; }
.btn-danger { background: #fff; border-color: var(--border-strong); color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--hover); }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }

/* === Hero === */
.hero {
  background:
    radial-gradient(120% 120% at 0% 0%, var(--accent-soft) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 0%, var(--violet-soft) 0%, transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 40px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: 34px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 12px;
}
.hero-sub { color: var(--text-soft); font-size: 16px; margin-bottom: 24px; }
.hero-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow);
  transition: border-color .15s;
}
.hero-search:focus-within { border-color: var(--accent); }
.hero-search-icon { font-size: 19px; color: var(--text-dim); display: inline-flex; }
.hero-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; color: var(--text);
}
.hero-search .btn { border-radius: 999px; }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 20px; color: var(--text-dim); font-size: 14px;
}
.hero-stats strong { color: var(--text); }
.dotsep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* === Browse cards === */
.browse { margin-bottom: 36px; }
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.browse-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.browse-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); color: var(--text); }
.browse-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px; font-size: 20px;
  background: var(--surface-2); color: var(--text-soft);
}
.browse-issue   .browse-icon { background: var(--red-soft);    color: var(--red); }
.browse-post    .browse-icon { background: var(--violet-soft); color: var(--violet); }
.browse-community .browse-icon { background: var(--green-soft); color: var(--green); }
.browse-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.browse-title { font-weight: 700; font-size: 15px; }
.browse-desc { font-size: 12.5px; color: var(--text-dim); }
.browse-count {
  font-size: 13px; font-weight: 700; color: var(--text-dim);
  background: var(--surface-2); border-radius: 999px;
  padding: 2px 10px; flex-shrink: 0;
}

/* === Home columns === */
.home-cols {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* === Section headers === */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-header h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
}
.section-header h2 .icon { color: var(--accent); }
.see-all { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.see-all:hover { color: var(--accent); }

/* === Thread list / rows === */
.thread-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.thread-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background .12s;
}
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: var(--surface-2); color: var(--text); }
.tr-votes {
  display: flex; flex-direction: column; align-items: center;
  min-width: 34px; color: var(--text-dim); font-size: 13px;
}
.tr-votes .icon { font-size: 15px; }
.tr-votes-n { font-weight: 700; color: var(--text-soft); }
.tr-main { flex: 1; min-width: 0; }
.tr-title-line { display: flex; align-items: center; gap: 6px; }
.tr-pin { color: var(--accent); display: inline-flex; }
.tr-title {
  font-weight: 600; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tr-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 4px; font-size: 12.5px; color: var(--text-dim);
}
.tr-meta-sep { color: var(--text-dim); }
.tr-stats { display: flex; gap: 14px; flex-shrink: 0; color: var(--text-dim); font-size: 12.5px; }
.tr-stat { display: inline-flex; align-items: center; gap: 4px; }
.tr-stat .icon { font-size: 14px; }

/* === Chips & labels === */
.chip {
  display: inline-flex; align-items: center;
  padding: 1px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); color: var(--text-soft);
  border: 1px solid var(--border);
}
.chip-issue { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chip-post { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.chip-community { background: var(--green-soft); color: var(--green); border-color: transparent; }
.label {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  background: var(--accent-soft); color: var(--link);
  border: 1px solid var(--accent-border);
}

/* === Mini list (sidebar) === */
.mini-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mini-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mini-row:last-child { border-bottom: none; }
.mini-row:hover { background: var(--surface-2); color: var(--text); }
.mini-title {
  font-weight: 600; font-size: 13.5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-meta { font-size: 12px; color: var(--text-dim); }

/* === Status badges === */
.status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; flex-shrink: 0;
}
.status-proposed { background: var(--surface-2); color: var(--text-soft); }
.status-planned { background: var(--blue-soft); color: var(--blue); }
.status-building { background: var(--amber-soft); color: var(--amber); }
.status-shipped { background: var(--green-soft); color: var(--green); }
.status-declined { background: var(--red-soft); color: var(--red); }
.status-open { background: var(--green-soft); color: var(--green); }
.status-closed, .status-locked { background: var(--red-soft); color: var(--red); }
.status-published { background: var(--violet-soft); color: var(--violet); }

.momentum {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--link);
  border: 1px solid var(--accent-border);
}
.github-boost {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650;
  background: var(--violet-soft); color: var(--violet);
}

/* === Page head === */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.page-sub { color: var(--text-dim); font-size: 13.5px; margin-top: 4px; max-width: 560px; }
.page-actions { display: flex; gap: 8px; flex-shrink: 0; }
.community-sections {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: -6px 0 20px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.community-sections-label {
  margin-right: 2px; color: var(--text-dim); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.community-sections a {
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-soft); font-size: 12.5px;
}
.community-sections a:hover { background: var(--accent-soft); color: var(--link); }

/* === Post list / rows === */
.post-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: var(--surface-2); }
.pr-main { flex: 1; min-width: 0; }
.pr-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-pin { color: var(--accent); display: inline-flex; }
.pr-title { font-weight: 600; font-size: 14.5px; color: var(--text); }
.pr-title:hover { color: var(--accent); }
.pr-note { font-weight: 500; color: var(--text-soft); font-style: italic; }
.pr-domain {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--text-dim);
}
.pr-excerpt { font-size: 13px; color: var(--text-soft); margin-top: 3px; }
.pr-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 5px; font-size: 12.5px; color: var(--text-dim);
}
.pr-sep { color: var(--text-dim); }
.pr-comments { display: inline-flex; align-items: center; gap: 4px; color: var(--text-dim); font-size: 12.5px; }
.pr-comments:hover { color: var(--accent); }
.author { font-weight: 600; color: var(--text-soft); }
.via { font-size: 11.5px; color: var(--text-dim); font-style: italic; }

/* === Vote box === */
.votebox-form { flex-shrink: 0; }
.votebox {
  display: flex; flex-direction: column; align-items: center;
  min-width: 44px; padding: 5px 8px 6px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text-dim); font-family: inherit;
  transition: all .15s; line-height: 1.2;
}
.votebox:hover { color: var(--accent); border-color: var(--accent); }
.votebox.voted { color: #fff; background: var(--accent); border-color: var(--accent); }
.votebox .icon { font-size: 15px; }
.votebox-n { font-weight: 700; font-size: 13px; }

/* === Shipped rows === */
.shipped-row { opacity: .8; }
.shipped-check {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; background: var(--green-soft); color: var(--green);
}

/* === Chips === */
.chip-discussion { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip-note { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip-link { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.chip-feature { background: var(--accent-soft); color: var(--link); border-color: transparent; }
.chip-guide { background: var(--violet-soft); color: var(--violet); border-color: transparent; }

/* === Post detail === */
.post-detail { max-width: 760px; margin: 0 auto; }
.pd-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.pd-head-main { flex: 1; }
.pd-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 8px; }
.pd-head h1 a { color: var(--text); }
.pd-head h1 a:hover { color: var(--accent); }
.pd-url { font-size: 13px; margin-bottom: 8px; }
.pd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); }
.source-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-dim); font-size: 12px; }
.source-link:hover { color: var(--accent); }
.source-link .icon { font-size: 13px; }
.pd-labels { display: flex; gap: 7px; flex-wrap: wrap; margin: -6px 0 18px; }
.pd-body {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
  font-size: 15px; line-height: 1.7; box-shadow: var(--shadow-sm);
}
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body p, .markdown-body ul, .markdown-body ol,
.markdown-body pre, .markdown-body blockquote, .markdown-body table { margin: 0 0 14px; }
.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
  margin: 22px 0 10px; line-height: 1.3; letter-spacing: -0.01em;
}
.markdown-body h1 { font-size: 22px; }
.markdown-body h2 { font-size: 19px; }
.markdown-body h3 { font-size: 16px; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; }
.markdown-body code {
  padding: 2px 5px; border-radius: 4px; background: var(--surface-2);
  font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.markdown-body pre {
  overflow-x: auto; padding: 14px 16px; border-radius: var(--radius-sm);
  background: #1f2937; color: #f9fafb; line-height: 1.5;
}
.markdown-body pre code { padding: 0; background: transparent; color: inherit; }
.markdown-body blockquote { padding-left: 14px; border-left: 3px solid var(--border-strong); color: var(--text-soft); }
.markdown-body table { width: 100%; border-collapse: collapse; }
.markdown-body th, .markdown-body td { padding: 7px 10px; border: 1px solid var(--border); text-align: left; }
.markdown-body img { max-width: 100%; height: auto; }
.markdown-body hr { margin: 20px 0; border: 0; border-top: 1px solid var(--border); }
.admin-status {
  display: flex; align-items: center; gap: 8px;
  background: var(--amber-soft); border: 1px solid #f3e2c4;
  border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px;
}
.admin-status label { font-size: 12.5px; font-weight: 700; color: var(--amber); }
.admin-status select {
  background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 5px 8px;
  font-size: 13px; font-family: inherit;
}

/* === Comments === */
.comments { max-width: 760px; margin: 26px auto 0; }
.comments h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.comment {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.comment-body { font-size: 14.5px; line-height: 1.6; }
.comment-form { margin-top: 16px; }
.comment-form textarea {
  width: 100%; background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 12px;
  font-size: 14.5px; font-family: inherit; resize: vertical; margin-bottom: 10px;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.signin-cta {
  text-align: center; padding: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 16px;
}
.empty-inline { color: var(--text-dim); font-size: 14px; padding: 8px 0 16px; }

/* === Forms === */
.narrow { max-width: 640px; margin: 0 auto; }
.form-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.kind-tabs { display: flex; gap: 6px; margin: 16px 0 22px; flex-wrap: wrap; }
.kind-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-soft);
  background: var(--surface);
}
.kind-tab:hover { border-color: var(--border-strong); color: var(--text); }
.kind-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.post-form label { display: block; font-size: 13.5px; font-weight: 700; margin: 16px 0 6px; }
.post-form .optional { font-weight: 400; color: var(--text-dim); }
.post-form input[type="text"], .post-form input[type="url"], .post-form textarea {
  width: 100%; background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 14.5px; font-family: inherit;
}
.post-form input:focus, .post-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.post-form textarea { resize: vertical; }
.form-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.posting-as { font-size: 13px; color: var(--text-dim); }
.form-error {
  background: var(--red-soft); color: var(--red);
  border: 1px solid #f0c9c7; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13.5px; margin-bottom: 8px;
}

/* === Welcome / handle picker === */
.suggestions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.suggestion { cursor: pointer; }
.suggestion input { position: absolute; opacity: 0; }
.suggestion-name {
  display: inline-block; padding: 10px 18px;
  border: 1.5px solid var(--border-strong); border-radius: 999px;
  font-size: 15px; font-weight: 700; font-family: ui-monospace, monospace;
  color: var(--text-soft); background: var(--surface);
  transition: all .15s;
}
.suggestion input:checked + .suggestion-name {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.suggestion:hover .suggestion-name { border-color: var(--accent); }

/* === Handle chip === */
.handle-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; font-family: ui-monospace, monospace;
  background: var(--violet-soft); color: var(--violet);
}
.handle-chip-link:hover {
  color: var(--violet); box-shadow: 0 0 0 2px rgba(109,40,217,.12);
}

/* === User settings === */
.settings-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px; align-items: start;
}
.settings-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.settings-form { max-width: 440px; }
.settings-form label { margin-top: 0; }
.settings-form .btn { margin-top: 2px; }
.settings-error { margin: 10px 0 0; }
.settings-note { margin: 9px 0 14px; color: var(--text-dim); font-size: 12.5px; }
.account-details {
  display: grid; gap: 10px; margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.account-details div { display: flex; justify-content: space-between; gap: 20px; }
.account-details dt { color: var(--text-dim); font-size: 12.5px; }
.account-details dd { color: var(--text-soft); font-size: 12.5px; font-weight: 600; text-align: right; }
.settings-summary { color: var(--text-soft); margin-bottom: 16px; }
.activity-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.activity-stat {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 10px; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.activity-icon {
  grid-row: 1 / span 2; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  color: var(--violet); background: var(--violet-soft); font-size: 16px;
}
.activity-stat strong { font-size: 22px; line-height: 1; }
.activity-stat > span:last-child { color: var(--text-dim); font-size: 12px; }

/* === Review queue === */
.review-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12.5px; color: var(--text-dim); }
.scrub-report {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; padding: 2px 10px; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber);
}
.review-form .review-title-input {
  width: 100%; font-weight: 700; font-size: 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; margin-bottom: 8px; font-family: inherit;
}
.review-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; font-size: 13.5px; font-family: inherit; resize: vertical;
  background: var(--surface-2); margin-bottom: 10px;
}
.review-actions { display: flex; gap: 8px; }

/* === Tokens === */
.token-form { display: flex; gap: 10px; margin-bottom: 20px; }
.token-form input {
  flex: 1; max-width: 320px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 14px; font-family: inherit;
}
.token-reveal {
  background: var(--green-soft); border: 1px solid #c9e7d2;
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
  font-size: 13.5px;
}
.token-code {
  display: block; margin-top: 8px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px;
  font-family: ui-monospace, monospace; word-break: break-all;
  user-select: all;
}
.api-help { margin-top: 24px; font-size: 13.5px; color: var(--text-soft); }
.api-help summary { cursor: pointer; font-weight: 700; }
.api-help pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px; margin: 10px 0;
  font-size: 12.5px; overflow-x: auto;
}

/* === Pager === */
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

/* === Admin dashboard === */
.admin-btn { position: relative; }
.dot-inline {
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 2px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px;
  border-radius: 8px; text-align: center; display: inline-block;
}
.admin-grid {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 32px; align-items: start;
}
.admin-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.admin-note { font-size: 13px; color: var(--text-soft); margin: 6px 0; }
.admin-card pre {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px; margin: 12px 0;
  font-size: 12.5px; overflow-x: auto; line-height: 1.5;
}
.count-badge {
  display: inline-block; min-width: 20px; padding: 1px 8px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; text-align: center;
}
.section-form label { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 4px; }
.section-form input {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 14px; font-family: inherit;
}
.section-form input:focus { outline: none; border-color: var(--accent); }
.section-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.user-row .mini-title { color: var(--violet); font-family: ui-monospace, monospace; font-weight: 700; }
.mini-title.dim { color: var(--text-dim); font-style: italic; }
.handle-lg { font-size: 18px; padding: 8px 18px; }

.post-form select {
  width: 100%; background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 14.5px; font-family: inherit;
}
.post-form select:focus { outline: none; border-color: var(--accent); }

@media (max-width: 900px) {
  .admin-grid, .settings-grid { grid-template-columns: 1fr; }
  .section-form-row { grid-template-columns: 1fr; }
}

.github-summary {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px;
}
.github-summary span {
  padding: 8px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text-soft);
}
.github-inventory { display: grid; gap: 8px; }
.github-inventory-row {
  padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.github-inventory-source { min-width: 0; }

/* === Empty / pagination === */
.empty-state { text-align: center; padding: 44px 24px; color: var(--text-dim); font-size: 15px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.page-info { font-size: 13px; color: var(--text-dim); }

/* === Footer === */
.sitefooter { border-top: 1px solid var(--border); background: var(--surface); }
.sitefooter-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-dim);
}
.sitefooter nav { display: flex; gap: 18px; }
.sitefooter nav a { color: var(--text-soft); }
.sitefooter nav a:hover { color: var(--accent); }

/* === Responsive === */
@media (max-width: 1100px) {
  .topbar-actions { gap: 6px; }
  .admin-label,
  .logout-btn span,
  .pick-name-full { display: none; }
  .pick-name-short { display: inline; }
  .admin-btn,
  .logout-btn {
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
  }
  .handle-chip { padding: 5px 8px; }
  .handle-name {
    display: block;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .usermenu { gap: 6px; }
}
@media (max-width: 960px) {
  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
  }
  .navsearch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    max-width: none;
  }
  .topbar-actions { grid-column: 2; grid-row: 1; }
}
@media (max-width: 900px) {
  .home-cols { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner {
    min-height: 0;
    padding: 12px 16px;
    gap: 10px 12px;
  }
  .site-nav { gap: 8px; }
  .site-wordmark {
    margin-right: 8px;
    font-size: 12.8px;
  }
  .site-nav-link { font-size: 12px; }
  .topbar .btn-sm { padding: 5px 9px; font-size: 12px; }
  .handle-name { max-width: 56px; }
  .navsearch { padding: 6px 12px; }
  .navsearch input { font-size: 12px; }

  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 26px; }
  .content { padding: 24px 16px 40px; }
}
@media (max-width: 420px) {
  .site-wordmark { display: none; }
}
@media (max-width: 350px) {
  .site-wordmark { display: none; }
}
