/* ==========================================================================
   Egou 选型笔记 — Quiet Editorial Design System (V2)
   Self-hosted Geist + Noto Serif SC + Noto Sans SC.
   Warm uncoated paper (#f6f5f1), calm ink (#191918), 1px hairlines,
   zero SaaS widgets, zero pill confetti, standalone Ghost-like Admin Studio.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/static/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/static/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Editorial Serif SC";
  src: url("/static/fonts/NotoSerifSC-600.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Editorial Sans SC";
  src: url("/static/fonts/NotoSansSC-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Editorial Sans SC";
  src: url("/static/fonts/NotoSansSC-500.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f5f1;
  --bg-sheet: #ffffff;
  --bg-subtle: #efede7;
  --ink: #191918;
  --ink-body: #292826;
  --ink-secondary: #686660;
  --ink-muted: #918e86;
  --line: #dfddd5;
  --line-strong: #c8c5bc;
  --accent-ink: #191918;
  --danger: #b9382c;
  --ok: #28663e;

  --font-sans: "Geist", "Editorial Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-serif: "Geist", "Editorial Serif SC", "Songti SC", "STSong", serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html.dark {
  --bg: #131312;
  --bg-sheet: #191917;
  --bg-subtle: #1f1f1c;
  --ink: #eceae3;
  --ink-body: #dad7ce;
  --ink-secondary: #9c9990;
  --ink-muted: #6f6d66;
  --line: #292926;
  --line-strong: #3a3a35;
  --accent-ink: #eceae3;
  --danger: #e06356;
  --ok: #56b376;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Editorial Measure */
.wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-reading {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Quiet Site Header */
.pub-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.pub-header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.pub-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.pub-nav a {
  font-size: 14.5px;
  color: var(--ink-secondary);
  transition: color 0.14s ease;
}

.pub-nav a:hover,
.pub-nav a.active {
  color: var(--ink);
}

.pub-nav a.active {
  font-weight: 500;
}

.pub-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plain-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.plain-icon-btn:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}

/* Masthead on Home */
.masthead {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 40px;
  align-items: end;
}

.masthead h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 33px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.masthead p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.masthead-desk {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  font-size: 14px;
}

.masthead-desk-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.masthead-desk ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.masthead-desk li {
  margin-bottom: 6px;
}

.masthead-desk a {
  color: var(--ink-body);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.masthead-desk a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Underline Tabs (Categories & Tool Tabs) */
.tab-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
}

.tab-link {
  padding: 14px 0 13px;
  font-size: 14px;
  color: var(--ink-secondary);
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  cursor: pointer;
}

.tab-link:hover {
  color: var(--ink);
}

.tab-link.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

