@charset "UTF-8";

:root {
  --ink: #20372b;
  --muted: #6b776d;
  --green: #236c50;
  --line: #dde3d8;
  --paper: #f7f8f2;
  --surface: #ffffff;
  --soft: #edf2e6;
  --accent: #a56b40;
  --shadow: 0 12px 36px #20372b09;
  --reading-size: 18px;
  color-scheme: light;
  scroll-padding-top: 105px;
}

:root[data-theme="dark"] {
  --ink: #e0e9dc;
  --muted: #a7b6a8;
  --green: #a5d4a6;
  --line: #324638;
  --paper: #121d17;
  --surface: #1b2a20;
  --soft: #25392a;
  --accent: #d4a781;
  --shadow: 0 12px 36px #00000018;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.75 "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--green); color: var(--paper); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 11px 22px; border: 1px solid transparent; border-radius: 7px; background: var(--green); color: var(--paper); font-weight: 600; font-size: 13px; line-height: 1.5; }
.button:hover, button:hover:not(:disabled) { filter: brightness(.95); }
.button:hover { color: var(--paper); }
.secondary { color: var(--ink); border-color: var(--line); background: var(--surface); font-weight: 500; }
.secondary:hover { color: var(--green); }
input, select { min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
input::placeholder { color: var(--muted); }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); color: var(--ink); background: transparent; font-size: 20px; font-weight: 400; }
.text-link { color: var(--green); font-size: 13px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 2px; color: var(--green); font-weight: 650; margin: 0 0 12px; }
.dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.muted { color: var(--muted); font-size: 13px; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 10px 20px; background: var(--surface); }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Shared navigation and theme controls. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; max-width: 1320px; margin: auto; padding: 19px 48px; gap: 35px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 750; letter-spacing: 2px; line-height: 1.3; }
.brand img { width: 37px; height: 37px; }
.brand small { display: block; margin-top: 3px; font-size: 8px; font-weight: 500; letter-spacing: 2.5px; color: var(--muted); }
#primary-nav { margin-left: auto; display: flex; align-items: center; gap: 32px; font-size: 13px; }
#primary-nav a { padding: 8px 0; white-space: nowrap; }
#primary-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
.header-actions { display: flex; gap: 8px; }
.nav-toggle { display: none; }
.saved-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 20px; font-size: 10px; background: var(--soft); color: var(--green); text-align: center; }
main { max-width: 1320px; padding: 0 48px; margin: auto; }
main:focus { outline: none; }
.site-footer { max-width: 1320px; padding: 30px 48px; margin: auto; display: flex; align-items: center; gap: 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); font-size: 18px; font-weight: 650; }
.footer-brand span { display: inline-block; margin-left: 10px; font-size: 8px; letter-spacing: 2px; color: var(--muted); }
.site-footer>a:last-child { margin-left: auto; }
.back-to-top { position: fixed; right: 28px; bottom: 28px; z-index: 25; background: var(--surface); box-shadow: var(--shadow); }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 40px); z-index: 100; padding: 12px 22px; color: var(--paper); background: var(--ink); border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); text-align: center; }

