/* ============================================================
   游戏本地化从业者资源 — 主样式
   字体：Noto Serif SC (正文) + JetBrains Mono (代码)
   配色：暗色为主，翡翠绿accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg:        #0e1117;
  --surface:   #161b25;
  --surface2:  #1d2333;
  --border:    rgba(255,255,255,0.07);
  --text:      #dde3ee;
  --muted:     #7e8fa8;
  --accent:    #34d399;   /* emerald-400 */
  --accent2:   #6ee7b7;   /* emerald-300 */
  --accent-bg: rgba(52,211,153,0.08);
  --accent-border: rgba(52,211,153,0.25);
  --code-bg:   #0a0e15;
  --radius:    14px;
  --radius-sm: 8px;
  --font-body: 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --font-ui:   -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --notion-body-size: 16px;
  --notion-body-line: 1.75;
  --notion-h1: 1.875rem;
  --notion-h2: 1.5rem;
  --notion-h3: 1.25rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f4f6f0;
    --surface:   #ffffff;
    --surface2:  #eef0eb;
    --border:    rgba(0,0,0,0.09);
    --text:      #1a2030;
    --muted:     #6b7589;
    --accent:    #059669;
    --accent2:   #047857;
    --accent-bg: rgba(5,150,105,0.06);
    --accent-border: rgba(5,150,105,0.22);
    --code-bg:   #f0f2ef;
  }
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Layout ── */
.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  padding: 5px 11px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface2);
}

/* ── Main ── */
main.wrap { padding-top: 32px; padding-bottom: 56px; }

/* ── Hero ── */
.hero { padding: 12px 0 20px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.hero p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Board grid (3 cards on home) ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
@media (max-width: 780px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-bg) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.card:hover::after { opacity: 1; }
.card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-family: var(--font-body);
  font-weight: 600;
}
.card p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.card .meta {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ── Section ── */
.section { margin: 0 0 32px; }
.section h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
}

/* ── List (recent articles / board list) ── */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.list li:last-child { border-bottom: none; }
.list a {
  text-decoration: none;
  font-size: 14.5px;
  flex: 1 1 auto;
  min-width: 0;
}
.list a:hover { color: var(--accent); }
.list .list-date {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.list .list-date-soft {
  border-color: color-mix(in srgb, var(--accent-border) 72%, transparent);
  background: color-mix(in srgb, var(--accent-bg) 68%, transparent);
  color: color-mix(in srgb, var(--accent2) 82%, var(--text));
}

/* ── Pills / Tags ── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.muted { color: var(--muted); font-size: 13px; }

/* ── Board page header ── */
.board-header {
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.board-header h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-family: var(--font-body);
  font-weight: 700;
}
.board-header p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Article page ── */
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px 36px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 600px) { .article { padding: 18px 16px 24px; } }