/* Editorial Post Stream (Pure Typography, Zero Fake Clip-Art) */
.post-stream {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-entry {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.post-entry-link {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
}

.post-entry-link.has-thumb {
  grid-template-columns: 148px minmax(0, 1fr) 148px;
  align-items: start;
}

.entry-aside {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.entry-date {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-secondary);
  display: block;
}

.entry-cat {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.entry-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 20.5px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
  text-wrap: pretty;
}

.post-entry-link:hover .entry-title {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.entry-summary {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.entry-foot {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.entry-thumb {
  width: 148px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* Quiet Desk Tools Strip on Home */
.home-tools-note {
  padding: 36px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.home-tool-item h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.home-tool-item p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.home-tool-item a {
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

/* Article Detail Page */
.article-wrap {
  padding: 44px 0 64px;
}

.crumb-back {
  display: inline-block;
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 26px;
}

.crumb-back:hover {
  color: var(--ink);
}

.article-head {
  max-width: 690px;
  padding-bottom: 26px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-meta-line {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.article-h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 35px);
  font-weight: 600;
  line-height: 1.34;
  color: var(--ink);
  text-wrap: balance;
}

.article-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.article-Uploaded-cover {
  max-width: 690px;
  margin: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px) 190px;
  justify-content: space-between;
  gap: 44px;
  align-items: start;
}

.reading-grid.single {
  grid-template-columns: minmax(0, 680px);
}

/* Literary & Technical Prose */
.prose {
  font-size: 16.5px;
  line-height: 1.88;
  color: var(--ink-body);
  word-break: break-word;
}

.prose p {
  margin: 0 0 1.3em;
  text-wrap: pretty;
}

.prose h2 {
  margin: 2.2em 0 0.75em;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  scroll-margin-top: 28px;
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  scroll-margin-top: 28px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.35em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  font-weight: 500;
  color: var(--ink);
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-secondary);
  font-size: 15.5px;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--bg-subtle);
  padding: 1px 5px;
  border-radius: 3px;
}

.prose pre {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--ink);
}

.prose img {
  margin: 1.6em 0;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* Booktabs-style Editorial Data Tables (Clean horizontal rules, zero heavy boxy clutter) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.6em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose th {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: none;
}

/* Quiet Right Outline */
.toc-rail {
  position: sticky;
  top: 32px;
  font-size: 13px;
}

.toc-rail-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 7px;
}

.toc-list li.toc-h3 {
  padding-left: 12px;
}

.toc-list a {
  color: var(--ink-muted);
  line-height: 1.45;
  display: block;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--ink);
}

.article-endnote {
  max-width: 680px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.article-endnote a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.article-pager {
  max-width: 680px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

.article-pager a span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

/* Clean Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-sheet);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 500;
}

.btn-ink:hover {
  opacity: 0.88;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-sheet);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--ink);
}

/* Tabbed Desk Tools (/tools) */
.workbench-pane {
  display: none;
  padding: 32px 0 48px;
}

.workbench-pane.active {
  display: block;
}

.workbench-split {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 40px;
  align-items: start;
}

.field-row {
  margin-bottom: 18px;
}

.field-row label {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.sheet-output {
  background: var(--bg-sheet);
  border: 1px solid var(--line);
  padding: 24px 26px;
  border-radius: 4px;
}

.sheet-output h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.entity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.entity-table th,
.entity-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entity-table th {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* Quiet Site Footer */
.pub-footer {
  padding: 36px 0 48px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.pub-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pub-footer-links {
  display: flex;
  gap: 18px;
}

.pub-footer-links a:hover {
  color: var(--ink);
}

/* Search Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 15, 14, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 16px 16px;
}

.modal-backdrop.open {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-sheet);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.search-modal-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}

.search-hit {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
}

.search-hit:hover {
  background: var(--bg);
}

/* ==========================================================================
   Standalone Publishing Studio (/admin) — Ghost / iA Writer Inspired
   ========================================================================== */
.studio-body {
  background: var(--bg-sheet);
  color: var(--ink-body);
  min-height: 100vh;
}

.studio-shell {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: 100vh;
}

.studio-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.studio-brand {
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.studio-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
}

.studio-brand a {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.studio-brand a:hover {
  color: var(--ink);
}

.studio-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.studio-menu li {
  margin-bottom: 2px;
}

.studio-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.studio-menu a:hover,
.studio-menu a.active {
  background: var(--bg-subtle);
  color: var(--ink);
}

.studio-main {
  padding: 36px 44px;
  max-width: 980px;
}

.studio-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.studio-topbar h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
}

.studio-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.studio-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.studio-post-title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.studio-post-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.studio-post-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.studio-row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.studio-row-actions a:hover,
.studio-row-actions button:hover {
  color: var(--ink);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Distraction-Free Writer Canvas */
.writer-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 50px;
  padding: 0 20px;
  background: var(--bg-sheet);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.mode-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.mode-switch button {
  background: transparent;
  border: none;
  padding: 4px 11px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.mode-switch button.active {
  background: var(--bg-subtle);
  color: var(--ink);
  font-weight: 500;
}

.writer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 50px);
}

.writer-workspace.drawer-open {
  grid-template-columns: minmax(0, 1fr) 296px;
}

.writer-stage {
  padding: 36px 28px 80px;
}

.writer-sheet {
  max-width: 700px;
  margin: 0 auto;
}

.writer-stage.mode-split .writer-sheet {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.writer-title-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
  padding: 0;
  margin-bottom: 10px;
}

.writer-excerpt-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-secondary);
  padding: 4px 0 14px;
  margin-bottom: 14px;
}

.writer-format-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.writer-format-bar button,
.writer-format-bar label {
  background: none;
  border: none;
  padding: 3px 6px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.writer-format-bar button:hover,
.writer-format-bar label:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.writer-md-area {
  width: 100%;
  min-height: 62vh;
  border: none;
  outline: none;
  resize: vertical;
  background: transparent;
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  padding: 0;
}

.writer-preview-col {
  display: none;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.writer-stage.mode-split .writer-preview-col {
  display: block;
}

.writer-stage.mode-preview .writer-edit-col {
  display: none;
}

.writer-stage.mode-preview .writer-preview-col {
  display: block;
  border-left: none;
  padding-left: 0;
}

.writer-inspector {
  display: none;
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 22px 18px;
  font-size: 13.5px;
}

.writer-workspace.drawer-open .writer-inspector {
  display: block;
}

.inspector-field {
  margin-bottom: 16px;
}

.inspector-field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 5px;
}

.studio-notice {
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 4px;
  font-size: 13.5px;
}

/* Mobile Responsive */
@media (max-width: 820px) {
  .masthead,
  .reading-grid,
  .workbench-split,
  .home-tools-note,
  .studio-shell,
  .writer-workspace.drawer-open,
  .writer-stage.mode-split .writer-sheet {
    grid-template-columns: 1fr;
  }
  .masthead-desk {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
  .post-entry-link,
  .post-entry-link.has-thumb {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .entry-aside {
    display: flex;
    gap: 10px;
  }
  .toc-rail {
    position: static;
    order: -1;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .studio-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .studio-main {
    padding: 24px 20px;
  }
}
