:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1a1d1f;
  --ink-2: #474e52;
  --muted: #858b8f;
  --line: #e8e3da;
  --line-strong: #d9d2c5;
  --accent: #b8502f;
  --accent-dark: #98401f;
  --accent-soft: #f7e9e3;
  --green: #2c5f52;
  --green-soft: #e7f0ed;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(26, 29, 31, .04), 0 12px 32px -18px rgba(26, 29, 31, .25);
  --max: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--ink);
  color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.brand-tag { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .08em; margin-top: 2px; }

.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
  transition: background .18s, color .18s; white-space: nowrap;
}
.main-nav a:hover { background: #f0ece4; color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-form { position: relative; }
.search-form input {
  width: 190px; height: 36px; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 0 36px 0 14px; font-size: 14px; outline: none;
  transition: border-color .18s, width .2s;
}
.search-form input:focus { border-color: var(--line-strong); width: 230px; }
.search-form button {
  position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border: 0;
  background: transparent; cursor: pointer; color: var(--muted); border-radius: 50%;
}
.search-form button:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.avatar { border-radius: 50%; object-fit: cover; background: #eee; }
.avatar-xs { width: 22px; height: 22px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 96px; height: 96px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; }

/* ---------- hero ---------- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.section-title { font-size: 22px; }
.section-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.section-more { font-size: 13px; color: var(--muted); }
.section-more:hover { color: var(--accent); }

.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-top: 28px; }
.hero-lead { position: relative; border-radius: var(--radius); overflow: hidden; background: #23262a; min-height: 360px; }
.hero-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-lead .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.hero-lead .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.hero-lead h2 { font-size: 28px; line-height: 1.35; margin: 10px 0 10px; }
.hero-lead p { color: rgba(255,255,255,.78); font-size: 14px; max-width: 80%; }
.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 500;
}
.chip-light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); }

.hero-side { display: flex; flex-direction: column; gap: 20px; }
.hero-side .card { flex: 1; }
.hero-side .card .thumb { aspect-ratio: 16/8; }
.hero-side .card .body { padding: 14px 16px 16px; }
.hero-side .card h3 { font-size: 16px; line-height: 1.45; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; background: #eee9e1; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #efe9df, #e3dccf); color: #a79e8d;
  font-size: 26px; font-weight: 700; letter-spacing: .08em;
}
.card .cat-badge {
  position: absolute; left: 12px; top: 12px; height: 24px; padding: 0 10px;
  display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 500;
}
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 17px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .desc { color: var(--ink-2); font-size: 13.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.card-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- home layout ---------- */
.home-main { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }

.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 88px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card h3 { font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.side-card h3::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); }

.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.rank-num { width: 18px; flex-shrink: 0; color: var(--accent); font-weight: 700; font-size: 13px; }
.rank-item a:hover { color: var(--accent); }

.author-list { display: flex; flex-direction: column; gap: 14px; }
.author-row { display: flex; align-items: center; gap: 10px; }
.author-row .name { font-size: 14px; font-weight: 500; }
.author-row .sub { font-size: 12px; color: var(--muted); }
.author-row .follow { margin-left: auto; font-size: 12px; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: #f3efe8; color: var(--ink-2); }
.tag-pill:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- article page ---------- */
.article-head { max-width: 780px; margin: 0 auto; padding-top: 36px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--line-strong); }
.article-title { font-size: 34px; line-height: 1.35; letter-spacing: -.02em; }
.article-dek { margin-top: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.article-byline { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-byline .who { font-size: 14px; font-weight: 500; }
.article-byline .when { font-size: 12.5px; color: var(--muted); }
.article-byline .stats { margin-left: auto; font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; }

.article-cover { max-width: 920px; margin: 20px auto 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/8; background: #eee9e1; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.prose { max-width: 760px; margin: 30px auto 0; font-size: 17px; line-height: 1.9; color: #24282b; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { font-size: 22px; margin: 1.8em 0 .7em; }
.prose h3 { font-size: 18px; margin: 1.6em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; background: #f5f1e9; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose img { border-radius: 10px; margin: 1.4em auto; }
.prose a { color: var(--accent-dark); border-bottom: 1px solid rgba(184,80,47,.3); }

.article-foot { max-width: 760px; margin: 40px auto 0; }
.author-card { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.author-card .info { flex: 1; }
.author-card .info h3 { font-size: 16px; }
.author-card .info p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.report-link { display: block; text-align: center; margin: 28px 0 0; font-size: 12px; color: var(--muted); }
.report-link:hover { color: var(--accent); }

/* ---------- listings ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: 30px; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 720px; }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin: 36px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; border: 1px solid var(--line); background: #fff;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { color: var(--muted); background: #f4f1eb; }

/* ---------- author page ---------- */
.author-hero { display: flex; gap: 22px; align-items: center; padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.author-hero .avatar-lg { border: 4px solid #fff; box-shadow: var(--shadow); }
.author-hero h1 { font-size: 26px; }
.author-hero .bio { color: var(--ink-2); font-size: 14px; margin-top: 6px; max-width: 560px; }
.author-hero .facts { display: flex; gap: 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.author-stats { display: flex; gap: 28px; margin-left: auto; }
.stat .num { font-size: 22px; font-weight: 700; }
.stat .label { font-size: 12px; color: var(--muted); }

/* ---------- dashboard ---------- */
.dash-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0 64px; align-items: start; }
.dash-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 88px; }
.dash-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.dash-nav a:hover { background: #f6f2ea; }
.dash-nav a.active { background: var(--ink); color: #fff; }
.dash-nav .sep { height: 1px; background: var(--line); margin: 8px 4px; }

.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dash-head h1 { font-size: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-card .num { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat-card .label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; padding: 12px 16px; font-size: 12px; color: var(--muted); font-weight: 500; background: #faf7f1; border-bottom: 1px solid var(--line); }
table.data td { padding: 14px 16px; border-bottom: 1px solid #f2eee6; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .title-cell { max-width: 420px; }
table.data .title-cell a:hover { color: var(--accent); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.badge-published { background: var(--green-soft); color: var(--green); }
.badge-pending { background: #fff3d9; color: #8a5a00; }
.badge-draft { background: #eef0f2; color: #5a636a; }
.badge-rejected { background: #fbe6e2; color: #a33a22; }

.empty { padding: 56px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty a { color: var(--accent); }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-strong); background: #fff; border-radius: 10px;
  padding: 10px 13px; font-size: 14.5px; outline: none; transition: border-color .16s, box-shadow .16s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,80,47,.1); }
.textarea { min-height: 320px; resize: vertical; line-height: 1.8; }
.textarea-sm { min-height: 90px; }
.field-error { color: #b3351c; font-size: 12.5px; margin-top: 5px; }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink-2); }
.checks input { margin-right: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 18px; }
.alert-success { background: var(--green-soft); color: #1f4b3f; }
.alert-error { background: #fbe6e2; color: #8d2d17; }
.alert-warning { background: #fff4dc; color: #7a5200; }
.alert-info { background: #eef3f8; color: #2c4a63; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 24px; background:
  radial-gradient(1000px 500px at 10% 0%, #f4ede2 0%, transparent 60%),
  radial-gradient(800px 400px at 100% 100%, #eef2ee 0%, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--accent); }

/* ---------- admin review ---------- */
.review-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.review-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; }
.hit-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hit { background: #fbe6e2; color: #a33a22; padding: 4px 9px; border-radius: 6px; font-size: 12px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: #f4f1ea; padding: 40px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-about { font-size: 12.5px; color: var(--muted); line-height: 1.8; max-width: 320px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- misc ---------- */
.notice-bar { background: var(--ink); color: #f3eee5; font-size: 12.5px; }
.notice-bar .container { display: flex; align-items: center; min-height: 34px; height: auto; padding: 6px 18px; gap: 8px; white-space: normal; line-height: 1.5; }
.notice-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }

/* mid desktop: 8 个频道 + 搜索 + 按钮偏挤，收窄间距避免溢出 */
@media (max-width: 1180px) and (min-width: 1025px) {
  .header-inner { gap: 16px; }
  .main-nav a { padding: 8px 8px; font-size: 13px; }
  .search-form input { width: 150px; }
  .search-form input:focus { width: 185px; }
}

@media (max-width: 1024px) {
  .home-main { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .card-list, .list-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .review-preview { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .main-nav { display: none; }
  .search-form { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
  .card-list, .list-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .hero-lead { min-height: 300px; }
  .hero-lead h2 { font-size: 21px; }
  .hero-lead p { display: none; }
  .hero-side { flex-direction: column; }
  .article-title { font-size: 25px; }
  .prose { font-size: 16.5px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .author-hero { flex-wrap: wrap; }
  .author-stats { width: 100%; margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
}

.main-nav.open {
  display: flex;
  position: absolute;
  left: 0; right: 0; top: 68px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 6px;
  box-shadow: var(--shadow);
}

#content-count.warn { color: var(--accent); }

.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ---------- layout hardening (mobile overflow) ---------- */
img, svg { max-width: 100%; }
.card, .hero-lead, .hero-side .card, .article-card, .list-grid > * { min-width: 0; }
.card .thumb { width: 100%; }
.card .thumb img { display: block; width: 100%; height: 100%; }
.card h3, .card .desc, .article-title { overflow-wrap: anywhere; }
.card-list, .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-main { grid-template-columns: minmax(0, 1fr) 320px; }
.hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.hero-side .card { width: 100%; }

@media (max-width: 1024px) {
  .card-list, .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-main { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .card-list, .list-grid { grid-template-columns: minmax(0, 1fr); }
  .notice-bar .container { height: auto; min-height: 34px; padding: 7px 0; white-space: normal; align-items: flex-start; line-height: 1.5; }
}

/* ---------- article byline & breadcrumbs ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs .crumb-current { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article-byline { flex-wrap: wrap; }
.article-byline .stats { white-space: nowrap; }

@media (max-width: 760px) {
  .breadcrumbs .crumb-current { max-width: 100%; white-space: normal; overflow: visible; }
  .article-byline { gap: 10px 12px; align-items: flex-start; }
  .article-byline .stats { width: 100%; margin-left: 0; gap: 18px; }
  .article-byline .when { display: block; }
}

/* mobile header: keep login reachable */
@media (max-width: 760px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 17px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-ghost { display: inline-flex; padding: 0 10px; }
  .header-actions .btn-sm { height: 34px; }
}

@media (max-width: 760px) {
  .breadcrumbs .crumb-current { display: none; }
  .article-cover { max-height: 300px; object-fit: cover; }
}

@media (max-width: 760px) {
  .dash-nav { align-items: center; padding: 8px; }
  .dash-nav a, .dash-nav form { flex: 0 0 auto; white-space: nowrap; }
  .dash-nav .sep { display: none; }
  .dash-nav form .btn-block { width: auto; margin-top: 0 !important; }
  .dash-nav form .btn { height: 36px; }
  table.data th:nth-child(3), table.data td:nth-child(3),
  table.data th:nth-child(4), table.data td:nth-child(4) { display: none; }
  table.data .status-pill { white-space: nowrap; }
}

@media (max-width: 760px) {
  table.data td:nth-child(2) { width: 62px; white-space: nowrap; }
  .status-pill { white-space: nowrap; }
}

.img-dead { display: none !important; }
.img-fallback { background: #f0e9dd url('/assets/img/logo-512.png') center/56px no-repeat; }