.article-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.article-header h1 {
  margin: 0 0 12px;
  font-size: 26px;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.article-date {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-border) 72%, transparent);
  background: color-mix(in srgb, var(--accent-bg) 68%, transparent);
  color: color-mix(in srgb, var(--accent2) 82%, var(--text));
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.article-credits {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

/* ── Summary box ── */
.article-summary {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.summary-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 6px;
}
.article-summary p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

/* ── Auth / Comments (Zhihu-like) ── */
.comments {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.comments h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}
.comment-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.comment-user {
  font-size: 13.5px;
  color: var(--text);
}
.comment-top-actions button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12.5px;
}
.comment-top-actions button:hover {
  border-color: var(--accent);
}
.auth-panel,
.comment-editor,
.comment-list {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.auth-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.auth-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.auth-row input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
}
.auth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.auth-actions button,
.editor-actions button,
.tabbar button,
.picker-nav,
.emoji-grid button,
.format-grid button,
.media-upload-btn,
.media-url-row button,
.ghost-action {
  border: 1px solid var(--accent-border);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12.5px;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.auth-actions button:hover,
.editor-actions button:hover,
.tabbar button:hover,
.picker-nav:hover,
.emoji-grid button:hover,
.format-grid button:hover,
.media-upload-btn:hover,
.media-url-row button:hover,
.ghost-action:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.auth-status {
  color: var(--muted);
  font-size: 12.5px;
}
.comment-editor {
  margin-bottom: 16px;
  border-radius: 14px;
}
.tabbar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.tabbar button[data-active="true"],
.picker-nav[data-active="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}
.comment-editor-main {
  display: grid;
  gap: 10px;
}
.tabpanes {
  display: grid;
}
.tabpane {
  display: grid;
  gap: 10px;
}
.picker-shell {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  min-height: 154px;
}
.picker-sidebar {
  display: grid;
  gap: 8px;
  align-content: start;
}
.picker-nav {
  text-align: left;
  justify-content: flex-start;
}
.picker-panels {
  min-width: 0;
}
.picker-panel {
  min-height: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface2) 94%, transparent));
}
.emoji-grid,
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}
.emoji-grid button {
  min-height: 42px;
  font-size: 20px;
  padding: 0;
}
.format-grid button {
  min-height: 42px;
  padding: 0 10px;
}
.media-panel {
  display: grid;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface2) 94%, transparent));
}
.media-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.media-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.media-hint {
  color: var(--muted);
  font-size: 12px;
}
.media-url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.media-url-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
}
.editor {
  min-height: 140px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.editor img {
  display: block;
  max-width: min(320px, 100%);
  margin: 10px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.editor[contenteditable="true"]:empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ghost-action {
  background: transparent;
  color: var(--muted);
}
.comment-list {
  display: grid;
  gap: 12px;
}
.comment-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.comment-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.comment-meta .comment-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--accent-border);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.comment-body {
  font-size: 14px;
  line-height: 1.75;
}
.comment-body p,
.comment-body ul,
.comment-body ol,
.comment-body blockquote,
.comment-body pre,
.comment-body h4 {
  margin: 0 0 10px;
}
.comment-body img {
  display: block;
  max-width: min(360px, 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 10px;
}
.comment-body a {
  color: var(--accent2);
}
.comment-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code-bg);
}
.comment-body mark {
  padding: 1px 5px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 26%, #ffd84d);
  color: var(--text);
}
.comment-body blockquote {
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent-bg) 92%, transparent);
  border-radius: 0 10px 10px 0;
}
.comment-body h4 {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--accent2);
}
.comment-body hr {
  border: none;
  border-top: 1px dashed var(--accent-border);
  margin: 14px 0;
}
.comment-tip {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--accent-border);
  background: var(--accent-bg);
}
.comment-spoiler {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, var(--accent-bg));
  color: var(--muted);
}
.comment-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.comment-actions button {
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}
.comment-editor-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.comment-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
}
.comment-left {
  display: flex;
  align-items: flex-start;
}
.comment-right {
  display: grid;
  gap: 6px;
}
.comment-avatar,
.comment-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.comment-avatar {
  object-fit: cover;
}
.comment-avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid var(--border);
}
.comment-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-children {
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 12%, transparent);
  display: grid;
  gap: 10px;
}
.mention {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 720px) {
  .picker-shell {
    grid-template-columns: 1fr;
  }
  .picker-sidebar {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  }
  .media-url-row {
    grid-template-columns: 1fr;
  }
  .comment-editor-header {
    grid-template-columns: 1fr;
  }
}

