/* 1:1 tokens from xuebasou.com (2026-08-26) */
:root {
  --bg: #0a0a0a;
  --bg-header: rgba(10, 10, 10, 0.85);
  --bg-card: #121212;
  --bg-elev: #1b1b1b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: #d4d4d8;
  --fg-bright: #fafafa;
  --fg-muted: #a1a1aa;
  --fg-dim: #71717a;
  --accent: #61a0ff;
  --accent-hover: #8ab9ff;
  --accent-dim: rgba(97, 160, 255, 0.14);
  --accent-border: rgba(97, 160, 255, 0.42);
  --accent-contrast: #08111f;
  --bg-search: color-mix(in srgb, #1b1b1b 70%, #0a0a0a);
  --danger: #f87171;
  --warn: #fbbf24;
  --success: #4ade80;
  --font: Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --max-cards: 1024px;
  --header-h: 3.5rem;
  --radius: 12px;
  --radius-pill: 999px;
  --hover: rgba(255, 255, 255, 0.07);
}

/* Prevent database-derived example markup from flashing before live data is ready. */
.home-pending .home-grid,
.doc-pending .doc-page {
  visibility: hidden;
}

html[data-theme="light"] {
  --bg: #fafaf9;
  --bg-header: color-mix(in srgb, #fff 85%, transparent);
  --bg-card: #fff;
  --bg-elev: #fffffff0;
  --border: #18181b13;
  --border-strong: #18181b1f;
  --fg: #52525b;
  --fg-bright: #09090b;
  --fg-muted: #71717a;
  --fg-dim: #a1a1aa;
  --accent: #0064fa;
  --accent-hover: #0054d1;
  --accent-dim: rgb(0 100 250 / 0.1);
  --accent-border: rgb(0 100 250 / 0.24);
  --accent-contrast: #ffffff;
  --bg-search: #f5f5f4;
  --danger: #dc2626;
  --warn: #d97706;
  --success: #16a34a;
  --hover: #0000000a;
}
html[data-surface-style="glass"] .header {
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 42%), rgba(10,10,10,.72);
}
html[data-theme="light"][data-surface-style="glass"] .header {
  background: #fffffff0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--bg); }
html { min-height: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "header" "main" "footer";
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea, select { font-family: inherit; }

#site-header, .header { grid-area: header; min-height: var(--header-h); }
.footer { grid-area: footer; }
.header {
  position: sticky; top: 0; z-index: 40;
  isolation: isolate;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) {
  .header-inner { padding: 0 24px; }
}
.header-left {
  display: flex; align-items: center; gap: 16px;
  flex: 1 1 32rem; min-width: 0;
}
.header-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.hdr-auth { display: inline-flex; align-items: center; gap: 4px; }
.hdr-auth a {
  height: 2.25rem; padding: 0 12px; border-radius: 7px;
  font-size: 13px; color: var(--fg-muted);
  display: inline-flex; align-items: center; text-decoration: none;
}
.hdr-auth a:hover { background: var(--hover); color: var(--fg-bright); }
.hdr-auth a.on {
  background: var(--accent); color: var(--accent-contrast);
}
.hdr-auth a.on:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg-bright); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: #111; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 700; letter-spacing: -0.5px;
}
.header-nav {
  display: none; align-items: center; gap: 4px; min-width: 0;
}
@media (min-width: 768px) {
  .header-nav { display: flex; }
}
.header-nav a, .header-nav .nav-more {
  padding: 8px 12px; border-radius: 7px;
  color: var(--fg-muted); font-size: 14px; border: 0; background: transparent; cursor: pointer;
}
.header-nav a:hover, .header-nav .nav-more:hover { color: var(--fg-bright); background: var(--hover); }
.header-nav .nav-more { display: inline-flex; align-items: center; gap: 2px; color: var(--fg-muted); }
.more-pop {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 160px; padding: 6px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px;
  display: none; flex-direction: column; z-index: 50;
}
.nav-more-wrap { position: relative; }
.nav-more-wrap.open .more-pop { display: flex; }
.more-pop a { padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--fg); }
.hdr-wrap.mobile-nav-wrap { display: inline-flex; }
@media (min-width: 768px) {
  .hdr-wrap.mobile-nav-wrap { display: none; }
}
.mobile-nav-pop { left: 0; right: auto; padding: 4px; }
.mobile-nav-pop a {
  display: block; padding: 8px 10px; border-radius: 6px;
  font-size: 13px; color: var(--fg);
}
.mobile-nav-pop a:hover { background: var(--hover); color: inherit; }
.icon-btn {
  width: 2.25rem; height: 2.25rem; border: 0; background: transparent; color: var(--fg-muted);
  border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  position: relative; font-size: 1.25rem;
}
.icon-btn:hover { background: var(--hover); color: var(--fg-bright); }
.icon-btn svg { width: 1.15em; height: 1.15em; }
.theme-btn { width: 2rem; height: 2rem; font-size: 1.15rem; }
.theme-btn .accent-dot {
  position: absolute; bottom: 3px; right: 3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); border: 1px solid var(--bg); pointer-events: none;
}
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 2.25rem; padding: 0 8px; border-radius: 7px;
  color: var(--fg-muted); cursor: pointer; border: 0; background: transparent;
}
.user-chip:hover { background: var(--hover); }
.user-chip svg { width: 16px; height: 16px; }
.user-chip .user-name {
  font-size: 14px; color: var(--fg); max-width: 6rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none;
}
@media (min-width: 768px) {
  .user-chip .user-name { display: inline; }
}
.user-avatar {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0; user-select: none;
}
.dot { position: relative; }
.dot::after {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.hdr-wrap { display: inline-flex; position: relative; }
.hdr-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0; left: auto;
  z-index: 50; min-width: 160px; padding: 4px;
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.45);
  animation: hdr-menu-in .12s cubic-bezier(.22,1,.36,1);
}
.hdr-wrap.open .hdr-menu { display: block; }
@keyframes hdr-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(.97); }
  to { opacity: 1; transform: none; }
}
html[data-surface-style="glass"] .hdr-menu,
html[data-surface-style="glass"] .more-pop {
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 42%), color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(16px); border-color: color-mix(in srgb, var(--border-strong) 80%, transparent);
}
html[data-theme="light"] .hdr-menu { box-shadow: 0 12px 32px #00000014; }

.theme-pop { min-width: 300px; padding: 0; }
@media (max-width: 30rem) {
  .theme-pop { min-width: 0; width: min(300px, calc(100vw - 2rem)); }
}
.theme-picker { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.picker-sec { display: flex; flex-direction: column; gap: 8px; }
.picker-title { font-size: 14px; font-weight: 600; color: var(--fg-bright); }
.pop-div { height: 1px; margin: 4px 0; background: var(--border); }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.mode-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 0; padding: 6px 4px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-card); color: var(--fg); cursor: pointer;
}
.mode-btn:hover { border-color: var(--accent-border); background: var(--accent-dim); color: var(--fg-bright); }
.mode-btn.on { border-color: var(--accent-border); background: var(--accent-dim); color: var(--accent); font-weight: 500; }
.mode-ico {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--bg-elev); color: var(--fg-muted);
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.mode-btn.on .mode-ico { color: var(--accent); }
.mode-ico svg { width: 1.125rem; height: 1.125rem; }
.mode-check {
  position: absolute; bottom: -4px; right: -4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  border: 1px solid var(--bg-elev);
  display: inline-flex; align-items: center; justify-content: center;
}
.mode-check svg { width: 8px; height: 8px; }
.mode-lab {
  max-width: 100%; font-size: 12px; font-weight: 500; color: var(--fg-bright);
  line-height: 1.375; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.surface-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.surface-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-card); color: var(--fg); cursor: pointer;
  font-size: 12px; font-weight: 500;
}
.surface-btn:hover { border-color: var(--accent-border); background: var(--accent-dim); }
.surface-btn > svg { width: 18px; height: 18px; color: var(--fg-muted); flex-shrink: 0; }
.surface-btn.on { border-color: var(--accent-border); color: var(--accent); background: var(--accent-dim); }
.surface-btn.on > svg { color: var(--accent); }
.surface-check { margin-left: auto; width: 14px; height: 14px; color: var(--accent); }
.surface-check svg { width: 14px; height: 14px; }

