/* ── Platine Community CSS ──────────────────────────────────── */

/* ── Nav ────────────────────────────────────────────────────── */
.comm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}
.comm-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tx);
  text-decoration: none;
  flex-shrink: 0;
}
.comm-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.comm-nav-links a {
  font-size: 13px;
  color: var(--tx2);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.comm-nav-links a:hover, .comm-nav-links a.active { color: var(--tx); }
.comm-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-user {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--tx2);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-pill {
  padding: 5px 13px;
  border: 1px solid var(--bd);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx);
  text-decoration: none;
  background: white;
  cursor: pointer;
  transition: border-color .15s;
  font-family: var(--sans);
}
.nav-pill:hover { border-color: var(--bd2); }

/* ── Layout ─────────────────────────────────────────────────── */
.comm-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 24px 80px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.comm-sidebar { position: sticky; top: 72px; height: fit-content; }
.comm-sidebar h3 {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.tag-list { display: flex; flex-direction: column; gap: 2px; }
.tag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--tx2);
  cursor: pointer;
  text-decoration: none;
  transition: background .12s;
}
.tag-item:hover, .tag-item.active { background: var(--bg2); color: var(--tx); }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Feed toolbar ───────────────────────────────────────────── */
.feed-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.feed-toolbar h1 { font-size: 17px; font-weight: 700; color: var(--tx); margin: 0; flex: 1; }
.sort-tabs {
  display: flex;
  gap: 3px;
  background: var(--bg2);
  border-radius: 8px;
  padding: 3px;
}
.sort-tab {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx2);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--sans);
  transition: all .12s;
}
.sort-tab.active { background: white; color: var(--tx); box-shadow: var(--sh); }
.search-input {
  padding: 7px 12px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--tx);
  background: white;
  outline: none;
  width: 180px;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--ac); }
.ask-btn {
  padding: 7px 15px;
  background: var(--tx);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}
.ask-btn:hover { opacity: .85; }

/* ── Post card ──────────────────────────────────────────────── */
.post-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  margin-bottom: 8px;
  background: white;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.post-card:hover { border-color: var(--bd2); box-shadow: var(--sh); }
.post-card.solved { border-left: 3px solid var(--ok); }

.post-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 50px;
  padding-top: 2px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--tx3);
  gap: 1px;
  text-align: center;
}
.stat-val { font-size: 15px; font-weight: 700; font-family: var(--mono); color: var(--tx); }
.stat-item.solved-stat .stat-val { color: var(--ok); }

.post-body { flex: 1; min-width: 0; }
.post-title { font-size: 15px; font-weight: 600; color: var(--tx); margin: 0 0 5px; line-height: 1.4; }
.post-excerpt {
  font-size: 13px; color: var(--tx2); line-height: 1.6; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-author { font-size: 11px; color: var(--tx3); margin-left: auto; white-space: nowrap; }

/* ── Chips ──────────────────────────────────────────────────── */
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 500;
  border: 1px solid;
  text-decoration: none;
  transition: opacity .12s;
}
.tag-chip:hover { opacity: .8; }
.scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--mono);
  background: var(--bg2);
  color: var(--tx2);
  border: 1px solid var(--bd);
  text-decoration: none;
}
.scan-badge:hover { background: var(--bg3); }
.solved-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-bd);
}
.supporter-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--mono);
  background: var(--bg2);
  border: 1px solid var(--bd);
  color: var(--tx2);
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--tx3); }
.empty-state .ei { font-size: 28px; margin-bottom: 10px; }
.empty-state .et { font-size: 14px; font-weight: 600; color: var(--tx2); margin-bottom: 5px; }
.empty-state .es { font-size: 13px; }

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--bd);
  border-top-color: var(--tx);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Post detail ────────────────────────────────────────────── */
.post-detail-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tx3);
  text-decoration: none;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--tx); }
