
:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-hover: #f4f4f5;
  --ink: #09090b;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --soft: #f4f4f5;
  --emerald: #10b981;
  --rose: #ef4444;
  --amber: #f59e0b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: #121215;
    --surface-hover: #1c1c22;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --line: #27272a;
    --line-strong: #3f3f46;
    --soft: #18181b;
    --emerald: #34d399;
    --rose: #f87171;
    --amber: #fbbf24;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PT Sans", "Noto Sans", "DejaVu Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  margin-bottom: 20px;
}
.top-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s ease;
}
.brand:hover { opacity: 0.8; }
.brand-logo-svg {
  height: 24px;
  width: auto;
  display: block;
}
}
.source-error-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 3px;
  padding: 2px 6px;
  margin-top: 4px;
  cursor: help;
  max-width: 100%;
}
.source-error-tooltip .info-icon {
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}
.nav { display: flex; gap: 20px; margin-left: 12px; align-items: center; }
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 1px 0 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--ink); border-color: var(--ink); }
.actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.auth-handle { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.user-pill:hover, .user-pill[aria-expanded="true"] {
  border-color: var(--ink);
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.user-avatar-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.user-handle-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chevron-svg {
  color: var(--muted);
  transition: transform 0.15s ease;
}
.user-pill[aria-expanded="true"] .chevron-svg {
  transform: rotate(180deg);
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
}
.user-menu-info {
  padding: 8px 10px;
}
.user-menu-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.user-menu-role {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.user-menu-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}
.user-menu-link {
  display: block;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.1s ease;
}
.user-menu-link:hover {
  background: var(--surface-hover);
  text-decoration: none;
}
.user-menu-link.danger {
  color: #ef4444;
}
.user-menu-link.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}
.auth-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
h1 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  font-weight: 600;
}
h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}
p { margin: 0; }
a { color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  min-width: 0;
}
.metrics { display: flex; flex-wrap: wrap; gap: 32px; margin: 0 0 32px; }
.metric b {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.metric span { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }
.inline { display: inline; }
.chips { display: flex; gap: 14px; flex-wrap: wrap; min-width: 0; align-items: center; }
.chip {
  font-size: 12px;
  font-weight: 500;
  border: none;
  border-radius: 0;
  padding: 2px 0;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.chip:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
}
.chip:active { transform: none; }
.chip.active {
  background: transparent;
  color: var(--ink);
  border: none;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}
.search { display: flex; gap: 6px; margin-left: auto; }
.search input {
  width: 200px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 12.5px;
  background: var(--bg);
  color: var(--ink);
  transition: all 0.15s ease;
}
.search input:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.search button { flex: 0 0 auto; }
@keyframes rowEntrance {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, var(--surface-hover) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}
dialog[open] {
  animation: modalEntrance 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalEntrance {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.list { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease, transform 0.15s ease;
  animation: rowEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.row:nth-child(1) { animation-delay: 0.02s; }
.row:nth-child(2) { animation-delay: 0.04s; }
.row:nth-child(3) { animation-delay: 0.06s; }
.row:nth-child(4) { animation-delay: 0.08s; }
.row:nth-child(5) { animation-delay: 0.10s; }
.row:nth-child(6) { animation-delay: 0.12s; }
.row:nth-child(7) { animation-delay: 0.14s; }
.row:nth-child(8) { animation-delay: 0.16s; }
.row:nth-child(9) { animation-delay: 0.18s; }
.row:nth-child(10) { animation-delay: 0.20s; }
.row:nth-child(n+11) { animation-delay: 0.22s; }
.row:hover {
  text-decoration: none;
  opacity: 0.72;
}
.row:hover .row-title { text-decoration: underline; }
.row-title {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.row-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.row-side {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.score {
  font-weight: 700;
  color: var(--ink);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.dot {
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
  background: #a1a1aa;
}
.dot.ok {
  background: var(--emerald);
  animation: pulse-dot 2.4s infinite cubic-bezier(0.45, 0, 0.55, 1);
}
.dot.err {
  background: var(--rose);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
.dot.warn { background: var(--amber); }
.dot.info { background: #3b82f6; }
.search-hero {
  margin: 12px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.search-form {
  width: 100%;
}
.search-bar {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 5px 6px 5px 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-bar:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 2px 6px rgba(0, 0, 0, 0.05);
}
.search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}
.search-input-wrap input {
  width: 100%;
  padding: 8px 36px 8px 36px;
  border: none;
  border-radius: 9999px;
  font: inherit;
  font-size: 13.5px;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.search-icon-svg {
  position: absolute;
  left: 10px;
  color: var(--muted);
  pointer-events: none;
}
.search-kbd {
  position: absolute;
  right: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 1px 7px;
  pointer-events: none;
  line-height: 1.4;
}
.search-clear-btn {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.search-clear-btn:hover {
  color: var(--ink);
  background: var(--surface-hover);
  text-decoration: none;
}
.search-actions-inside {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 2px;
}
.search-btn-inside {
  padding: 6px 16px;
  font-size: 12.5px;
  border-radius: 9999px;
  white-space: nowrap;
}
.search-rss-inside {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 9999px;
  white-space: nowrap;
}
.search-meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 6px 2px 2px;
  color: var(--muted);
}
.search-meta-bar strong {
  color: var(--ink);
}
.search-meta-clear {
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  margin-left: auto;
}
.search-meta-clear:hover {
  color: var(--ink);
}
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 90;
}
.search-suggestions.active {
  display: block;
}
.suggestions-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0 4px;
}
.suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sug-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sug-chip:hover {
  background: var(--bg);
  border-color: var(--ink);
  text-decoration: none;
}
.funnel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  margin-bottom: 28px;
}
.funnel-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.funnel-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.funnel-btn.active {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
}
.type-tabs {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
  margin-bottom: 2px;
}
.type-tab {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.type-tab:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mesh-lag-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.mesh-lag-notice strong {
  color: var(--ink);
}
.type-tab.active {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.community-votes {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.vote-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  padding: 5px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.vote-btn:hover {
  background: var(--bg);
  border-color: var(--ink);
}
.vote-btn:active {
  transform: scale(0.97);
}
.vote-btn .vote-count {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 11px;
}
.vote-btn-danger:hover {
  border-color: var(--rose);
  color: var(--rose);
}
.vote-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.vote-btn.active .vote-count {
  color: var(--bg);
  opacity: 0.85;
}
.vote-btn-danger.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.vote-btn-danger.active .vote-count {
  color: #fff;
  opacity: 0.85;
}
.feed-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}
.intro {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px 18px;
  margin-bottom: 8px;
}
.intro p {
  margin: 0;
  padding-right: 56px;
  max-width: 720px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.intro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-action {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.intro-action:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.intro-action span { font-size: 12px; font-weight: 400; color: var(--muted); }
.intro-action.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.intro-action.primary span { color: inherit; opacity: 0.75; }
.intro-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.intro-close:hover { color: var(--ink); }
.score-legend { margin: 0; font-size: 12px; color: var(--muted); }
.score[title] { cursor: help; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
}
.icon-btn svg {
  flex-shrink: 0;
}
.text-warn {
  color: var(--rose);
  font-weight: 500;
}
.text-ok {
  color: #16a34a;
  font-weight: 500;
}
.row-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}
.caution-banner {
  border-left: 2px solid var(--rose);
  padding: 8px 12px;
  color: var(--rose);
  font-size: 13px;
  margin: 16px 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  padding: 6px 16px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--bg);
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.btn:active { transform: scale(0.97); }
.btn.btn-sm {
  padding: 4px 12px;
  font-size: 11.5px;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--surface-hover);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.btn.ghost:active { transform: scale(0.97); }
.btn.danger { border-style: dashed; }
.btn.danger:hover { border-color: var(--rose); color: var(--rose); }
.btn:disabled { opacity: 0.4; cursor: default; }
.empty {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  background: transparent;
}
.empty h2 {
  color: var(--ink);
  font-size: 15px;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.empty p { max-width: 460px; margin: 0 auto 16px; font-size: 13px; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  margin-top: 26px;
}
.lead-text {
  white-space: pre-wrap;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 10px 0 0;
  color: var(--ink);
}
.meta-list { margin: 0; }
.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; text-align: right; word-break: break-word; font-weight: 500; }
.meta-list a { color: var(--ink); }
.reasons { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.reasons li { margin: 3px 0; }
section { margin-bottom: 32px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
table a { color: inherit; text-decoration: none; }
table a:hover { text-decoration: underline; }
.error { color: var(--rose); font-weight: 600; }
.back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.back:hover { color: var(--ink); text-decoration: none; transform: translateX(-2px); }
.form { display: grid; gap: 14px; max-width: 720px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.field input, .field select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  transition: all 0.15s ease;
}
.field input:focus, .field select:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.field input:disabled, .field select:disabled { background: var(--soft); color: var(--muted); }
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 0;
  display: grid;
  gap: 12px;
  background: var(--surface);
}
legend {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  padding: 0 6px;
}
.hint { color: var(--muted); font-size: 12px; }
.type-selector {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}
.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.radio-label input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.preview-card {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 24px 0 32px;
  display: grid;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 48px;
}
.error-box {
  border: 1px solid var(--rose);
  background: rgba(239, 68, 68, 0.06);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose);
}
.notice {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 20px;
}
.ai-box {
  background: transparent;
  border-left: 2px solid var(--ink);
  padding: 2px 0 2px 16px;
  margin-bottom: 28px;
}
.tag,
.tag-inline {
  display: inline;
  font-style: italic;
  color: var(--muted);
  font-size: 12.5px;
}
pre.token {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  overflow: auto;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--ink);
}
[hidden] { display: none !important; }
footer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: auto;
  padding-top: 56px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}
.footer-wrap {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 36px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.footer-col-brand {
  max-width: 320px;
}
.footer-brand {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.footer-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
@media (max-width: 600px) {
  .footer-catalog-grid {
    grid-template-columns: 1fr;
  }
}
.footer-links-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-catalog-grid a, .footer-links-grid a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.15s ease;
  line-height: 1.45;
}
.footer-catalog-grid a:hover, .footer-links-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 700px) {
  main { padding: 0 16px 56px; }
  .top { flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; width: 100%; margin-left: 0; padding-top: 8px; border-top: 1px solid var(--line); gap: 16px; }
  .actions { margin-left: auto; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lead-actions { width: 100%; display: flex; gap: 8px; }
  .lead-actions .btn { flex: 1 1 auto; text-align: center; padding: 8px 12px; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: 1fr; }
  .search-hero { margin: 8px 0 20px; gap: 12px; }
  .intro-action { flex: 1 1 100%; }
  .search-bar { width: 100%; }
  .search-bar input { flex: 1 1 0; min-width: 0; }
  .type-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .chips { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; width: 100%; }
  .chip { white-space: nowrap; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .row-side { justify-content: flex-start; }
  .funnel-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .community-votes { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
}