.msg-pop { padding: 0; width: min(24rem, calc(100vw - 2rem)); }
.msg-panel {
  height: min(34rem, calc(100dvh - var(--header-h) - 1.5rem));
  display: flex; flex-direction: column; overflow: hidden;
}
.msg-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.msg-title { font-size: 14px; font-weight: 600; color: var(--fg-bright); }
.msg-head-act { display: flex; align-items: center; gap: 4px; }
.msg-ico-btn {
  width: 1.875rem; height: 1.875rem; border: 0; border-radius: 7px;
  background: transparent; color: var(--fg-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.msg-ico-btn:hover { color: var(--fg-bright); background: var(--hover); }
.msg-ico-btn svg { width: 18px; height: 18px; }
.msg-filters {
  display: flex; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.msg-select { flex: 1; min-width: 0; position: relative; }
.msg-sel-trig {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; min-height: 36px; padding: 8px 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px;
  color: var(--fg); font-size: 12px; cursor: pointer; text-align: left;
}
.msg-sel-trig:hover, .msg-select.open .msg-sel-trig { border-color: var(--accent-border); }
.msg-sel-trig span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-sel-trig svg { width: 12px; height: 12px; color: var(--fg-muted); flex-shrink: 0; }
.msg-select.open .msg-sel-trig svg { transform: rotate(180deg); }
.msg-sel-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 2;
  padding: 4px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.msg-select.open .msg-sel-menu { display: block; }
.msg-sel-menu button {
  display: block; width: 100%; padding: 6px 10px; margin: 4px 0; border: 0; border-radius: 5px;
  background: transparent; color: var(--fg); font-size: 12px; text-align: left; cursor: pointer;
}
.msg-sel-menu button:hover { background: var(--hover); color: var(--accent); }
.msg-list { flex: 1; min-height: 0; padding: 8px; overflow-y: auto; display: flex; flex-direction: column; }
.msg-item {
  display: block; width: 100%; margin: 0 0 6px; padding: 10px 12px;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--fg); text-align: left; cursor: pointer;
}
.msg-item:hover { background: var(--hover); }
.msg-item.unread { background: var(--accent-dim); }
.msg-item b { display: block; font-size: 13px; color: var(--fg-bright); font-weight: 600; }
.msg-item small { display: block; margin: 2px 0 4px; font-size: 11px; color: var(--fg-muted); }
.msg-item p { margin: 0; font-size: 12px; color: var(--fg); line-height: 1.5; }
.empty-state {
  margin: auto; padding: 32px 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-illu {
  width: 4.5rem; height: 4.5rem; border-radius: 14px; position: relative;
  border: 1px solid var(--accent-border);
  background: linear-gradient(145deg, var(--accent-dim), var(--bg-elev)), var(--bg-card);
  display: grid; place-items: center; color: var(--accent);
}
.empty-illu svg { width: 2rem; height: 2rem; }
.orbit {
  position: absolute; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent-border);
}
.orbit-1 { width: .45rem; height: .45rem; top: -.2rem; right: .65rem; }
.orbit-2 { width: .32rem; height: .32rem; bottom: .7rem; right: -.16rem; opacity: .68; }
.empty-state h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--fg-bright); line-height: 1.375; }
.empty-state p { margin: 0; font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

.user-pop { min-width: 160px; }
.user-drop-h { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.user-drop-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-drop-name {
  font-size: 14px; font-weight: 600; color: var(--fg-bright);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11rem;
}
.user-drop-role { font-size: 12px; color: var(--fg-muted); }
.user-drop-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 12px; border: 0; border-radius: 5px;
  background: transparent; text-align: left;
  font-size: 12px; font-weight: 500; color: var(--fg); cursor: pointer;
}
.user-drop-item svg { width: 17px; height: 17px; color: var(--fg-muted); flex-shrink: 0; }
.user-drop-item:hover { background: var(--hover); color: inherit; }
.user-drop-item.danger, .user-drop-item.danger svg { color: var(--danger); }

.page { width: 100%; }
.main {
  grid-area: main;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 16px 32px;
  min-width: 0;
  min-height: 0;
}
@media (min-width: 768px) {
  .main { padding: 24px 24px 40px; }
}
.submit-page-main { padding-top: 16px; }
body.home-layout .main { display: flex; }
.home-page {
  max-width: var(--max-cards);
  width: 100%;
  margin: 0 auto;
  padding: 0;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.wrap {
  width: 100%; max-width: var(--max-cards);
  margin: 0 auto; padding: 0;
  min-width: 0;
}

.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 16px 0;
}
@media (min-width: 768px) {
  .hero { gap: 20px; padding: 24px 0; }
}
.hero-logo { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hero-logo .brand-mark { width: 36px; height: 36px; font-size: 13px; border-radius: 10px; }
.hero h1 { margin: 0; font-size: 32px; font-weight: 700; color: var(--fg-bright); letter-spacing: -.02em; line-height: 1.2; }
.hero p { margin: 0; max-width: 40rem; color: var(--fg-muted); font-size: 14px; line-height: 1.5; }

.search-box {
  width: 100%; max-width: 544px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-search);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 12px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bg-card) 70%, transparent);
}
.search-box:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-box .search-ico { color: var(--fg-dim); flex-shrink: 0; display: inline-flex; }
.search-box .search-ico svg { width: 18px; height: 18px; }
.search-box input {
  flex: 1; border: 0; outline: none; background: transparent;
  color: var(--fg); font-size: 16px; height: 40px; min-width: 0;
}
.search-box input::placeholder { color: var(--fg-dim); }
.search-suggest-host { position: relative; z-index: 20; }
.search-suggestions {
  position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; right: 0;
  padding: 6px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  text-align: left;
}
.search-suggestions[hidden] { display: none; }
.search-suggestion {
  width: 100%; min-height: 40px; padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--fg); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.search-suggestion:hover, .search-suggestion.is-active {
  background: var(--accent-dim); color: var(--accent);
}
.search-suggestion-ico { width: 18px; height: 18px; display: inline-flex; color: var(--fg-dim); flex-shrink: 0; }
.search-suggestion-ico svg { width: 18px; height: 18px; }
.search-suggestion:hover .search-suggestion-ico, .search-suggestion.is-active .search-suggestion-ico { color: var(--accent); }
.search-go {
  width: 42px; height: 42px; min-height: 42px; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; padding: 0;
}
.search-go:hover { background: var(--accent-hover); }
.search-go svg { width: 18px; height: 18px; }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
}
@media (min-width: 768px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.home-grid .card { min-height: 463px; }
.home-grid .res-list { flex: 1; overflow: hidden; }
.sec-h {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-bright); font-size: 14px; font-weight: 600;
  position: relative; margin: 0;
}
.sec-h::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 14px; border-radius: 0 2px 2px 0; background: var(--accent);
}
.sec-h svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.res-list { padding: 0; margin: 0; }
.res-item {
  display: block;
  padding: 8px 16px;
  color: var(--fg);
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.res-item + .res-item { border-top: 1px dashed var(--border); }
.res-item:hover { color: var(--accent); background: var(--accent-dim); }
.pan { color: var(--fg-muted); }

.footer {
  grid-area: footer;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-dim);
  font-size: 12px;
  flex-shrink: 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { padding: 24px; }
}
.footer a { color: var(--fg-muted); }
.footer-legal { line-height: 1.5; margin: 0; max-width: 48rem; font-size: 12px; color: var(--fg-muted); }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 12px; max-width: 48rem; font-size: 12px; color: var(--fg-muted);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin: 0; color: var(--fg-dim); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.footer-copy a { margin: 0 8px; }
.footer-friends { margin: 8px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; color: var(--fg-dim); }
.footer-friends a { color: var(--fg-muted); }