.post-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tx);
  line-height: 1.35;
  margin: 0 0 10px;
}
.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--tx3);
}
.post-row, .answer-row {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bd);
}
.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 36px;
}
.vote-btn {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bd);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  color: var(--tx2);
  transition: all .12s;
}
.vote-btn:hover { border-color: var(--ac); color: var(--ac); }
.vote-btn.active-up   { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.vote-btn.active-down { background: var(--er-bg); border-color: var(--er); color: var(--er); }
.vote-score { font-size: 14px; font-weight: 700; font-family: var(--mono); color: var(--tx); }
.content-col { flex: 1; min-width: 0; }
.post-content, .answer-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--tx);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Scan preview card ──────────────────────────────────────── */
.scan-preview-card {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.scan-preview-model { font-size: 13px; font-weight: 600; color: var(--tx); flex: 1; min-width: 120px; }
.scan-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.scan-stat-val { font-size: 17px; font-weight: 700; font-family: var(--mono); }
.scan-stat-lbl { font-size: 10px; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.scan-view-link { font-size: 12px; color: var(--ac); text-decoration: none; font-weight: 500; white-space: nowrap; }
.scan-view-link:hover { text-decoration: underline; }

/* ── Answers ────────────────────────────────────────────────── */
.answers-title { font-size: 13px; font-weight: 700; color: var(--tx); padding: 16px 0 0; }
.answer-card { }
.answer-card.accepted .vote-col { position: relative; }
.accept-btn {
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 8px;
  border: 1px solid var(--bd);
  border-radius: 5px;
  background: none;
  cursor: pointer;
  color: var(--tx3);
  transition: all .12s;
  margin-top: 6px;
  white-space: nowrap;
}
.accept-btn:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.accepted-mark { color: var(--ok); font-size: 17px; font-weight: 700; }
.answer-meta {
  font-size: 11px;
  color: var(--tx3);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Answer form ────────────────────────────────────────────── */
.answer-form-section {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: var(--bg2);
}
.answer-form-title { font-size: 13px; font-weight: 700; margin: 0 0 10px; color: var(--tx); }
.answer-textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--tx);
  resize: vertical;
  outline: none;
  background: white;
  box-sizing: border-box;
  line-height: 1.6;
  transition: border-color .15s;
}
.answer-textarea:focus { border-color: var(--ac); }
.submit-btn {
  margin-top: 10px;
  padding: 8px 20px;
  background: var(--tx);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity .15s;
}
.submit-btn:hover { opacity: .85; }
.submit-btn:disabled { opacity: .45; cursor: not-allowed; }
.auth-prompt { text-align: center; padding: 18px; font-size: 13px; color: var(--tx2); }
.auth-prompt a { color: var(--ac); font-weight: 600; }
.form-error {
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--er-bg);
  border: 1px solid var(--er-bd);
  color: var(--er);
  font-size: 13px;
  display: none;
  margin-top: 10px;
}

/* ── Ask page ───────────────────────────────────────────────── */
.ask-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}
.ask-wrap h1 { font-size: 20px; font-weight: 700; margin: 0 0 24px; }
.field-group { margin-bottom: 20px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--tx); margin-bottom: 6px; }
.field-hint { font-size: 11px; color: var(--tx3); margin-top: 4px; }
.field-input-full {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--tx);
  outline: none;
  background: white;
  box-sizing: border-box;
  transition: border-color .15s;
}
.field-input-full:focus { border-color: var(--ac); }
.field-textarea {
  width: 100%;
  min-height: 160px;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--tx);
  resize: vertical;
  outline: none;
  background: white;
  box-sizing: border-box;
  line-height: 1.6;
  transition: border-color .15s;
}
.field-textarea:focus { border-color: var(--ac); }
.tags-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pick {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--mono);
  border: 1px solid var(--bd);
  cursor: pointer;
  background: white;
  color: var(--tx2);
  transition: all .12s;
  user-select: none;
}
.tag-pick:hover { border-color: var(--bd2); color: var(--tx); }
.tag-pick.selected { background: var(--tx); border-color: var(--tx); color: white; }
.scan-attach-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--bd2);
  border-radius: 8px;
  background: var(--bg2);
}
.scan-attach-box input {
  flex: 1;
  border: none;
  background: none;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--tx);
  outline: none;
}
.scan-id-preview {
  margin-top: 8px;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 13px;
  display: none;
}
.scan-id-preview.ok { background: var(--ok-bg); border: 1px solid var(--ok-bd); color: var(--ok); }
.scan-id-preview.er { background: var(--er-bg); border: 1px solid var(--er-bd); color: var(--er); }