/* ── Profile / Admin ── */
.profile-page,
.admin-shell {
  display: grid;
  gap: 24px;
}
.profile-hero,
.admin-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--surface2) 92%, var(--accent-bg)));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
}
.admin-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}
.admin-hero > div:first-child {
  display: grid;
  gap: 10px;
  max-width: 68ch;
}
.admin-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.admin-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 34px;
  line-height: 1.2;
}
.admin-intro {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.admin-intro-subtle {
  margin-top: 2px;
  padding: 12px 14px;
  max-width: 62ch;
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-bg), color-mix(in srgb, var(--surface2) 90%, transparent));
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 13px;
  line-height: 1.75;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.admin-glow {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 44%, transparent) 0%, transparent 68%);
  filter: blur(8px);
  opacity: 0.9;
  pointer-events: none;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 20px;
}
.admin-panel,
.profile-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-head.compact { margin-bottom: 12px; }
.panel-head h2,
.panel-head h3,
.profile-panel h2 {
  margin: 0;
  font-family: var(--font-body);
}
.panel-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent2);
  font-size: 12px;
  font-family: var(--font-mono);
}
.admin-form {
  display: grid;
  gap: 18px;
}
.admin-config-block {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface2) 84%, transparent), color-mix(in srgb, var(--surface2) 96%, var(--accent-bg)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.admin-config-block-secondary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface2) 88%, transparent), color-mix(in srgb, var(--surface2) 98%, rgba(255,255,255,0.02)));
}
.admin-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-block-head h3 {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-body);
}
.admin-block-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 48ch;
}
.admin-block-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent2);
  font-size: 12px;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface2) 90%, var(--accent-bg));
  border: 1px solid var(--border);
}
.switch-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.switch-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.task-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.form-grid label,
.task-config-grid label,
.profile-actions .toolbar,
.admin-actions {
  display: flex;
  gap: 10px;
}
.config-field {
  min-height: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 92%, var(--accent-border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 78%, transparent), color-mix(in srgb, var(--surface2) 92%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}
.form-grid label,
.task-config-grid label {
  flex-direction: column;
  align-items: stretch;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.field-hint {
  display: block;
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.form-grid span,
.task-config-grid span {
  font-size: 13px;
  color: var(--muted);
}
.form-grid small,
.task-config-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.form-grid input,
.form-grid select,
.task-config-grid input,
.task-config-grid select,
.profile-actions input {
  width: 100%;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, var(--accent-border));
  background: color-mix(in srgb, var(--surface2) 94%, transparent);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  margin-top: auto;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.form-grid input:focus,
.form-grid select:focus,
.task-config-grid input:focus,
.task-config-grid select:focus,
.profile-actions input:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.admin-actions {
  flex-wrap: wrap;
  align-items: center;
}
.admin-actions .auth-btn {
  min-height: 42px;
}
.admin-status,
.profile-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 13px;
  padding: 2px 2px 0;
}
.status-hero-card {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent-border) 78%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-bg) 90%, transparent), color-mix(in srgb, var(--surface2) 92%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.status-hero-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  font-family: var(--font-mono);
}
.status-hero-main {
  display: grid;
  gap: 6px;
}
.status-hero-main strong {
  font-size: 28px;
  line-height: 1.15;
  font-family: var(--font-body);
}
.status-hero-main span {
  font-size: 13px;
  color: var(--muted);
}
.status-hero-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.status-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 92%, transparent);
}
.status-card-accent {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-bg) 85%, transparent), color-mix(in srgb, var(--surface2) 94%, transparent));
  border-color: color-mix(in srgb, var(--accent-border) 78%, var(--border));
}
.status-card-wide {
  grid-column: 1 / -1;
}
.status-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-value {
  font-size: 15px;
  line-height: 1.6;
  font-family: var(--font-mono);
  color: var(--text);
}
.admin-highlight-card {
  margin-top: 18px;
}
.admin-history-panel {
  display: grid;
  gap: 16px;
}
.history-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-toggle {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 92%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.history-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
}
.admin-history {
  display: grid;
  gap: 14px;
}
.history-item {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 92%, transparent);
}
.history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.history-top strong {
  font-size: 14px;
}
.history-item p {
  margin: 0;
  color: var(--text);
}
.history-meta,
.history-ids,
.history-titles,
.publish-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.history-meta span,
.history-ids code,
.history-titles span,
.title-pill,
.history-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}
.history-meta span,
.history-ids code,
.history-titles span,
.title-pill {
  background: var(--surface);
  border: 1px solid var(--border);
}
.history-ids code {
  font-family: var(--font-mono);
}
.title-pill.muted {
  color: var(--muted);
}
.admin-highlight-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 92%, transparent);
}
.history-badge {
  border: 1px solid var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent2);
}
.history-badge.is-skipped {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}
.history-empty {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  color: var(--muted);
}
.history-fadeout {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent-border) 72%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface2) 78%, transparent), color-mix(in srgb, var(--accent-bg) 55%, transparent));
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.admin-log-card pre {
  margin: 0;
  min-height: 220px;
  padding: 16px;
  border-radius: 14px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.profile-avatar-lg {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent2) 70%, white));
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #08110d;
  font-size: 30px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}