.mini-search {
  flex: 1; max-width: 480px; margin: 0 16px;
  display: flex; align-items: center;
  background: var(--bg-search); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 2px 4px 2px 14px;
}
.mini-search input { flex: 1; border: 0; background: transparent; color: var(--fg); height: 32px; outline: none; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--bg-elev);
  color: var(--fg); font-size: 13px; cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.on { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #08111f; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); color: #08111f; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(248,113,113,.35); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.block { width: 100%; }

.tag {
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 999px; font-size: 12px;
  background: var(--accent-dim); color: var(--accent);
}
.tag.gray { background: var(--bg-elev); color: var(--fg-muted); }
.tag.ok { background: rgba(74,222,128,.12); color: var(--success); }
.tag.warn { background: rgba(251,191,36,.12); color: var(--warn); }
.tag.bad { background: rgba(248,113,113,.14); color: var(--danger); }

.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }
.bright { color: var(--fg-bright); }
.small { font-size: 13px; }
.xs { font-size: 12px; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--fg-muted); }
.input, .textarea, .select {
  width: 100%; background: var(--bg-search); border: 1px solid var(--border);
  border-radius: 8px; color: var(--fg); outline: none; font-size: 14px;
}
.input, .select { height: 40px; padding: 0 12px; }
.input.has-send { padding-right: 6.5rem; }
.textarea { padding: 10px 12px; min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }

.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 12px; align-items: start; }
.grid-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1023px) {
  .grid-2 { grid-template-columns: 1fr; }
  .mini-search { display: none; }
}

.crumbs { font-size: 12px; color: var(--fg-dim); margin-bottom: 16px; }
.crumbs a { color: var(--fg-muted); }