/* Editorial home: green optical illustration and a topic index. */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 65px; align-items: center; padding: 62px 0 60px; }
.hero h1 { font-size: clamp(30px, 3.7vw, 47px); line-height: 1.4; letter-spacing: 1px; margin: 20px 0 22px; font-weight: 650; }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 27px; }
.hero-note { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 11px; margin-top: 30px; }
.hero-note strong { font-size: 21px; font-weight: 550; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-visual { position: relative; height: 330px; overflow: hidden; border-radius: 16px; background: radial-gradient(ellipse at 65% 45%, #315a3f 0, #1b3b2c 58%, #183427 100%); color: #b7ceb7; }
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-label { position: absolute; top: 23px; left: 26px; font-size: 9px; letter-spacing: 2px; }
.visual-footer { position: absolute; bottom: 22px; left: 26px; right: 26px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 1px; }
.journal { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 40px; padding: 38px 0 65px; border-top: 1px solid var(--line); }
.topic-sidebar, .journal-content { min-width: 0; }
.topic-sidebar { padding-right: 25px; border-right: 1px solid var(--line); }
.topic-sidebar h2, .console-sidebar h2 { font-size: 18px; margin: 0 0 22px; font-weight: 600; }
.topic-sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.topic-link { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; border-radius: 5px; font-size: 12px; margin-left: -11px; }
.topic-link>span:last-child { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.topic-link.selected { color: var(--green); background: var(--soft); font-weight: 650; }
.topic-link:hover { background: var(--soft); }
.sidebar-note { padding-top: 25px; border-top: 1px solid var(--line); margin-top: 30px; color: var(--muted); font-size: 11px; }
.sidebar-note p { margin: 10px 0 0; line-height: 1.9; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.section-heading h2, .panel h2 { font-size: 22px; font-weight: 600; margin: 0; }
.section-heading h1 { font-size: 31px; font-weight: 600; margin: 0; }
.result-count, .section-heading>span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.search { display: flex; gap: 8px; margin-bottom: 25px; }
.search-input { display: flex; align-items: center; flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding-left: 12px; }
.search-input>span { font-size: 22px; color: var(--muted); }
.search-input input { border: 0; width: 100%; min-width: 0; padding-left: 9px; font-size: 12px; background: transparent; }
.search-input:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.search-input input:focus { outline: none; }
.search-input kbd { border: 1px solid var(--line); padding: 0 5px; font: 10px/1.6 monospace; color: var(--muted); margin-right: 10px; }
.search select { max-width: 150px; font-size: 12px; }
.search button { padding: 10px 17px; }
.filter-summary { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; margin: -8px 0 22px; gap: 15px; }
.filter-summary a { white-space: nowrap; color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); }
.card:focus-within { border-color: var(--green); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); }
.category-label { display: inline-block; color: var(--green); background: var(--soft); padding: 3px 8px; border-radius: 4px; font-size: 10px; }
.card h3 { font-size: 19px; line-height: 1.7; font-weight: 650; margin: 18px 0 12px; overflow-wrap: anywhere; }
.card p { font-size: 12px; color: var(--muted); line-height: 1.85; margin: 0 0 26px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 17px; border-top: 1px solid var(--line); margin-top: auto; font-size: 11px; }
.card-bottom>span { color: var(--muted); }
.read-link { color: var(--green); font-weight: 600; }
.read-link span { margin-left: 7px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 30px; font-size: 12px; }
.pagination a { min-width: 35px; padding: 6px 10px; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.pagination a[aria-current="page"] { background: var(--green); border-color: var(--green); color: var(--paper); }
.empty-state { padding: 55px 25px; text-align: center; grid-column: 1/-1; background: var(--surface); border: 1px dashed var(--line); border-radius: 9px; }
.empty-state h2, .empty-state h3 { font-size: 22px; font-weight: 550; margin: 12px 0; }
.empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 25px; }
.empty-symbol { font-size: 40px; color: var(--green); }
.saved-page { padding: 45px 0 65px; min-height: 65vh; }
.saved-page .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
.remove-bookmark { font-size: 11px; padding: 3px 0; background: none; border: none; color: var(--muted); }

/* Article reading, large images and independently scrollable long formulae. */
.reading-layout { display: grid; grid-template-columns: minmax(0,800px) minmax(180px,1fr); gap: 65px; padding: 38px 0 65px; }
.back { color: var(--muted); font-size: 12px; }
.article-heading { padding: 32px 0 25px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.article-heading h1 { font-size: 34px; font-weight: 650; line-height: 1.55; margin: 16px 0 24px; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.author-mark { color: var(--green); background: var(--soft); width: 27px; height: 27px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 650; }
.reading-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 23px; }
.font-controls { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.font-controls button { border: none; background: transparent; color: var(--ink); padding: 6px 11px; min-height: 36px; font-size: 12px; }
.font-controls span { color: var(--muted); font-size: 10px; min-width: 20px; text-align: center; }
.tool-button { padding: 7px 12px; min-height: 38px; font-size: 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); font-weight: 500; }
.tool-button[aria-pressed="true"] { color: var(--green); border-color: var(--green); background: var(--soft); }
.prose { font-size: var(--reading-size); line-height: 1.95; overflow-wrap: break-word; }
.prose h2 { font-size: 1.35em; margin: 44px 0 20px; font-weight: 650; }
.prose h3 { font-size: 1.15em; margin-top: 30px; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.prose img { display: block; max-width: 100%; height: auto; margin: 28px auto 14px; border-radius: 5px; background: white; }
.image-zoom-button { display: block; padding: 0; background: transparent; color: inherit; border: 0; width: 100%; cursor: zoom-in; font: inherit; }
.image-zoom-button:hover { filter: none !important; }
.image-zoom-button img { transition: box-shadow .15s; }
.image-zoom-button:hover img { box-shadow: 0 0 0 2px var(--green); }
.prose blockquote { margin: 25px 0; padding: 5px 22px; border-left: 3px solid var(--green); border-radius: 0 7px 7px 0; background: var(--soft); }
.prose pre { background: var(--soft); padding: 20px; overflow: auto; border-radius: 7px; font-size: .77em; }
.prose :not(pre)>code { background: var(--soft); padding: 2px 5px; border-radius: 3px; font-size: .85em; }
.prose table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; font-size: .82em; margin: 25px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 15px; }
.prose th { background: var(--soft); text-align: left; }
.prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.prose div.math { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.prose li { margin: 7px 0; }
.prose p:has(>em:only-child) { font-size: .82em; color: var(--muted); line-height: 1.8; }
.reading-aside { position: sticky; top: 110px; align-self: start; border-left: 1px solid var(--line); padding-left: 24px; margin-top: 75px; }
.toc-title { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.toc-title span { color: var(--green); font-size: 11px; }
.reading-aside nav, .mobile-toc nav { display: flex; flex-direction: column; gap: 5px; font-size: 12px; margin-top: 18px; }
.reading-aside nav { max-height: calc(100vh - 260px); overflow-y: auto; }
.reading-aside nav a { display: block; padding: 7px 10px; color: var(--muted); border-radius: 4px; border-left: 2px solid transparent; }
.reading-aside nav a.active { color: var(--green); background: var(--soft); border-left-color: var(--green); }
.reading-aside .subheading { padding-left: 20px; font-size: 11px; }
.toc-hint { font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; }
.mobile-toc { display: none; padding: 15px 18px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 25px; }
.mobile-toc summary { cursor: pointer; font-size: 13px; }
.mobile-toc summary span { float: right; }
.mobile-toc nav a { color: var(--muted); padding: 4px 0; }
.article-end { display: flex; gap: 10px; flex-wrap: wrap; padding: 35px 0; }
.article-end span, .badge { padding: 4px 9px; border-radius: 4px; font-size: 11px; background: var(--soft); color: var(--green); white-space: nowrap; }
.article-finish { padding: 30px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.article-finish h2 { font-size: 21px; font-weight: 550; margin: 0 0 20px; }
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 40; pointer-events: none; }
#reading-progress-bar { width: 0; height: 100%; background: var(--green); }
.image-viewer { border: 1px solid var(--line); border-radius: 10px; padding: 18px; width: min(1200px,94vw); max-height: 94vh; background: var(--surface); color: var(--ink); }
.image-viewer::backdrop { background: #09150ce0; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 15px; font-size: 13px; }
.viewer-image { display: grid; place-items: center; overflow: auto; background: white; border-radius: 5px; }
.viewer-image img { max-width: 100%; max-height: 73vh; object-fit: contain; }
.image-viewer>p { font-size: 10px; color: var(--muted); text-align: center; margin-bottom: 0; }
body.viewer-open { overflow: hidden; }

/* Operational console: observed data, no implied production health status. */
.console-layout { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 38px; padding: 40px 0 65px; }
.console-sidebar { padding-right: 22px; border-right: 1px solid var(--line); }
.console-sidebar nav { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.console-sidebar nav a { padding: 9px 11px; border-radius: 5px; margin-left: -11px; }
.console-sidebar nav a:hover { background: var(--soft); }
.console .section-heading p { margin: 8px 0 0; }
.mode-banner { display: flex; gap: 12px; align-items: center; padding: 12px 17px; margin-bottom: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: 7px; font-size: 11px; }
.mode-banner span:last-child { color: var(--muted); margin-left: auto; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 25px; }
.metrics>div { padding: 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.metrics span, .metrics small { display: block; font-size: 10px; color: var(--muted); }
.metrics strong { display: block; font-size: 34px; line-height: 1.65; font-weight: 550; font-variant-numeric: tabular-nums; }
.metrics .has-error strong { color: #b95a46; }
.console-grid { display: grid; grid-template-columns: minmax(0,1fr) 245px; gap: 18px; }
.panel { padding: 23px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 22px; min-width: 0; }
.panel h2 { font-size: 18px; }
.refresh-status { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--muted); gap: 10px; margin: -10px 0 17px; }
.auto-refresh { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auto-refresh input { min-height: 0; margin: 0; accent-color: var(--green); }
.job-filter { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; }
.job-filter input { min-width: 0; flex: 1; width: 100%; }
.job-filter input, .job-filter select { font-size: 11px; }
.job-filter button { padding: 10px 14px; }
.job-filter .text-link { font-size: 10px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 9px; border-bottom: 1px solid var(--line); font-size: 11px; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
td:first-child { overflow-wrap: anywhere; }
td:not(:first-child) { white-space: nowrap; }
.table-empty { padding: 35px 10px; text-align: center; color: var(--muted); }
.badge.succeeded { background: #e8f2e8; color: #276740; }
.badge.failed { background: #f8e8e0; color: #a14835; }
.badge.running { background: #faf0d5; color: #826323; }
:root[data-theme="dark"] .badge.succeeded { background: #284434; color: #b4d4b1; }
:root[data-theme="dark"] .badge.failed { background: #4c302a; color: #edb19b; }
:root[data-theme="dark"] .badge.running { background: #443d23; color: #e2cc92; }
.job-error { display: block; color: #b95a46; font-size: 10px; margin-top: 4px; }
.sync { display: grid; grid-template-columns: 1fr 1fr; font-size: 11px; gap: 13px 10px; margin: 25px 0; }
.sync dt { color: var(--muted); }
.sync dd { margin: 0; text-align: right; }
.sync-note { color: var(--muted); background: var(--soft); font-size: 10px; line-height: 1.9; padding: 14px; border-radius: 5px; }
.article-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.article-row>div { display: flex; gap: 12px; align-items: center; }
.article-row time { white-space: nowrap; color: var(--muted); font-size: 10px; }
.research-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 18px; font-weight: 600; }
.research-panel[open] summary { margin-bottom: 20px; }
.job-page { max-width: 950px; padding: 40px 0 65px; margin: auto; }
.job-page>.eyebrow { margin-top: 30px; }
.job-page h1 { font-size: 29px; font-weight: 600; overflow-wrap: anywhere; }
.job-summary { display: flex; align-items: center; gap: 20px; margin: 20px 0 30px; font-size: 12px; color: var(--muted); }
.timeline { list-style: none; margin: 30px 0 0; padding: 0; }
.timeline li { position: relative; display: flex; align-items: flex-start; gap: 20px; padding: 0 0 25px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 0; width: 1px; background: var(--line); }
.timeline-dot { background: var(--green); border-radius: 50%; width: 11px; height: 11px; margin-top: 7px; flex: 0 0 auto; }
.timeline strong { font-size: 13px; font-weight: 600; }
.timeline p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.timeline time { font-size: 11px; color: var(--muted); margin-left: auto; }
.error-banner { border-left: 3px solid #b95a46; background: var(--surface); padding: 16px 20px; font-size: 13px; }
.login-panel { max-width: 440px; padding: 38px; margin: 65px auto 90px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.login-panel h1 { font-size: 27px; font-weight: 600; margin: 12px 0 15px; }
.login-panel form { margin: 28px 0 25px; }
.login-panel label { display: block; font-size: 12px; margin-bottom: 7px; }
.login-panel input { width: 100%; }
.login-panel button { width: 100%; margin-top: 10px; justify-content: space-between; }
.login-panel .errorlist { color: #b95a46; font-size: 12px; padding-left: 20px; }

@media (max-width: 1100px) {
  .header-inner, main, .site-footer { padding-left: 30px; padding-right: 30px; }
  .hero { gap: 35px; }
  .hero-visual { height: 310px; }
  .journal { grid-template-columns: 165px minmax(0,1fr); gap: 28px; }
  .search { flex-wrap: wrap; }
  .search-input { flex-basis: 100%; }
  .search select { flex: 1; max-width: none; }
  .reading-layout { gap: 35px; grid-template-columns: minmax(0,1fr) 195px; }
  .console-layout { grid-template-columns: 140px minmax(0,1fr); gap: 25px; }
  .console-grid { grid-template-columns: minmax(0,1fr); }
  .metrics { gap: 10px; }
  .metrics>div { padding: 14px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 25px; }
  .hero h1 { font-size: 33px; }
  .hero-actions { gap: 18px; flex-wrap: wrap; }
  .hero-visual { height: 290px; }
  .journal { grid-template-columns: minmax(0,1fr); gap: 0; }
  .topic-sidebar { border: 0; padding: 0; margin-bottom: 28px; }
  .topic-sidebar>.eyebrow, .topic-sidebar>h2, .topic-sidebar>.sidebar-note { display: none; }
  .topic-sidebar nav { flex-direction: row; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; }
  .topic-sidebar nav { scrollbar-width: none; }
  .topic-sidebar nav::-webkit-scrollbar { display: none; }
  .topic-link { margin: 0; border: 1px solid var(--line); gap: 10px; white-space: nowrap; }
  .search-input { flex-basis: auto; }
  .search { flex-wrap: nowrap; }
  .search select { flex: 0 1 auto; max-width: 130px; }
  .reading-layout { grid-template-columns: minmax(0,1fr); }
  .reading-aside { display: none; }
  .mobile-toc { display: block; }
  .console-layout { grid-template-columns: minmax(0,1fr); }
  .console-sidebar { display: none; }
  .console-grid { grid-template-columns: minmax(0,1fr); }
  .sync-panel { display: block; }
  .saved-page .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .header-inner, main, .site-footer { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding-top: 15px; padding-bottom: 15px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand img { width: 32px; height: 32px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  #primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 15px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 6px; }
  #primary-nav.open { display: flex; }
  #primary-nav a { padding: 9px 10px; }
  .hero { grid-template-columns: 1fr; padding: 35px 0; gap: 28px; }
  .hero h1 { font-size: 35px; }
  .hero-description { font-size: 13px; }
  .hero-note { margin-top: 23px; }
  .hero-visual { height: 180px; border-radius: 10px; }
  .hero-visual svg { opacity: .85; }
  .visual-label { top: 16px; left: 20px; font-size: 8px; }
  .visual-footer { bottom: 15px; left: 20px; right: 20px; font-size: 8px; }
  .desktop-only { display: none; }
  .journal { padding-top: 25px; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading h1 { font-size: 27px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading .eyebrow { font-size: 9px; }
  .result-count { font-size: 10px; margin-top: 30px; }
  .search { flex-wrap: wrap; }
  .search-input { flex-basis: 100%; }
  .search select { flex: 1; max-width: none; min-width: 0; }
  .search-input kbd { display: none; }
  .cards, .saved-page .cards { grid-template-columns: minmax(0,1fr); }
  .card { padding: 22px; }
  .card h3 { font-size: 19px; }
  .reading-layout { padding-top: 25px; }
  .article-heading { padding-top: 25px; }
  .article-heading h1 { font-size: 27px; line-height: 1.6; }
  .article-meta { gap: 9px; font-size: 10px; }
  .reading-toolbar { gap: 8px; flex-wrap: wrap; }
  .tool-button { padding: 7px 10px; font-size: 11px; }
  .prose { font-size: var(--reading-size); }
  .article-finish { padding: 24px; }
  .article-finish h2 { font-size: 19px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics strong { font-size: 32px; }
  .console .section-heading .secondary { padding: 9px 13px; white-space: nowrap; }
  .mode-banner { flex-wrap: wrap; gap: 9px; }
  .mode-banner span:last-child { width: 100%; margin-left: 15px; }
  .panel { padding: 18px; }
  .panel .section-heading h2 { font-size: 18px; }
  .refresh-status { flex-wrap: wrap; }
  .job-filter { flex-wrap: wrap; }
  .job-filter input { flex-basis: 100%; }
  .job-filter select { flex: 1; }
  .table-wrap th, .table-wrap td { padding: 12px 7px; }
  .article-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .article-row>div { flex-wrap: wrap; gap: 7px; }
  .research-panel summary { font-size: 16px; }
  .research-panel summary .muted { font-size: 10px; }
  .job-page h1 { font-size: 24px; }
  .job-summary { gap: 10px; flex-wrap: wrap; }
  .login-panel { margin: 40px auto 55px; padding: 28px; }
  .site-footer { padding-top: 25px; padding-bottom: 25px; flex-wrap: wrap; gap: 8px 20px; }
  .site-footer p { flex-basis: 100%; order: 3; font-size: 10px; }
  .back-to-top { right: 17px; bottom: 18px; }
}
.flash-messages { max-width: 1224px; margin: 20px auto 0; padding: 0 24px; }
.flash-messages p { padding: 13px 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); color: var(--green); font-size: 13px; }
.activity-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 23px; }
.activity-strip a { display: flex; gap: 15px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.activity-strip span { font-size: 12px; }
.activity-strip strong { font-size: 24px; margin-left: auto; font-weight: 550; }
.activity-strip small { font-size: 10px; color: var(--muted); }
.console-sidebar a[aria-current="page"] { color: var(--green); background: var(--soft); font-weight: 650; }
.analytics-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.record-filter { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 25px 0; }
.record-filter>input { min-width: 180px; flex: 1; }
.record-filter label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; }
.record-filter input, .record-filter select { font-size: 12px; }
.record-filter .text-link { align-self: center; }
.popular-articles { margin-top: 20px; }
.popular-articles .article-row>span { white-space: nowrap; font-size: 11px; color: var(--muted); }
.record-time { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.activity-summary { display: flex; gap: 20px; color: var(--muted); font-size: 12px; padding: 16px 20px; background: var(--soft); border-radius: 7px; }
.comments-section { margin: 0 0 35px; padding: 30px 0; border-top: 1px solid var(--line); }
.comments-section h2 { font-size: 23px; font-weight: 600; }
.comments-list { margin: 25px 0 30px; }
.comment-entry { display: flex; gap: 15px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.comment-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 50%; background: var(--soft); color: var(--green); font-size: 13px; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.comment-meta strong { font-weight: 650; }
.comment-meta time { font-size: 10px; color: var(--muted); margin-left: auto; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; font-size: 14px; margin: 12px 0; }
.comment-reply { font-size: 11px; color: var(--green); }
.comment-child { padding: 15px 18px; margin-top: 15px; background: var(--soft); border-radius: 6px; }
.comments-empty { padding: 25px; border: 1px dashed var(--line); border-radius: 7px; text-align: center; color: var(--muted); font-size: 12px; }
.comments-empty>span { font-size: 30px; color: var(--green); }
.comment-form { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.comment-field { margin: 0 0 18px; }
.comment-field label { display: block; font-size: 12px; margin-bottom: 7px; }
.comment-field input { width: min(100%,300px); }
textarea { display: block; width: 100%; font: inherit; line-height: 1.8; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--surface); color: var(--ink); resize: vertical; }
.comment-field textarea { font-size: 14px; }
.comment-form-footer { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.comment-form-footer .muted { font-size: 10px; }
.hp-field { display: none; }
.reply-context { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; font-size: 12px; color: var(--green); }
.form-errors, .comment-form .errorlist { color: #b95a46; font-size: 12px; }
.form-errors { padding: 13px 18px; background: var(--surface); border-left: 3px solid #b95a46; margin-bottom: 18px; }
.form-errors ul { margin: 0; padding-left: 15px; }
.moderation-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.moderation-heading>div { display: flex; gap: 9px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.moderation-heading time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.comment-article-link { display: block; margin-top: 12px; font-size: 12px; color: var(--green); }
.parent-comment { font-size: 11px; color: var(--muted); padding: 10px 15px; background: var(--soft); border-left: 2px solid var(--line); }
.moderation-actions { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: 20px; }
.moderation-actions form { display: flex; gap: 8px; flex-wrap: wrap; }
.moderation-actions button { font-size: 11px; padding: 7px 11px; }
.danger-text { color: #b95a46; }
.comment-pending { background: #faf0d5; color: #826323; }
.comment-hidden, .comment-removed { color: var(--muted); }
.staff-reply { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; }
.staff-reply summary { cursor: pointer; font-size: 12px; color: var(--green); }
.staff-reply form { margin-top: 15px; }
.staff-reply textarea { margin-bottom: 12px; font-size: 13px; }
.moderation-audit { margin-top: 15px; font-size: 11px; color: var(--muted); }
.moderation-audit summary { cursor: pointer; }
.moderation-audit p { overflow-wrap: anywhere; }
@media(max-width: 1000px) { .activity-strip a { flex-wrap: wrap; gap: 6px 12px; } .activity-strip small { width: 100%; } }
@media(max-width: 600px) {
  .activity-strip { gap: 10px; }
  .activity-strip a { padding: 14px; }
  .activity-strip span { font-size: 11px; }
  .analytics-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .record-filter>input { flex-basis: 100%; }
  .record-filter label { flex: 1; min-width: 0; }
  .record-filter label input { width: 100%; min-width: 0; }
  .moderation-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .moderation-actions { flex-direction: column; align-items: flex-start; }
  .comment-entry { gap: 10px; }
  .comment-meta { flex-wrap: wrap; gap: 5px 9px; }
  .comment-meta time { width: 100%; margin-left: 0; }
  .comment-form { padding: 18px; }
  .comment-form-footer { flex-wrap: wrap; }
  .comment-form-footer button { margin-left: auto; }
  .comment-child { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .card:hover { transform: none; }
}