.profile-title {
  margin: 0 0 4px;
  font-family: var(--font-body);
}
.profile-sub {
  margin: 0;
  color: var(--muted);
}
.profile-actions {
  display: grid;
  gap: 14px;
}
.profile-actions .toolbar {
  flex-wrap: wrap;
}
.auth-btn {
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.auth-btn:hover { transform: translateY(-1px); }
.auth-btn.solid {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent2) 72%, white));
  color: #07130d;
  border-color: transparent;
}
.auth-btn.ghost {
  background: transparent;
  color: var(--text);
}
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-hero { flex-direction: column; }
  .admin-glow { width: 120px; height: 120px; }
  .admin-block-head { flex-direction: column; }
  .task-config-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .status-card-wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .switch-row { align-items: flex-start; }
  .config-field { padding: 13px; }
  .field-hint { min-height: auto; }
  .history-panel-actions { width: 100%; justify-content: space-between; }
}

/* ── Article body typography ── */
.article-body {
  font-family: var(--font-ui);
  font-size: var(--notion-body-size);
  line-height: var(--notion-body-line);
  color: var(--text);
  font-weight: 400;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  margin: 1.9em 0 0.55em;
  line-height: 1.3;
  color: var(--text);
}
.article-body h1 { font-size: var(--notion-h1); }
.article-body h2 {
  font-size: var(--notion-h2);
  padding-bottom: 0;
  border-bottom: none;
}
.article-body h3 { font-size: var(--notion-h3); }
.article-body p {
  margin: 0 0 0.85em;
}
.article-body strong {
  font-weight: 600;
}
.article-body ul,
.article-body ol {
  margin: 0.35em 0 0.95em;
  padding-left: 1.5em;
}
.article-body li { margin: 0.18em 0; }
.article-body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(55, 53, 47, 0.35);
  text-underline-offset: 2px;
}
.article-body a:hover { text-decoration-color: currentColor; }

/* ── Code blocks ── */
.article-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 1.2em 0;
  font-size: 13.5px;
  line-height: 1.6;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.article-body p code,
.article-body li code {
  background: color-mix(in srgb, var(--accent) 10%, var(--code-bg));
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
}

/* ── Images / Notion-like blocks ── */
.article-image-gallery {
  margin: 1.6em 0 0;
  display: grid;
  gap: 16px;
}
.article-image {
  margin: 1.2em 0;
}
.article-image figcaption,
.image-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.notion-callout {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  margin: 1.1em 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.notion-callout-icon {
  line-height: 1.2;
  font-size: 18px;
}
.notion-callout-body > :first-child {
  margin-top: 0;
}
.notion-callout-body > :last-child {
  margin-bottom: 0;
}
.todo-item,
.toggle-item {
  list-style: none;
}
.todo-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}
.todo-text,
.toggle-text {
  display: inline;
}
.toggle-item > details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface2) 76%, transparent);
  padding: 8px 10px;
}
.toggle-item > details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-item > details > summary::-webkit-details-marker {
  display: none;
}
.toggle-item > details[open] .toggle-marker {
  transform: rotate(90deg);
}
.toggle-item > details > *:not(summary) {
  margin-top: 10px;
}
.todo-box,
.toggle-marker {
  color: var(--accent);
  font-weight: 700;
}
.toggle-marker {
  display: inline-block;
  transition: transform 0.18s ease;
}
.article-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 0;
  border: 1px solid var(--border);
  display: block;
}
.zoomable-image {
  cursor: zoom-in;
  touch-action: manipulation;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(48px, 72px) minmax(0, 1fr) minmax(48px, 72px);
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(10px);
}
.image-lightbox[hidden] {
  display: none;
}
.lightbox-stage {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.lightbox-image-wrap {
  width: min(92vw, 1400px);
  height: min(78vh, 980px);
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  transform-origin: center center;
  transition: transform 0.14s ease;
  user-select: none;
}
.lightbox-image-wrap[data-zoomed='true'] .lightbox-image {
  transition: none;
}
.lightbox-caption {
  max-width: min(82vw, 900px);
  color: #e7edf7;
  text-align: center;
  line-height: 1.7;
  font-size: 14px;
}
.lightbox-hint {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  text-align: center;
}
.lightbox-nav,
.lightbox-close {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
}
.lightbox-nav {
  width: 48px;
  height: 48px;
  font-size: 34px;
  line-height: 1;
}
.lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}
body.lightbox-open {
  overflow: hidden;
}
@media (max-width: 720px) {
  .image-lightbox {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }
  .lightbox-stage {
    width: 100%;
  }
  .lightbox-image-wrap {
    width: 100%;
    height: min(68vh, 72vw);
  }
  .lightbox-nav {
    position: absolute;
    bottom: 16px;
    z-index: 2;
    background: rgba(255,255,255,0.16);
  }
  .lightbox-prev {
    left: 16px;
  }
  .lightbox-next {
    right: 16px;
  }
  .lightbox-hint {
    font-size: 11px;
  }
}