/* —— 登录/注册（无顶栏，居中卡） —— */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg);
  grid-template-areas: none;
  grid-template-rows: none;
}
.auth-card {
  width: 100%; max-width: 22rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px;
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; color: var(--fg-bright); font-weight: 700; }
.auth-brand-icon { width: 22px; height: 22px; display: inline-flex; color: var(--fg-bright); }
.auth-brand-icon svg { width: 100%; height: 100%; }
.auth-card h1 { margin: 0 0 6px; font-size: 20px; color: var(--fg-bright); text-align: center; letter-spacing: -.02em; }
.auth-card .auth-title { display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-title-icon { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.auth-card .sub { margin: 0 0 24px; font-size: 14px; color: var(--fg); text-align: center; }
.auth-card .field label {
  display: block; margin-bottom: 6px;
  font-size: 11px; font-weight: 500; color: var(--fg-bright);
  letter-spacing: .06em; text-transform: uppercase;
}
.input-wrap { position: relative; }
.input-wrap .in-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-muted); width: 16px; height: 16px; }
.input-wrap .input { padding-left: 36px; background: var(--bg-elev); border-color: transparent; height: 40px; }
.input-wrap .input:focus { background: var(--bg-card); box-shadow: 0 0 0 2px var(--accent-border); }
.assist { text-align: right; margin: -4px 0 8px; font-size: 12px; }
.assist a { color: var(--accent); }
.auth-submit {
  width: 100%; height: 42px; margin-top: 8px; border: 0; border-radius: 7px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 24%, transparent);
}
.auth-submit:hover { opacity: .9; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 7px; }
.auth-submit-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 14px; color: var(--fg); }
.auth-foot a { color: var(--accent); font-weight: 500; }
.auth-foot .div { margin: 0 8px; color: var(--fg-dim); }
.auth-error, .auth-code-note { margin-top: 8px; padding: 8px 10px; border-radius: 7px; font-size: 12px; line-height: 1.5; }
.auth-error { border: 1px solid color-mix(in srgb, var(--danger) 36%, var(--border)); background: color-mix(in srgb, var(--danger) 9%, var(--bg-card)); color: var(--danger); }
.auth-code-note { border: 1px solid var(--accent-border); background: var(--accent-dim); color: var(--accent); }
.auth-success { text-align: center; }
.auth-success p { margin: 10px 0 22px; color: var(--fg-muted); }
.auth-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* —— 搜索页：左筛选 + 右结果 —— */
.search-page { width: 100%; max-width: var(--max-cards); margin: 0 auto; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.search-layout { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .search-layout { flex-direction: row; align-items: flex-start; } }
.filter-col { display: none; }
@media (min-width: 768px) {
  .filter-col {
    display: flex; flex-direction: column; gap: 12px;
    width: 200px; flex-shrink: 0;
    position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto;
  }
}
.filter-notice { padding: 8px 10px; background: color-mix(in srgb, var(--accent) 10%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 7px; font-size: 12px; color: var(--accent); }
.filter-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.filter-h { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--fg-bright); padding-bottom: 8px; border-bottom: 1px dashed var(--border); cursor: pointer; user-select: none; }
.filter-h .chev { margin-left: auto; transition: transform .15s ease; }
.filter-panel.collapsed > :not(.filter-h) { display: none; }
.filter-panel.collapsed .filter-h { border-bottom: 0; padding-bottom: 0; }
.filter-panel.collapsed .filter-h .chev { transform: rotate(-90deg); }
.filter-h .accent { color: var(--accent); }
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item label { font-size: 11px; color: var(--fg-muted); font-weight: 500; }
.filter-item .select, .filter-item .input { width: 100%; height: 36px; font-size: 12px; }
.filter-dd { position: relative; width: 100%; }
.filter-dd-btn {
  width: 100%; height: 36px; padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--fg-muted); font-size: 12px; cursor: pointer;
}
.filter-dd.open .filter-dd-btn, .filter-dd-btn:hover { border-color: var(--accent); }
.filter-dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.filter-dd-chev {
  width: 0; height: 0; flex-shrink: 0; opacity: .55;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
  transition: transform .15s ease;
}
.filter-dd.open .filter-dd-chev { transform: rotate(180deg); }
.filter-dd-menu {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 240px; overflow: auto;
}
.filter-dd-menu button {
  width: 100%; text-align: left; padding: 6px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--fg); font-size: 12px; cursor: pointer;
}
.filter-dd-menu button:hover, .filter-dd-menu button[aria-selected="true"] {
  background: var(--accent-dim); color: var(--accent);
}
.filter-checks { display: flex; flex-direction: column; gap: 6px; }
.filter-check {
  display: flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-card); color: var(--fg-muted); font-size: 12px; cursor: pointer;
  position: relative;
}
.filter-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.filter-check-box {
  width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
}
.filter-check-box::after {
  content: ""; width: 10px; height: 6px;
  border: 2px solid transparent; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(0, -1px);
}
.filter-check:has(input:checked), .filter-check.on {
  border-color: var(--accent); background: var(--accent-dim); color: var(--accent);
}
.filter-check:has(input:checked) .filter-check-box, .filter-check.on .filter-check-box {
  border-color: var(--accent); background: var(--accent);
}
.filter-check:has(input:checked) .filter-check-box::after, .filter-check.on .filter-check-box::after {
  border-color: #fff;
}
.filter-tog {
  display: flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-card); color: var(--fg-muted); font-size: 12px; cursor: pointer;
}
.filter-tog.on { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.filter-act {
  width: 100%; min-height: 36px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-card); color: var(--fg-muted); font-size: 12px; cursor: pointer;
}
.filter-clear { width: 100%; min-height: 36px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-elev); color: var(--fg-muted); font-size: 12px; cursor: pointer; }
.filter-clear:hover { color: var(--danger); background: rgba(248,113,113,.12); }
.user-ban {
  margin-left: 4px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 4px;
  background: transparent; color: var(--fg-dim); font-size: 11px; cursor: pointer; vertical-align: middle;
}
.user-ban:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }

.result-area { flex: 1; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.result-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; }
.result-brand .brand-mark { width: 36px; height: 36px; }
.result-brand h1 { margin: 0; font-size: 32px; color: var(--fg-bright); }
.result-search { max-width: 50%; margin: 16px auto 0; width: 100%; }
@media (max-width: 767px) { .result-search { max-width: none; } }
.result-meta { padding: 6px 8px; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--fg); }
.result-meta em { color: var(--accent); font-style: normal; font-weight: 700; }

.search-item { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.search-item:hover { border-color: var(--border-strong); }
.search-item-h { display: flex; align-items: flex-start; gap: 10px; }
.pan-logo { width: 32px; height: 32px; border-radius: 7px; background: var(--accent-dim); color: var(--accent); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-item-h a { flex: 1; font-size: 14px; font-weight: 600; color: var(--fg-bright); line-height: 1.375; }
.search-item-h a:hover { color: var(--accent); }
.search-item-h a em { color: var(--accent); font-style: normal; }
.search-files { margin: 0; font-size: 12px; color: var(--fg-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.search-item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.search-item-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 11px; color: var(--fg-muted); }
.search-item-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.search-item-acts a, .search-item-acts button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border: 1px solid var(--border); border-radius: 5px;
  background: transparent; color: var(--fg-muted); font-size: 11px; cursor: pointer;
}
.search-item-acts a:hover, .search-item-acts button:hover { color: var(--accent); border-color: var(--accent-border); }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pager .btn[disabled] { opacity: .4; pointer-events: none; }
.search-empty { padding: 40px 12px; text-align: center; color: var(--fg-muted); font-size: 14px; }
.search-below { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--border); }
.search-below-h { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--fg-muted); }
.search-below-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.search-below-links a { font-size: 13px; color: var(--accent); }