/* ── Profile page ───────────────────────────────────────────── */
.profile-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 24px;
}
.profile-avatar {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--tx);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--mono);
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-email { font-size: 17px; font-weight: 700; color: var(--tx); margin: 0 0 3px; }
.profile-joined { font-size: 12px; color: var(--tx3); font-family: var(--mono); }
.rep-block { text-align: right; }
.rep-score { font-size: 26px; font-weight: 700; font-family: var(--mono); color: var(--tx); display: block; }
.rep-label { font-size: 10px; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; }
.profile-tabs { display: flex; gap: 3px; border-bottom: 2px solid var(--bd); margin-bottom: 18px; }
.profile-tab {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx3);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--sans);
  transition: color .12s;
}
.profile-tab.active { color: var(--tx); border-bottom-color: var(--tx); }
.profile-item { padding: 13px 0; border-bottom: 1px solid var(--bd); }
.profile-item:last-child { border-bottom: none; }
.profile-item-title { font-size: 14px; font-weight: 500; color: var(--tx); text-decoration: none; }
.profile-item-title:hover { color: var(--ac); }
.profile-item-meta { font-size: 11px; color: var(--tx3); margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   MODEL KNOWLEDGE BASE
   Laid out like a bug-bounty program page: the machine is the
   target, a documented fault is a report, and the stats row
   carries the weight.
   ═══════════════════════════════════════════════════════════ */

/* The nav is fixed at 56px, so this clears it the same way the other
   page wrappers do. */
.kb-wrap { max-width: 1040px; margin: 0 auto; padding: 80px 24px 80px; }

/* ── Target header ── */
.kb-hero {
  background: var(--bg2); border: 1px solid var(--bd);
  border-radius: 12px; padding: 22px 26px; margin-bottom: 18px;
}
.kb-hero-top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.kb-vendor {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  background: var(--tx); color: #fff; display: flex; align-items: center;
  justify-content: center; font-family: var(--mono); font-size: 15px; font-weight: 500;
}
.kb-head { flex: 1; min-width: 220px; }
.kb-title { font-size: 23px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; }
.kb-sub { font-size: 11px; color: var(--tx3); font-family: var(--mono); margin-top: 5px; }
.kb-chassis {
  display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 99px;
  background: var(--bg3); color: var(--tx2); margin-left: 6px;
}

.kb-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px; background: var(--bd); border: 1px solid var(--bd);
  border-radius: 9px; overflow: hidden; margin-top: 18px;
}
.kb-stat { background: var(--bg); padding: 13px 15px; }
.kb-stat-val { font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.kb-stat-val.ok { color: var(--ok); }
.kb-stat-val.wn { color: var(--wn); }
.kb-stat-lbl {
  font-size: 8px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--tx3); margin-top: 5px;
}

/* ── Fault profile: which components this machine gets asked about ── */
.kb-section-hdr {
  display: flex; align-items: baseline; gap: 9px; margin: 26px 0 11px;
}
.kb-section-hdr h2 { font-size: 13px; font-weight: 700; letter-spacing: -.2px; }
.kb-section-hdr .kb-count { font-size: 10px; color: var(--tx3); font-family: var(--mono); }

.fault-profile { display: flex; flex-direction: column; gap: 7px; }
.fault-row { display: flex; align-items: center; gap: 10px; }
.fault-name {
  width: 86px; flex-shrink: 0; font-size: 10px; font-family: var(--mono);
  color: var(--tx2); text-align: right;
}
.fault-track { flex: 1; height: 7px; background: var(--bg3); border-radius: 99px; overflow: hidden; }
.fault-fill { height: 100%; border-radius: 99px; transition: width .3s; }
.fault-n { width: 26px; font-size: 10px; color: var(--tx3); font-family: var(--mono); }

