/* 家有方向 · 站点样式
   设计 token 来自最初静态原型（family-growth-navigation-v2.html），保持原有视觉：
   墨绿主色、克制圆角、轻阴影、适中信息密度。 */

:root {
  --ink: #24312d;
  --muted: #75817b;
  --line: #e7ece8;
  --bg: #f6f8f6;
  --green: #287b65;
  --green2: #1d6553;
  --soft: #eaf3ee;
  --white: #fff;
  --shadow: 0 12px 32px rgba(32, 65, 50, .07);
  --radius: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: auto; }

/* ---------- 头部 ---------- */
header {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.logo { width: 39px; height: 39px; border-radius: 13px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.brand b { display: block; font-size: 19px; }
.brand small { display: block; color: #8a958f; font-size: 9px; letter-spacing: 1.3px; margin-top: -3px; }
nav { display: flex; gap: 23px; align-items: center; font-size: 13px; color: #5e6b64; }
nav a:hover, nav a.active { color: var(--green); }
.nav-off { color: #a7b0aa; cursor: default; }

/* ---------- 首屏 ---------- */
.hero {
  padding: 68px 0 55px;
  background:
    radial-gradient(circle at 85% 15%, #dcece2 0, transparent 27%),
    radial-gradient(circle at 10% 100%, #f5e8d9 0, transparent 30%),
    linear-gradient(115deg, #f9fbf8, #eff6f1 65%, #f8f8f2);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 45px; align-items: center; }
.eyebrow, .kicker { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.2; letter-spacing: -1.5px; margin: 16px 0; }
.hero h1 span { color: var(--green); }
.hero p { max-width: 570px; color: #68766f; font-size: 15px; line-height: 1.9; margin: 0 0 25px; }
.search {
  max-width: 600px; background: #fff; border: 1px solid #e3ebe5; border-radius: 13px;
  padding: 7px 7px 7px 16px; display: flex; gap: 10px; box-shadow: var(--shadow);
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 8px 0; background: transparent; }
.search button, .primary { background: var(--green); color: #fff; border: 0; border-radius: 9px; padding: 10px 21px; cursor: pointer; font-weight: 650; }
.search button:hover, .primary:hover { background: var(--green2); }
.search input:disabled + button { opacity: .5; cursor: not-allowed; }
.hot { font-size: 11px; color: #929d96; margin-top: 12px; }
.hot a { margin-left: 12px; color: #65736b; }
.hot a:hover { color: var(--green); }

.hero-visual {
  height: 290px; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #dcebe1, #edf3e9 60%, #f4e8d9);
  box-shadow: 0 22px 50px rgba(64, 99, 79, .12);
}
.sun { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: #f5d5a9; right: 54px; top: 34px; }
.hill { position: absolute; bottom: -60px; width: 350px; height: 180px; border-radius: 50% 50% 0 0; }
.hill.a { left: -60px; background: #a9c9b2; transform: rotate(-8deg); }
.hill.b { right: -110px; background: #79a98f; bottom: -75px; }
.house { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); width: 135px; height: 110px; background: #fffaf1; border-radius: 7px; }
.roof { position: absolute; left: 50%; top: -48px; transform: translateX(-50%); border-left: 83px solid transparent; border-right: 83px solid transparent; border-bottom: 58px solid #c9825d; }
.door { position: absolute; bottom: 0; left: 53px; width: 30px; height: 53px; background: #d8a27a; border-radius: 11px 11px 0 0; }
.win { position: absolute; top: 25px; width: 25px; height: 25px; background: #d6e9e3; border: 4px solid white; }
.win.l { left: 17px; }
.win.r { right: 17px; }
.nav-btn {
  background: var(--green); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; box-shadow: 0 6px 16px rgba(64, 99, 79, .22); transition: .18s;
}
.nav-btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.btn-inline {
  display: inline-block; background: var(--green); color: #fff; padding: 6px 14px;
  border-radius: 999px; font-size: 12px; font-weight: 600; transition: .18s;
}
.btn-inline:hover { filter: brightness(1.08); color: #fff; }

.float { position: absolute; background: white; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 11px; color: #66736c; }
.float b { display: block; color: var(--ink); font-size: 13px; }
.float.one { left: 14px; top: 16px; }
.float.two { right: 14px; bottom: 16px; }
.float.three { right: 14px; top: 16px; }
.float.four { left: 14px; bottom: 16px; }
/* 太阳在右上，让右上卡片压住它，视觉更稳 */

/* ---------- 版块 ---------- */
section { scroll-margin-top: 90px; }
.section { padding: 57px 0; }
.white { background: #fff; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.head h2 { font-size: 26px; letter-spacing: -.5px; margin: 5px 0; }
.desc { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.more { font-size: 12px; color: var(--green); white-space: nowrap; }

.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 19px 16px; min-height: 157px; transition: .2s; }
.category:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbded2; }
.symbol { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--green); font-weight: 800; font-size: 12px; margin-bottom: 13px; }
.category:nth-child(2) .symbol { background: #fbefe5; color: #bd7546; }
.category:nth-child(3) .symbol { background: #edf0fa; color: #6877a8; }
.category:nth-child(4) .symbol { background: #f7edf3; color: #a66e91; }
.category:nth-child(5) .symbol { background: #f7f1df; color: #a8873e; }
.category h3 { font-size: 14px; margin: 0 0 5px; }
.category p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.7; }

.tool-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 25px;
  background: #eff6f1; border: 1px solid #e1ece4; border-radius: 16px; padding: 17px 20px; margin-bottom: 19px;
}
.tool-intro strong { font-size: 14px; }
.tool-intro p { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.tool-intro span { font-size: 11px; color: var(--green); white-space: nowrap; }

.tool-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { border: 1px solid var(--line); border-radius: 99px; background: #fff; padding: 7px 13px; font-size: 11px; color: #68756e; cursor: pointer; display: inline-block; }
.chip.active, .chip:hover { background: var(--green); border-color: var(--green); color: #fff; }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-height: 143px; transition: .2s; display: flex; flex-direction: column; }
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbded2; }
.tool-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tool-icon { width: auto; max-width: 60%; padding: 4px 8px; height: 37px; border-radius: 11px; background: #edf4ef; color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.tool:nth-child(4n+2) .tool-icon { background: #fbefe5; color: #bd7546; }
.tool:nth-child(4n+3) .tool-icon { background: #edf0fa; color: #6877a8; }
.tool:nth-child(4n+4) .tool-icon { background: #f7edf3; color: #a66e91; }
.tool-label { font-size: 9px; color: #9aa49e; white-space: nowrap; }
.tool h3 { font-size: 13px; margin: 12px 0 4px; }
.tool p { font-size: 10px; color: var(--muted); margin: 0; line-height: 1.6; }
.tool .open { font-size: 10px; color: var(--green); margin-top: auto; padding-top: 10px; }

.band { padding: 38px 0; }
.band-inner { background: #234e42; border-radius: 20px; padding: 32px 38px; color: white; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.band h2 { font-size: 23px; margin: 0 0 7px; }
.band p { font-size: 12px; color: #c6d9d0; margin: 0; }
.band a { background: white; color: #245747; padding: 11px 17px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }

.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.article small { font-size: 10px; color: var(--green); font-weight: 700; }
.article h3 { font-size: 14px; line-height: 1.6; margin: 9px 0; }
.article p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.8; }

/* ---------- 详情页 / 通用 ---------- */
.breadcrumb { font-size: 12px; color: #929d96; margin-bottom: 18px; }
.breadcrumb a { color: var(--green); }
.detail { max-width: 900px; }
.detail h1 { font-size: 30px; letter-spacing: -.5px; margin: 12px 0 6px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 22px; margin-bottom: 16px; }
.panel h2 { font-size: 17px; margin: 0 0 12px; }
.panel p { font-size: 14px; line-height: 1.9; margin: 0 0 10px; }
.steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 2; color: #4d5a54; }
.detail-head { margin-bottom: 20px; }
.tag { display: inline-block; font-size: 10px; background: #eff5f1; color: var(--green); padding: 4px 9px; border-radius: 5px; margin-right: 6px; }
.tag-ok { background: #e6f4ec; color: #1d6553; }
.tag-todo { background: #f7f1df; color: #a8873e; }
.empty {
  background: #fff; border: 1px dashed #cfdcd4; border-radius: 12px;
  padding: 28px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.9;
}

/* ---------- 页脚 ---------- */
footer { background: #202f2b; color: #dce6e0; padding: 34px 0 20px; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 23px; border-bottom: 1px solid #ffffff20; }
.foot p { font-size: 11px; color: #aebdb5; max-width: 340px; line-height: 1.8; }
.foot-links { display: flex; gap: 45px; }
.foot-links b { font-size: 12px; }
.foot-links a { display: block; font-size: 11px; color: #aebdb5; margin-top: 8px; }
.foot-links a:hover { color: #fff; }
.foot-links .nav-off { display: block; font-size: 11px; margin-top: 8px; }
.copy { font-size: 10px; color: #8fa097; padding-top: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  nav { gap: 13px; }
  .grid5 { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 25px; }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 28px); }
  header { height: auto; padding: 12px 0; }
  .nav { flex-wrap: wrap; gap: 10px; }
  nav { order: 3; width: 100%; overflow: auto; gap: 19px; padding: 3px 0; }
  nav a, nav span { white-space: nowrap; }
  .hero { padding: 42px 0 35px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 225px; }
  .house { top: 82px; transform: translateX(-50%) scale(.82); }
  .float.one { left: 10px; top: 10px; }
  .float.two { right: 10px; bottom: 10px; }
  .float.three { right: 10px; top: 10px; }
  .float.four { left: 10px; bottom: 10px; }
  .section { padding: 43px 0; }
  .head h2 { font-size: 22px; }
  .grid5 { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .category { padding: 15px 12px; min-height: 145px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .tool { padding: 13px; min-height: 145px; }
  .tool-intro { align-items: flex-start; flex-direction: column; gap: 5px; }
  .articles { grid-template-columns: 1fr; }
  .band-inner { align-items: flex-start; flex-direction: column; padding: 25px; }
  .foot { flex-direction: column; }
  .foot-links { gap: 25px; flex-wrap: wrap; }
}

/* ---------- 后台 ---------- */
body.admin { background: #f2f5f3; }
.admin-wrap { padding: 26px 0 60px; }
.admin-user { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: block; }
.stat:hover { border-color: #cbded2; }
.stat b { display: block; font-size: 26px; letter-spacing: -.5px; }
.stat span { font-size: 12px; color: var(--muted); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h2 { font-size: 20px; margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid #f1f4f2; vertical-align: middle; }
.table tr:hover td { background: #fafcfb; }
.muted { color: var(--muted); font-size: 11px; }
.alert { background: #fdecec; border: 1px solid #f5c6c6; color: #96423f; border-radius: 10px; padding: 12px 15px; font-size: 13px; margin-bottom: 16px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-ok { background: #e9f6ee; border-color: #bfe0cc; color: #1d6553; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: #5e6b64; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font-size: 14px; outline-color: #8db8a2; background: #fff;
}
.field textarea { resize: vertical; line-height: 1.8; }
.md-editor { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form input, .inline-form select { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 13px; background: #fff; }
.inline-form button { border: 1px solid var(--line); background: var(--green); color: #fff; border-radius: 9px; padding: 9px 14px; font-size: 13px; cursor: pointer; }
.status-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; }
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-actions form { margin: 0; }
.status-actions button { cursor: pointer; }
.edit-form .panel { margin-bottom: 16px; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.check { font-size: 12px; color: #50605a; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: min(420px, 100%); box-shadow: var(--shadow); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .check-grid { grid-template-columns: 1fr; } .table { font-size: 12px; } }

/* ---------- 文章正文 / 列表 ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 14px; }
.meta .date { font-size: 12px; color: var(--muted); }
.prose { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 26px 28px; font-size: 15px; line-height: 1.95; }
.prose h1 { font-size: 24px; margin: 24px 0 12px; }
.prose h2 { font-size: 20px; margin: 24px 0 10px; }
.prose h3 { font-size: 16px; margin: 20px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 0 0 14px; padding: 10px 16px; background: var(--soft); border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; }
.prose code { background: #f2f5f3; padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.prose pre { background: #24312d; color: #e7efea; padding: 15px 17px; border-radius: 11px; overflow: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; }
.prose th { background: #f4f8f5; }
.prose img { max-width: 100%; border-radius: 10px; }
.prose a { color: var(--green); text-decoration: underline; }
.prose h1 a, .prose h2 a, .prose h3 a { text-decoration: none; color: inherit; }
.source-note { font-size: 13px; color: #4d5a54; }
.pager { display: flex; gap: 8px; margin-top: 22px; }
@media (max-width: 650px) { .prose { padding: 18px; font-size: 14px; } }

.raw-md { background: #f7faf8; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 13px; white-space: pre-wrap; word-break: break-all; max-height: 460px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- 编辑器（Step 5） ---------- */
.md-toolbar { display: flex; gap: 6px; flex-wrap: wrap; }
.md-toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; color: #4d5a54; }
.md-toolbar button:hover { border-color: #b7d3c4; background: #f3f9f5; }
.editor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor-pane { min-width: 0; }
.preview-pane { max-height: 620px; overflow: auto; background: #fff; }
.upload-box { margin-top: 14px; border: 1px dashed #c9dcd1; border-radius: 11px; padding: 14px; background: #fbfdfc; }
.upload-box h3 { font-size: 13px; margin: 0 0 8px; }
.rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rel-grid h3 { font-size: 13px; margin: 0 0 8px; }
.rel-grid .check-grid { max-height: 190px; }
@media (max-width: 900px) { .editor-split { grid-template-columns: 1fr; } .rel-grid { grid-template-columns: 1fr; } }

/* ---------- 工具操作区（Step 6） ---------- */
.tool-input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 14px; background: #fff; outline-color: #8db8a2; }
.tool-input[rows], textarea.tool-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.7; resize: vertical; }
.tool-out { margin-top: 14px; }
.tool-out table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tool-out th, .tool-out td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.tool-out th { background: #f4f8f5; font-size: 12px; color: var(--muted); }
.tool-out p { margin: 0 0 10px; font-size: 14px; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tool-table th, .tool-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.tool-table th { background: #f4f8f5; font-size: 12px; color: var(--muted); }

/* ---------- 工具页折叠分组 ---------- */
.tool-group { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; overflow: hidden; transition: .2s; }
.tool-group:hover { border-color: #cbded2; }
.tool-group summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 700; font-size: 15px; color: var(--ink); user-select: none; }
.tool-group summary::-webkit-details-marker { display: none; }
.tool-group summary::before { content: "▸"; color: var(--green); font-size: 13px; width: 14px; transition: transform .2s; }
.tool-group[open] summary::before { transform: rotate(90deg); }
.tool-group summary::after { content: "展开"; margin-left: auto; color: #65736b; font-weight: 400; font-size: 12px; }
.tool-group[open] summary::after { content: "收起"; }
.tool-group[open] summary { border-bottom: 1px solid var(--line); background: #fbfcfb; }
.tool-group .group-count { font-size: 12px; font-weight: 600; color: var(--green); background: #eef4f0; border-radius: 999px; padding: 3px 11px; }
.tool-group .tool-grid { padding: 14px; }
.tool-group[open] { box-shadow: var(--shadow); }

/* ---------- 首页工具分类紧凑网格 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: .2s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cbded2; }
.cat-card b { font-size: 14px; }
.cat-card span { font-size: 12px; color: var(--green); }
.cat-card em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: #9fb0a6; transition: .2s; }
.cat-card:hover em { color: var(--green); transform: translateY(-50%) translateX(3px); }

/* ---------- 后台导航自适应：项目多，窄屏横向滚动，禁止折行 ---------- */
body.admin nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
body.admin nav a, body.admin nav form, body.admin nav button { white-space: nowrap; flex: 0 0 auto; }
body.admin nav::-webkit-scrollbar { height: 4px; }
body.admin nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 2px; }
@media (max-width: 1200px) {
  body.admin header { height: auto; padding: 10px 0; }
  body.admin .nav { flex-wrap: wrap; gap: 8px; row-gap: 6px; }
  body.admin nav { order: 3; width: 100%; gap: 16px; padding: 4px 0 2px; }
}