/* —— 详情 —— */
.doc-page { width: 100%; max-width: var(--max-cards); margin: 0 auto; padding: 0; min-width: 0; }
.doc-layout { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) { .doc-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: start; } }
.resource-box { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.doc-top { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: var(--bg-elev); color: var(--fg-muted); }
.pill.acc { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.doc-title { margin: 0; font-size: 18px; font-weight: 600; color: var(--fg-bright); line-height: 1.375; }
.file-list { max-height: 200px; overflow-y: auto; margin: 12px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--fg-muted); }
.file-list li { display: flex; gap: 6px; line-height: 1.6; }
.file-list li + li { margin-top: 4px; }
.meta-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 12px; }
.meta-row:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-k { color: var(--fg-muted); min-width: 5.5rem; display: flex; align-items: center; gap: 6px; }
.meta-k::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.meta-v { color: var(--fg); flex: 1; }
.ok-chip { color: var(--success); background: rgba(74,222,128,.12); padding: 1px 8px; border-radius: 4px; }
.warn-chip { color: var(--warn); background: rgba(251,191,36,.12); padding: 1px 8px; border-radius: 4px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.doc-actions .btn { height: 30px; padding: 0 10px; font-size: 11px; background: var(--bg-card); }
.doc-below { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
@media (min-width: 768px) {
  .doc-below { flex-direction: row; }
  .doc-user { width: 50%; flex: none; }
}
.doc-below .card { flex: 1; min-width: 0; }
.doc-latest { margin-top: 0; }
.report-bar {
  margin-top: 8px; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--warn) 28%, var(--border));
  border-radius: 10px; background: rgba(251,191,36,.12);
  font-size: 12px; color: var(--fg-muted);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.report-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.report-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; background: rgba(251,191,36,.2); color: var(--warn); font-weight: 600;
}
.report-pick {
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-card); color: var(--fg); font-size: 12px; cursor: pointer;
}
.report-form .field { margin-bottom: 12px; }
.report-form .field label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--fg-muted); }
.report-desc { margin: 6px 0 0; font-size: 12px; color: var(--fg-muted); line-height: 1.6; }
.report-tip { margin: 8px 0 0; font-size: 12px; color: var(--fg-muted); }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.site-modal.report-modal { width: min(20rem, calc(100vw - 2rem)) !important; }
.form-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.form-acts-end { justify-content: flex-end; }
.header-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; min-height: 218px; }
.field-hint { margin: 6px 0 0; }
.kw-add { margin-top: 8px; }
.form-foot { margin: 10px 0 0; }
.nowrap { white-space: nowrap; }
.btn.block { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* —— 通用内容卡页 —— */
.page-card { max-width: 720px; margin: 0 auto; }
.page-head { margin: 0 0 16px; }
.page-head h1 { margin: 0; font-size: 20px; color: var(--fg-bright); }
.page-head p { margin: 6px 0 0; font-size: 13px; color: var(--fg-muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.tag-cloud a { padding: 8px 14px; font-size: 13px; border-radius: 999px; background: var(--accent-dim); color: var(--accent); }

.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }
.bright { color: var(--fg-bright); }
.small { font-size: 13px; }
.xs { font-size: 12px; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--fg-muted); }
.input, .textarea, .select {
  width: 100%; background: var(--bg-search); border: 1px solid var(--border);
  border-radius: 8px; color: var(--fg); outline: none; font-size: 14px;
}
.input, .select { height: 40px; padding: 0 12px; }
.input.has-send { padding-right: 6.5rem; }
.textarea { padding: 10px 12px; min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 0 16px; font-size: 12px; color: var(--fg-muted);
}
.chip {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--fg-muted); cursor: pointer; font-size: 12px;
}
.chip.on { background: var(--accent-dim); color: var(--accent); border-color: transparent; }

.side-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--fg-muted); font-size: 13px;
}
.side-nav a:hover, .side-nav a.on { background: var(--accent-dim); color: var(--accent); }

/* —— 盘种色 —— */
.pan-logo.ok { background: rgba(74,222,128,.16); color: var(--success); }
.pan-logo.warn { background: rgba(251,191,36,.16); color: var(--warn); }
.pan-logo.info { background: rgba(56,189,248,.16); color: #38bdf8; }
.pan-logo.bad { background: rgba(248,113,113,.16); color: var(--danger); }
.search-files span { display: block; }
.search-files em { color: var(--accent); font-style: normal; font-weight: 700; background: var(--accent-dim); border-radius: 4px; padding: 0 3px; }
.filter-h { cursor: default; }
.filter-h .chev { margin-left: auto; color: var(--fg-dim); }
.mobile-filter { display: none; }
@media (max-width: 767px) { .mobile-filter { display: flex; flex-direction: column; gap: 12px; } }
.result-search .search-box { width: 100%; max-width: none; height: 44px; }
.english-tip { font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border)); border-radius: 8px; background: rgba(251,191,36,.06); }
.english-tip a { color: var(--accent); }
.english-tip em { font-style: normal; font-weight: 700; }