/* ── Report rows ── */
.report-list { border: 1px solid var(--bd); border-radius: 10px; overflow: hidden; }
.report-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 16px;
  background: var(--bg); border-bottom: 1px solid var(--bd);
  text-decoration: none; color: inherit; transition: background .12s;
}
.report-row:last-child { border-bottom: none; }
.report-row:hover { background: var(--bg2); }
.report-main { flex: 1; min-width: 0; }
.report-title {
  font-size: 12px; font-weight: 600; color: var(--tx); line-height: 1.45;
  margin-bottom: 4px;
}
.report-meta {
  font-size: 9px; color: var(--tx3); font-family: var(--mono);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.report-score {
  flex-shrink: 0; text-align: center; min-width: 38px;
  font-family: var(--mono);
}
.report-score-n { font-size: 15px; font-weight: 600; line-height: 1; }
.report-score-l { font-size: 7px; color: var(--tx3); letter-spacing: .8px; text-transform: uppercase; margin-top: 3px; }

.status-pill {
  flex-shrink: 0; font-size: 8px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 99px;
  border: 1px solid transparent; white-space: nowrap;
}
.status-pill.solved { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.status-pill.open   { background: var(--wn-bg); color: var(--wn); border-color: var(--wn-bd); }

.poc-mark {
  font-size: 8px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--ac); background: var(--ac3); border-radius: 3px; padding: 1px 5px;
}

/* ── Hall of fame ── */
.hof-list { display: flex; flex-direction: column; gap: 1px; background: var(--bd);
            border: 1px solid var(--bd); border-radius: 10px; overflow: hidden; }
.hof-row { display: flex; align-items: center; gap: 11px; padding: 10px 15px; background: var(--bg); }
.hof-rank {
  width: 20px; font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--tx3); flex-shrink: 0;
}
.hof-row:nth-child(1) .hof-rank { color: var(--ac); }
.hof-name { flex: 1; font-size: 11px; color: var(--tx); text-decoration: none; min-width: 0;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-name:hover { color: var(--ac); }
.hof-n { font-size: 10px; font-family: var(--mono); color: var(--tx3); }

/* ── Model directory ── */
.model-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 11px;
}
.model-card {
  background: var(--bg); border: 1px solid var(--bd); border-radius: 10px;
  padding: 15px 17px; text-decoration: none; color: inherit;
  transition: border-color .12s, transform .12s;
}
.model-card:hover { border-color: var(--ac); transform: translateY(-1px); }
.model-card-vendor {
  font-size: 9px; font-weight: 600; letter-spacing: .9px; text-transform: uppercase;
  color: var(--tx3);
}
.model-card-name {
  font-size: 13px; font-weight: 600; line-height: 1.35; margin: 4px 0 10px;
}
.model-card-stats {
  display: flex; gap: 13px; font-size: 9px; font-family: var(--mono); color: var(--tx3);
}
.model-card-stats strong { color: var(--tx); font-weight: 600; }

/* ── Model chip, shown on a post ── */
.model-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px;
  font-family: var(--mono); color: var(--tx2); background: var(--bg2);
  border: 1px solid var(--bd); border-radius: 5px; padding: 3px 9px;
  text-decoration: none; transition: border-color .12s;
}
.model-chip:hover { border-color: var(--ac); color: var(--ac); }
.model-chip::before { content: '▪'; color: var(--ac); }