/* ── Blockquote ── */
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1em 0;
  padding: 10px 16px;
  background: var(--accent-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-style: italic;
}
.article-body blockquote p { margin: 0; }

/* ── Divider ── */
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ── Tables ── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.2em 0;
}
.article-body th,
.article-body td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-body th {
  background: var(--surface2);
  font-weight: 700;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 0.3px;
}
.article-body tr:nth-child(even) { background: var(--surface2); }

/* ── Breadcrumb / back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: '\2190'; }

/* ── Empty state ── */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty strong { display: block; font-size: 20px; margin-bottom: 8px; color: var(--text); }

/* ── Comment extras ── */
.comment-editor-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.comment-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
}
.comment-left {
  display: flex;
  align-items: flex-start;
}
.comment-right {
  display: grid;
  gap: 6px;
}
.comment-avatar,
.comment-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.comment-avatar {
  object-fit: cover;
}
.comment-avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid var(--border);
}
.comment-actions-row {
  display: flex;
  gap: 8px;
}
.comment-children {
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 12%, transparent);
  display: grid;
  gap: 10px;
}
.mention {
  color: var(--accent);
  font-weight: 600;
}

.auth-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-guest {
  display: flex;
  gap: 10px;
}
.auth-userbox {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.auth-btn.ghost {
  background: transparent;
}
.auth-btn.solid {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent-border);
}
.auth-btn:hover {
  border-color: var(--accent);
}
.auth-btn:active {
  transform: translateY(1px);
}
.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.user-trigger:hover {
  border-color: var(--accent);
}
.auth-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  background-size: cover;
  background-position: center;
  font-size: 12px;
}
.auth-user {
  font-size: 12.5px;
}
.caret {
  font-size: 11px;
  color: var(--muted);
}
.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 20;
}
.user-menu.open {
  opacity: 1;
  transform: translateY(0);
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  color: var(--text);
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.user-menu-item:hover {
  background: var(--surface2);
}
.user-menu-item.danger {
  color: #f87171;
}

/* ── Profile page ── */
.profile-page {
  display: grid;
  gap: 18px;
}
.profile-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  background-size: cover;
  background-position: center;
  font-size: 22px;
}
.profile-title {
  margin: 0;
  font-size: 22px;
}
.profile-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.profile-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.profile-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}
.profile-actions .toolbar {
  background: var(--surface2);
  padding: 10px;
  border-radius: 12px;
}
.profile-status {
  color: var(--muted);
  font-size: 12.5px;
}
@media (max-width: 720px) {
  .profile-hero { grid-template-columns: 1fr; }
  .auth-bar { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
}

.auth-modal {
  position: fixed;
  inset: 0;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(110, 231, 183, 0.12), transparent 30%),
    rgba(7, 10, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  display: grid;
  place-items: center;
  z-index: 9999;
}
.auth-modal[hidden] { display: none; }
body.auth-modal-open {
  overflow: hidden;
}
.auth-panel-card {
  position: relative;
  width: min(960px, 96vw);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-border) 45%, var(--border));
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.auth-panel-card[data-mode='register'] {
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.94fr) minmax(0, 1.06fr);
}
.auth-aside {
  position: relative;
  padding: 36px 32px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface2)) 0%, color-mix(in srgb, var(--accent2) 10%, var(--surface)) 100%);
  border-right: 1px solid color-mix(in srgb, var(--accent-border) 55%, transparent);
}
.auth-aside::after {
  content: '';
  position: absolute;
  right: -72px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.18), transparent 68%);
  pointer-events: none;
}
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-border) 70%, transparent);
  background: rgba(255,255,255,0.06);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-aside h3 {
  margin: 18px 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.12;
  font-family: var(--font-body);
}
.auth-aside p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  font-size: 14px;
  line-height: 1.8;
}
.auth-feature-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.auth-feature-list li {
  position: relative;
  padding-left: 20px;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  font-size: 13.5px;
}
.auth-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.35);
}
.auth-aside-metrics {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}
.auth-aside-metrics article {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid color-mix(in srgb, var(--accent-border) 45%, transparent);
}
.auth-aside-metrics strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent2);
}
.auth-aside-metrics span {
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-size: 13px;
}
.auth-form-panel {
  padding: 34px 32px 30px;
  display: grid;
  gap: 20px;
}
.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 82%, transparent);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.auth-modal-close:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--accent);
}
.auth-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface2) 92%, transparent);
  border: 1px solid var(--border);
}
.auth-tab {
  min-width: 112px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.auth-tab:hover {
  color: var(--text);
}
.auth-tab.is-active {
  color: #07130d;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent2) 72%, white));
  box-shadow: 0 10px 24px rgba(52, 211, 153, 0.18);
}
.auth-form-head h4 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-family: var(--font-body);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.auth-form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.auth-panel {
  display: grid;
  gap: 18px;
  min-height: 400px;
}
.auth-form-grid {
  display: grid;
  gap: 14px;
  min-height: 380px;
}
.auth-field {
  display: grid;
  gap: 8px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.auth-field span {
  font-size: 13px;
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.auth-field input {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--surface2) 88%, transparent);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px 14px 42px;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-input-wrap-password input {
  padding-right: 74px;
}
.auth-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 92%, transparent);
}
.auth-field input:focus {
  border-color: color-mix(in srgb, var(--accent) 78%, white);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}