/* —— 双栏表单页（提交/反馈/侵权） —— */
.split-page { width: 100%; max-width: var(--max-cards); margin: 0 auto; padding: 0; min-width: 0; }
.split-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 768px) { .split-grid { grid-template-columns: 17rem minmax(0,1fr); } }
.left-col { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .left-col { position: sticky; top: 72px; } }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.panel-title {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 0;
  color: var(--fg-bright); font-size: 14px; font-weight: 600;
}
.panel-title svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.panel .sec-h::before { content: none; }
.page-badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent-dim);
  background: var(--accent-dim); color: var(--accent); font-size: 12px; font-weight: 600;
}
.panel-ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent-dim);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.panel-ico svg { width: 20px; height: 20px; }
.split-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--fg-bright); line-height: 1.25; }
.split-sub { margin: 0; font-size: 12px; color: var(--fg-muted); line-height: 1.7; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-card); font-size: 12px; color: var(--fg);
}
.meta-pill svg { width: 14px; height: 14px; flex: 0 0 auto; }
.notice-title { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--fg-bright); }
.notice-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--fg-muted); line-height: 1.55; }
.notice-item + .notice-item { margin-top: 8px; }
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8; flex-shrink: 0; margin-top: 5px; }
.form-eyebrow { font-size: 11px; color: var(--fg-muted); margin-bottom: 8px; }
.form-title-row { display: flex; align-items: flex-start; gap: 10px; }
.form-title-ico {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent-dim); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.form-title-ico svg { width: 17px; height: 17px; }
.form-title-row h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--fg-bright); }
.form-title-row p { margin: 0; font-size: 12px; color: var(--fg-muted); line-height: 1.5; }
.form-head { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.helper-strip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 8px; background: var(--bg-elev);
  border: 1px solid var(--border); font-size: 12px; color: var(--fg); margin-bottom: 12px;
}
.queue-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.queue-metrics { display: flex; align-items: center; gap: 12px; }
.queue-metrics b { font-size: 14px; color: var(--fg-bright); }
.queue-div { width: 1px; height: 14px; background: var(--border); }
.queue-refresh { width: 34px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.queue-refresh svg { width: 15px; height: 15px; }
.submit-notice { margin-top: 2px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.submit-form-panel .textarea { min-height: 218px; }
.submit-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.submit-actions .btn { min-height: 38px; justify-content: center; }
.submit-actions .btn svg { width: 15px; height: 15px; }
.task-check-list { display: grid; gap: 8px; }
.task-check-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; }
.task-check-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-check-row span { color: var(--accent); font-size: 13px; }
.task-check-row small { grid-column: 1 / -1; color: var(--muted); }
.feedback-form .textarea { min-height: 138px; }
.feedback-submit { align-self: flex-start; min-width: 145px; justify-content: center; }
.feedback-submit svg { width: 15px; height: 15px; }
.split-form-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-form-head { margin: 0; min-height: 82px; }
.copyright-form .drop-zone { min-height: 120px; }
.copyright-form .drop-zone > svg { width: 24px; height: 24px; color: var(--accent); }
.copyright-form .helper-strip { margin-bottom: 3px; }
.copyright-form .field-hint { margin: 6px 0 0; }
.copyright-form .field > p.xs.dim:not(.field-hint) { margin: 6px 0 8px; }
.copyright-form .kw-row .btn { width: 40px; padding: 0; justify-content: center; flex: 0 0 40px; }
.copyright-form .kw-row .btn svg { width: 15px; height: 15px; }
.copyright-form .kw-add { align-self: flex-start; margin-top: 8px; }
.copyright-form .kw-add svg { width: 14px; height: 14px; }
.copyright-submit { align-self: flex-start; min-width: 145px; justify-content: center; }
.copyright-submit svg { width: 15px; height: 15px; }
@media (min-width: 768px) { .form-page-main { padding-top: 48px; } }
@media (max-width: 767px) {
  .submit-form-panel .textarea { min-height: 180px; }
  .submit-actions { grid-template-columns: 1fr; }
}
.req { color: var(--danger); }
.char-count { display: flex; justify-content: flex-end; font-size: 11px; color: var(--fg-dim); margin-top: 4px; }
.drop-zone {
  width: 100%; min-height: 96px; border: 1px dashed var(--border-strong); border-radius: 8px;
  background: var(--bg-elev); color: var(--fg-muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px;
}
.drop-zone small { font-size: 11px; color: var(--fg-dim); }
.kw-row { display: flex; gap: 8px; }
.send-code {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  padding: 3px 12px; border: 0; border-radius: 4px; background: var(--accent-dim);
  color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer;
}

/* —— 标签汇总 —— */
.tag-page { width: 100%; max-width: var(--max-cards); margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.page-header { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.header-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.crumb { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--fg-muted); }
.crumb a { color: var(--accent); }
.title-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
.title-ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent-dim); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px;
}
.title-ico svg { width: 21px; height: 21px; }
@media (min-width: 768px) { .title-ico { width: 44px; height: 44px; } }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.title-row h1 { margin: 0; font-size: 20px; line-height: 1.15; color: var(--fg-bright); }
.title-row p { margin: 4px 0 0; font-size: 14px; color: var(--fg-muted); max-width: 42rem; }
.title-grow { flex: 1; min-width: 0; }
.title-avatar { width: 44px; height: 44px; font-size: 16px; flex-shrink: 0; }
.badge-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.badge { min-height: 26px; padding: 0 8px; border-radius: 999px; background: var(--bg-elev); color: var(--fg-muted); font-size: 11px; display: inline-flex; align-items: center; }
.tag-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.tag-search { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 14rem; padding: 2px 4px 2px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-search); }
@media (max-width: 30rem) { .tag-search { min-width: 0; width: 100%; } }
.tag-search .search-ico { color: var(--fg-dim); display: inline-flex; }
.tag-search input { flex: 1; min-width: 0; height: 34px; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 13px; }
.tag-search-submit { min-width: 52px; justify-content: center; }
.sort-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--fg-muted); font-size: 12px; cursor: pointer; }
.sort-btn svg { width: 14px; height: 14px; }
.sort-btn.on { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.tags-header { min-height: 126px; }
.tags-header .title-row { margin-top: 10px; }
.tag-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 12px; padding: 12px; }
.tag-card { display: block; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); min-height: 122px; }
.tag-card:hover { border-color: var(--accent-border); color: inherit; }
.tag-card-top { display: flex; justify-content: space-between; align-items: center; }
.tag-chip { padding: 2px 6px; border-radius: 4px; background: var(--accent-dim); font-size: 11px; font-weight: 600; color: var(--accent); }
.tag-chip svg { width: 10px; height: 10px; margin-right: 3px; vertical-align: -1px; }
.tag-count { font-size: 11px; color: var(--fg-muted); }
.tag-name { margin: 8px 0 6px; display: flex; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 700; color: var(--fg-bright); }
.tag-open { color: var(--accent); font-size: 13px; font-weight: 400; }
.tag-open svg { width: 14px; height: 14px; }
.tag-meta { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--fg-dim); }

/* —— 个人中心 —— */
.profile-page {
  width: 100%; max-width: var(--max-cards);
  margin: 0 auto; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}
.profile-page [data-panel] { width: 100%; min-width: 0; }
.profile-page .panel { width: 100%; min-width: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
.tabs-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
@media (max-width: 30rem) {
  .tabs-scroll {
    margin: 0 -16px;
    padding: 0 16px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .tabs-scroll::-webkit-scrollbar { display: none; }
}
.tabs-bar { display: flex; width: fit-content; gap: 4px; padding: 4px; background: var(--bg-elev); border-radius: 12px; }
@media (max-width: 30rem) { .tabs-bar { min-width: max-content; } }
.tab-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-muted); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.tab-item:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.tab-item.on { color: var(--accent); background: var(--bg-card); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
.account-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .account-grid { grid-template-columns: 1fr 1fr; } }
.desc-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.desc-item:last-child { border-bottom: 0; }
.desc-k { width: 4.5rem; flex-shrink: 0; font-size: 12px; color: var(--fg-muted); }
.desc-v { color: var(--fg); }
.desc-v b { color: var(--fg-bright); }
.cdkey-row { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
@media (min-width: 768px) { .cdkey-row { flex-direction: row; align-items: center; } }
.cdkey-field { display: flex; align-items: center; gap: 8px; flex: 1; min-height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; }
.cdkey-field input { flex: 1; border: 0; background: transparent; color: var(--fg); outline: none; height: 36px; }
.user-act { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--fg-muted); font-size: 12px; cursor: pointer; }
.user-act:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }

.pf-table { width: 100%; border-collapse: collapse; }
.pf-table th {
  text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 600;
  color: var(--fg-muted); text-transform: uppercase; letter-spacing: .06em;
  background: var(--bg-elev); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.pf-table td { padding: 10px 16px; font-size: 12px; color: var(--fg); border-bottom: 1px solid var(--border); }
.pf-table tbody tr:last-child td { border-bottom: 0; }
.pf-table tbody tr:hover td { background: var(--bg-elev); }
.pf-empty { padding: 48px 0; text-align: center; font-size: 14px; color: var(--fg-muted); }
.pf-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-toolbar .hint { font-size: 12px; color: var(--fg-muted); }
.btn.danger { color: var(--danger); border-color: rgba(248,113,113,.35); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }

.ci-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0 16px; }
.ci-btn {
  min-width: 10rem; min-height: 3.5rem; padding: 10px 24px; border: 0; border-radius: 14px; cursor: pointer;
  color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 40%, transparent);
  display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; overflow: hidden;
}
.ci-btn:hover { transform: translateY(-3px); }
.ci-btn b { font-size: 14px; }
.ci-btn small { font-size: 11px; letter-spacing: .08em; opacity: .85; }
.ci-hint { font-size: 12px; color: var(--fg-muted); }
.ci-board { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.ci-board-h { display: block; margin-bottom: 12px; font-size: 11px; color: var(--fg-muted); letter-spacing: .06em; text-transform: uppercase; }
.ci-board-empty { padding: 32px 0; text-align: center; font-size: 12px; color: var(--fg-muted); }

/* —— 学霸搜影视页 /film —— */
.film-page { width: 100%; max-width: var(--max-cards); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.film-layout { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) {
  .film-layout { flex-flow: wrap; align-items: flex-start; }
  .film-main { flex: 1 1 0%; min-width: 0; }
  .film-side {
    width: 17rem; min-width: 17rem; flex-shrink: 0;
    position: sticky; top: 72px; max-height: calc(100dvh - 88px); overflow-y: auto;
  }
}
.film-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.film-box h1 { margin: 0; font-size: 20px; color: var(--fg-bright); }
.film-poster {
  width: 100%; max-width: 24rem; min-height: 12rem;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-elev); color: var(--fg-dim);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.film-poster img { display: block; width: 100%; max-width: 24rem; border-radius: 7px; border: 1px solid var(--border); }
.film-kv { margin: 0 0 8px; font-size: 14px; color: var(--fg); }
.film-desc { margin: 0; font-size: 14px; color: var(--fg); line-height: 1.7; }
.film-legal { padding: 16px; text-align: center; font-size: 14px; color: var(--warn); }
.film-side { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; width: 100%; }
.film-side h2 { margin: 0 0 8px; font-size: 14px; color: var(--fg-bright); }
.movie-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.movie-item { border-bottom: 1px dashed var(--border); }
.movie-item:last-child { border-bottom: 0; }
.movie-item a { display: flex; gap: 10px; padding: 8px 0; color: inherit; text-decoration: none; }
.movie-thumb {
  width: 4.5rem; height: 6rem; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 5px; background: var(--bg-elev);
}
.movie-item img.movie-thumb { display: block; object-fit: cover; }
.movie-item h3 { margin: 0 0 4px; font-size: 14px; color: var(--fg-bright); }
.movie-item p {
  margin: 0; font-size: 11px; color: var(--fg-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 1024px) {
  .film-layout { flex-wrap: nowrap; }
  .film-side { width: 17rem; min-width: 17rem; flex: 0 0 17rem; }
}

/* —— 学霸搜资源库 /repo —— */
.repo-page { width: 100%; max-width: var(--max-cards); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.repo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.repo-count { font-size: 13px; color: var(--fg-muted); margin-right: auto; }
.repo-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.repo-item { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-bottom: 1px dashed var(--border); }
.repo-item:last-child { border-bottom: 0; }
.repo-item-h { display: flex; align-items: flex-start; gap: 8px; }
.repo-no { color: var(--fg-dim); font-size: 12px; min-width: 1.5rem; padding-top: 2px; }
.repo-item-h a { font-size: 14px; font-weight: 600; color: var(--fg-bright); line-height: 1.4; }
.repo-item-h a:hover { color: var(--accent); }
.repo-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--fg-muted); }
.repo-link { font-size: 12px; color: var(--accent); word-break: break-all; }
.repo-item-foot { display: flex; justify-content: flex-end; }

/* —— 学霸搜 /word 已废弃 —— */
.gone-page { width: 100%; max-width: 32rem; margin: 48px auto; text-align: center; }
.gone-page h2 { margin: 0 0 12px; font-size: 18px; color: var(--fg-bright); }
.gone-page p { margin: 8px 0; font-size: 14px; color: var(--fg-muted); line-height: 1.7; }
.gone-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* —— 论坛关闭 / 违禁词 —— */
.notice-panel { width: 100%; max-width: var(--max-cards); margin: 0 auto; padding: 32px; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; color: var(--fg-muted); }
.banned-page { width: 100%; max-width: var(--max-cards); margin: 0 auto; }
.banned-card { padding: 0; gap: 0; }
.banned-card-h { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid color-mix(in srgb, var(--danger) 18%, var(--border)); background: color-mix(in srgb, var(--danger) 8%, var(--bg-card)); }
.banned-card-h h2 { margin: 0; font-size: 14px; color: var(--fg-bright); }
.banned-title-ico { width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.banned-title-ico svg { width: 17px; height: 17px; }
.banned-stats { margin: 20px 20px 16px; font-size: 12px; color: var(--fg-muted); }
.banned-stats strong { color: var(--fg); }
.banned-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
.word-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 7px; font-size: 12px;
  background: color-mix(in srgb, #dc2626 10%, transparent); color: #dc2626;
}

/* 详情侧栏与二维码 */
.doc-side { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) { .doc-side { position: sticky; top: 72px; } }
.qr-box { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-image { width: 104px; height: 104px; display: block; border-radius: 6px; background: #fff; object-fit: contain; }
.qr-fake { display: none; }
.qr-box.qr-unavailable { display: none; }
@media (min-width: 1024px) {
  .resource-box .qr-box { position: absolute; right: 16px; bottom: 78px; width: 144px; }
  .resource-box .meta-rows { padding-right: 164px; }
}
.auth-card .input-wrap .send-code { right: 4px; }

/* —— 配置驱动：公告 / 弹窗 / 验证码 / 拦截 / SEO 伪标签 —— */
.seo-mock { display: none !important; }
.site-top-notice, .site-notice {
  padding: 10px 16px; font-size: 13px; line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.site-notice { border: 1px solid var(--border); border-radius: 10px; margin: 0 0 12px; }
.site-notice-info, .site-top-notice.site-notice-info { background: var(--accent-dim); color: var(--fg-bright); }
.site-notice-success { background: color-mix(in srgb, var(--success) 14%, transparent); }
.site-notice-warning { background: color-mix(in srgb, var(--warn) 16%, transparent); }
.site-notice-error { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.site-modal-mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.site-modal {
  max-width: 90vw; max-height: 80vh; overflow: auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
}
.site-modal-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.site-modal-b { font-size: 14px; line-height: 1.7; color: var(--fg); }
.site-skill { margin: 0; white-space: pre-wrap; font: 13px/1.7 var(--font); color: var(--fg); }
.site-aside-btn {
  position: fixed; right: 16px; bottom: 88px; z-index: 40;
  padding: 10px 14px; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-contrast);
  font-size: 13px; text-decoration: none; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}
.site-coupon {
  position: fixed; left: 16px; bottom: 88px; z-index: 40; width: 180px;
  padding: 12px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border);
  font-size: 12px;
}
.site-coupon img { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.site-captcha { margin: 12px 0; user-select: none; }
.site-captcha-preview { margin-bottom: 8px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.site-captcha-preview img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.site-captcha-track {
  height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; color: var(--fg-muted); font-size: 13px;
}
.site-captcha-track i { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 6px; background: var(--bg-elev); border: 1px solid var(--border); cursor: grab; touch-action: none; transition: box-shadow .15s; }
.site-captcha-track i:active { cursor: grabbing; box-shadow: 0 0 0 4px var(--accent-dim); }
.site-captcha.is-busy { opacity: .7; pointer-events: none; }
.site-block { min-height: 100dvh; display: grid; place-items: center; padding: 32px; text-align: center; }
.site-block h1 { margin: 0 0 8px; font-size: 22px; color: var(--fg-bright); }
.site-disk-total { margin: 10px 0 0; font-size: 13px; color: var(--fg-muted); }
.site-hot-words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.site-hot-words a { font-size: 12px; color: var(--accent); text-decoration: none; }
.powered-by { opacity: .7; }
.import-notice { font-size: 13px; line-height: 1.8; color: var(--fg-muted); }
.reg-prompt { font-size: 13px; color: var(--fg-muted); margin: 0 0 12px; }
.custom-links { display: grid; gap: 10px; }
@media (min-width: 768px) { .custom-links { grid-template-columns: repeat(3, 1fr); } }
.custom-links .panel { text-decoration: none; color: inherit; }
.custom-links strong { display: block; margin-bottom: 4px; color: var(--fg-bright); }
.custom-page { width: 100%; max-width: var(--max-cards); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.custom-stats { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 768px) { .custom-stats { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-k { font-size: 12px; color: var(--fg-muted); }
.stat-v { font-size: 14px; color: var(--fg-bright); word-break: break-all; }
.link-card {
  padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card);
  display: flex; flex-direction: column; gap: 8px;
}
.link-card p { margin: 0; font-size: 12px; color: var(--fg-muted); line-height: 1.6; }
.link-card .btn { align-self: flex-start; }
.talent-search { max-width: none; margin: 0 0 12px; width: 100%; }
.talent-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 0; background: transparent; border: 0; margin-bottom: 12px;
}
.talent-filters .filter-dd { width: auto; min-width: 8.5rem; }
.id-copy {
  margin-left: 6px; width: 22px; height: 22px; padding: 0; border: 1px solid var(--border); border-radius: 6px;
  background: transparent; color: var(--fg-muted); cursor: pointer; font-size: 12px; line-height: 1;
}
.id-copy:hover { color: var(--accent); border-color: var(--accent); }
.quick-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.site-toast { position: fixed; z-index: 1400; left: 50%; top: 20px; padding: 10px 16px; border: 1px solid var(--accent-border); border-radius: 8px; background: var(--bg-card); color: var(--fg); opacity: 0; transform: translate(-50%,-12px); pointer-events: none; transition: .18s ease; }
.site-toast.show { opacity: 1; transform: translate(-50%,0); }
.site-toast.danger { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); color: var(--danger); }
.form-success { text-align: center; padding: 28px 12px; }
.form-success h2 { margin: 0 0 10px; font-size: 20px; color: var(--fg-bright); }
.form-success p { margin: 0 0 20px; color: var(--fg-muted); line-height: 1.7; }
.action-stack { display: grid; gap: 10px; margin-bottom: 10px; }
.detail-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-kv > div { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.detail-kv span { display: block; font-size: 12px; color: var(--fg-muted); margin-bottom: 6px; }
.detail-kv b { font-size: 20px; color: var(--fg-bright); }
.site-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.user-act.on { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.drop-zone.on { border-color: var(--accent); background: var(--accent-dim); }
.ci-btn.on { opacity: .7; }
.site-captcha.is-done .site-captcha-track { border-color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.site-captcha.is-done span { color: var(--success); }

/* Standalone error page */
.not-found-page {
  min-height: 100vh; margin: 0; display: grid; grid-template: 1fr / 1fr; grid-template-areas: none; place-items: center; padding: 24px;
  background: #090909; color: #d8d8da;
}
.not-found-card {
  width: min(384px, 100%); height: 325px; padding: 32px; text-align: center;
  border: 1px solid #29292b; border-radius: 16px; background: #111112;
  box-shadow: 0 16px 60px rgb(0 0 0 / .26); box-sizing: border-box;
}
.not-found-icon {
  position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 17px;
  border: 1px solid #38578b; border-radius: 12px; background: linear-gradient(145deg, #1c2230, #15171d);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .025);
}
.not-found-icon svg { width: 37px; height: 37px; fill: none; stroke: #d4d6dc; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.not-found-icon i { position: absolute; width: 6px; height: 6px; border: 1px solid #315d9f; border-radius: 50%; background: #111112; }
.not-found-icon i:first-of-type { top: -4px; right: 10px; }
.not-found-icon i:last-of-type { right: -4px; bottom: 10px; }
.not-found-code { margin: 0 0 9px; color: #77777c; font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.not-found-card h1 { margin: 0 0 8px; color: #f0f0f2; font-size: 20px; line-height: 1.5; font-weight: 700; }
.not-found-copy { margin: 0; color: #85858a; font-size: 14px; line-height: 1.75; }
.not-found-actions { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.not-found-actions a, .not-found-actions button {
  min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid #2a2a2d; border-radius: 8px; background: #151516; color: #a2a2a6;
  font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; box-sizing: border-box;
}
.not-found-actions .not-found-home { border-color: #5f8fe7; background: #6b9bf2; color: #101727; font-weight: 600; }
.not-found-actions svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.not-found-actions a:hover, .not-found-actions button:hover { filter: brightness(1.08); }
@media (max-width: 30rem) {
  .not-found-card { height: auto; min-height: 0; padding: 28px 20px; }
  .not-found-actions { flex-direction: column; }
}