/* ── Video evidence ── */
.video-block { margin-top: 13px; display: flex; flex-direction: column; gap: 10px; }
.video-embed {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 16 / 9;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--bd); background: #000;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-cap { font-size: 9px; color: var(--tx3); font-family: var(--mono); margin-top: 4px; }
.video-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 10px;
  color: var(--tx2); background: var(--bg2); border: 1px solid var(--bd);
  border-radius: 6px; padding: 7px 11px; text-decoration: none; max-width: 100%;
}
.video-link:hover { border-color: var(--ac); color: var(--ac); }
.video-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.video-add { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.video-add input {
  flex: 1; min-width: 180px; font-family: var(--mono); font-size: 10px;
  padding: 7px 10px; border: 1px solid var(--bd); border-radius: 6px;
  background: var(--bg); color: var(--tx);
}
.video-add input:focus { outline: none; border-color: var(--ac); }
.video-add button {
  font-family: var(--mono); font-size: 10px; font-weight: 500; cursor: pointer;
  padding: 7px 13px; border: 1px solid var(--ac); border-radius: 6px;
  background: var(--ac); color: #fff;
}
.video-add button:hover { background: var(--ac2); }
.video-add button:disabled { opacity: .5; cursor: not-allowed; }
.video-err { font-size: 9px; color: var(--er); margin-top: 5px; }

@media (max-width: 640px) {
  .kb-wrap { padding: 72px 14px 48px; }
  .kb-title { font-size: 19px; }
  .fault-name { width: 64px; }
  .report-row { flex-wrap: wrap; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════
   TECHNICIAN DIRECTORY
   ═══════════════════════════════════════════════════════════ */

.geo-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 7px; }
.geo-btn {
  font-family: var(--mono); font-size: 11px; cursor: pointer; white-space: nowrap;
  padding: 8px 14px; border: 1px solid var(--bd); border-radius: 7px;
  background: var(--bg); color: var(--tx); transition: all .12s;
}
.geo-btn:hover:not(:disabled) { border-color: var(--ac); color: var(--ac); }
.geo-btn.active { background: var(--ac3); border-color: var(--ac); color: var(--ac2); }
.geo-btn:disabled { opacity: .6; cursor: wait; }
.geo-radius {
  font-family: var(--mono); font-size: 11px; padding: 8px 10px;
  border: 1px solid var(--bd); border-radius: 7px; background: var(--bg); color: var(--tx);
  cursor: pointer;
}
.geo-note { font-size: 10px; color: var(--tx3); line-height: 1.6; max-width: 540px; }

.model-filter-bar { display: flex; align-items: center; gap: 8px; margin-top: 14px; }

.tech-list { display: flex; flex-direction: column; gap: 9px; }
.tech-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--bd); border-radius: 10px;
  padding: 15px 17px; text-decoration: none; color: inherit; transition: border-color .12s;
}
.tech-card:hover { border-color: var(--ac); }
.tech-avatar {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  background: var(--tx); color: #fff; display: flex; align-items: center;
  justify-content: center; font-family: var(--mono); font-size: 13px;
}
.tech-main { flex: 1; min-width: 0; }
.tech-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.tech-where { font-size: 10px; color: var(--tx3); font-family: var(--mono); margin-top: 3px; }
.tech-bio {
  font-size: 11px; color: var(--tx2); line-height: 1.55; margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tech-stats {
  display: flex; gap: 11px; flex-wrap: wrap; margin-top: 9px;
  font-size: 10px; font-family: var(--mono); color: var(--tx3);
}
.tech-match {
  color: var(--ac2); background: var(--ac3); border-radius: 4px;
  padding: 2px 7px; font-weight: 500;
}

.tech-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.listing-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg2); border: 1px solid var(--bd); border-radius: 10px;
  padding: 15px 17px; margin: 22px 0 18px; flex-wrap: wrap;
}
.listing-toggle.on { background: var(--ok-bg); border-color: var(--ok-bd); }
.listing-toggle-t { font-size: 12px; font-weight: 600; }
.listing-toggle.on .listing-toggle-t { color: var(--ac2); }
.listing-toggle-s { font-size: 10px; color: var(--tx3); margin-top: 3px; line-height: 1.5; }

/* ── Search results ── */
.search-section {
  font-size: 8px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--tx3); margin: 18px 0 8px;
}
.search-section:first-child { margin-top: 0; }
.search-machine {
  display: block; background: var(--ac3); border: 1px solid var(--ac4);
  border-radius: 9px; padding: 13px 16px; margin-bottom: 8px;
  text-decoration: none; color: inherit; transition: border-color .12s;
}
.search-machine:hover { border-color: var(--ac); }
.search-machine-name { font-size: 14px; font-weight: 600; color: var(--ac2); }
.search-machine-stats {
  font-size: 10px; color: var(--ac2); opacity: .85;
  font-family: var(--mono); margin-top: 4px;
}
.search-machine-stats strong { font-weight: 600; }

/* ── Follow a machine ── */
.follow-btn {
  font-family: var(--mono); font-size: 11px; cursor: pointer; white-space: nowrap;
  padding: 8px 14px; border: 1px solid var(--bd); border-radius: 7px;
  background: var(--bg); color: var(--tx2); transition: all .12s;
}
.follow-btn:hover:not(:disabled) { border-color: var(--ac); color: var(--ac); }
.follow-btn.on { background: var(--ac3); border-color: var(--ac); color: var(--ac2); }
.follow-btn:disabled { opacity: .6; cursor: wait; }

/* ── First documenter ── */
.first-badge {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 16px; padding: 9px 13px;
  background: var(--bg2); border: 1px solid var(--bd); border-radius: 7px;
  font-size: 10px; font-family: var(--mono);
}
.first-badge-l { color: var(--tx3); }
.first-badge-n { color: var(--ac); text-decoration: none; font-weight: 500; }
.first-badge-n:hover { text-decoration: underline; }
.first-badge-d { color: var(--tx3); margin-left: auto; }

.first-claim {
  background: var(--ac3); border: 1px solid var(--ac4); border-radius: 10px;
  padding: 26px; text-align: center;
}
.first-claim-t { font-size: 15px; font-weight: 600; color: var(--ac2); }
.first-claim-s {
  font-size: 11px; color: var(--ac2); opacity: .85;
  line-height: 1.65; margin-top: 7px; max-width: 420px;
  margin-left: auto; margin-right: auto;
}