.auth-password-toggle {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--accent2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}
.auth-password-toggle:hover {
  background: color-mix(in srgb, var(--accent-bg) 86%, transparent);
}
.auth-field-hint {
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.auth-field[data-state='success'] .auth-input-wrap input {
  border-color: rgba(52, 211, 153, 0.5);
}
.auth-field[data-state='success'] .auth-field-hint {
  color: var(--accent2);
}
.auth-field[data-state='error'] .auth-input-wrap input {
  border-color: rgba(248, 113, 113, 0.62);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.09);
}
.auth-field[data-state='error'] .auth-field-hint {
  color: #fca5a5;
}
.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.auth-primary-btn,
.auth-secondary-btn {
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.auth-primary-btn {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent2) 72%, white));
  color: #07130d;
  box-shadow: 0 14px 30px rgba(52, 211, 153, 0.18);
}
.auth-primary-btn:hover,
.auth-secondary-btn:hover {
  transform: translateY(-1px);
}
.auth-secondary-btn {
  background: color-mix(in srgb, var(--surface2) 92%, transparent);
  color: var(--text);
  border: 1px solid var(--border);
}
.auth-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.auth-status[data-state='success'] {
  color: var(--accent2);
}
.auth-status[data-state='error'] {
  color: #fca5a5;
}
.auth-status[data-state='pending'] {
  color: #facc15;
}
@media (max-width: 820px) {
  .auth-modal {
    padding: 14px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 28px 24px 22px;
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-border) 55%, transparent);
  }
  .auth-form-panel {
    padding: 24px;
  }
}
@media (max-width: 560px) {
  .auth-panel-card {
    border-radius: 22px;
  }
  .auth-tabs {
    width: 100%;
  }
  .auth-tab {
    min-width: 0;
  }
  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-primary-btn,
  .auth-secondary-btn {
    width: 100%;
  }
}

.site-footer {
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── Animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero     { animation: fade-up 0.45s ease both; }
.grid     { animation: fade-up 0.5s 0.08s ease both; }
.section  { animation: fade-up 0.5s 0.14s ease both; }
.article  { animation: fade-up 0.45s ease both; }
.board-header { animation: fade-up 0.4s ease both; }
 