/* ── First documentation of a machine ───────────────────────── */
/* The one post that asks for work rather than a sentence, so the form says
   plainly what it is for and the model page carries the result at the top. */
.report-intro {
  background: var(--ac3); border: 1px solid var(--ac4); border-radius: 9px;
  padding: 15px 17px; margin-bottom: 26px;
  font-size: 12px; line-height: 1.7; color: var(--ac2);
}
.report-machine {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 13px 15px; margin-bottom: 26px;
  background: var(--bg2); border: 1px solid var(--bd); border-radius: 8px;
}
.report-machine-n { font-size: 14px; font-weight: 600; color: var(--tx); }
.report-machine-s { font-size: 10px; font-family: var(--mono); color: var(--tx3); }

.req {
  font-family: var(--mono); font-size: 9px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--tx3); margin-left: 6px;
}

.scan-option {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; margin-bottom: 6px;
  border: 1px solid var(--bd); border-radius: 7px;
  font-size: 12px; font-family: var(--mono); color: var(--tx2);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.scan-option:hover { border-color: var(--ac4); }
.scan-option:has(input:checked) { border-color: var(--ac); background: var(--ac3); color: var(--ac2); }
.scan-option input { accent-color: var(--ac); margin: 0; }

/* The founding write-up, at the top of the machine's page. */
.founding {
  border: 1px solid var(--ac4); border-radius: 10px;
  overflow: hidden; margin-top: 18px;
}
.founding-hdr {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 16px; background: var(--ac3);
  border-bottom: 1px solid var(--ac4);
  font-size: 10px; font-family: var(--mono);
}
.founding-tag {
  text-transform: uppercase; letter-spacing: .07em;
  font-weight: 500; color: var(--ac2);
}
.founding-by { color: var(--ac2); opacity: .8; }
.founding-by a { color: var(--ac); text-decoration: none; font-weight: 500; }
.founding-by a:hover { text-decoration: underline; }
.founding-ev { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.founding-body { padding: 4px 16px 16px; }
.founding-title {
  font-size: 15px; font-weight: 600; color: var(--tx);
  margin: 14px 0 2px; text-decoration: none; display: block;
}
.founding-title:hover { color: var(--ac); }
.founding-sec { margin-top: 15px; }
.founding-sec-l {
  font-size: 9px; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .07em; color: var(--tx3); margin-bottom: 4px;
}
.founding-sec-b {
  font-size: 13px; line-height: 1.7; color: var(--tx2);
  white-space: pre-wrap; overflow-wrap: anywhere;
}

/* The site-wide notice while an address is unconfirmed. Sits under the nav on
   every community page, because an unconfirmed account cannot write anywhere
   and finding that out after typing a long answer would be worse. */
.verify-bar {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--wn-bg); border-bottom: 1px solid var(--wn-bd);
  font-size: 12px; line-height: 1.55; color: var(--wn);
  box-sizing: border-box;
}
.verify-bar button {
  margin-left: auto; padding: 6px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--wn-bd); background: #fff;
  font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--wn);
}
.verify-bar button:hover:not(:disabled) { background: var(--wn-bg); }
.verify-bar button:disabled { opacity: .6; cursor: default; }
@media (max-width: 560px) {
  .verify-bar { padding: 10px 16px; }
  .verify-bar button { margin-left: 0; }
}

/* The nav did not fit a phone: its links and the account pill came to 467px
   against a 390px screen, so every community page scrolled sideways. The
   links scroll on their own below 640px instead of dragging the page. */
@media (max-width: 640px) {
  .comm-nav { padding: 0 14px; gap: 10px; }
  .comm-nav-links {
    flex: 1 1 auto; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .comm-nav-links::-webkit-scrollbar { display: none; }
  .comm-nav-links a { white-space: nowrap; }
  .comm-nav-right { flex: 0 0 auto; }
  .nav-user { display: none; }   /* the address is on the profile page */

  /* Also pre-existing: the feed is a 200px sidebar beside a 1fr column, which
     never collapsed, so the community page itself scrolled sideways on a
     phone. The sidebar goes above the feed instead. */
  .comm-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 72px 14px 48px;
  }
  .comm-layout > * { min-width: 0; }   /* or long titles widen the column */
  .comm-sidebar { position: static; }
}
