:root {
  color-scheme: light;
  --paper: #fff;
  --sidebar: #f6f8fa;
  --panel: #fafbfc;
  --ink: #273440;
  --muted: #7e8b96;
  --line: #e9edf0;
  --accent: #1885b3;
  --accent-soft: #eaf6fc;
  --button-bg: #1681ad;
  --button-ink: #fff;
  --shadow: 0 16px 60px rgb(24 42 58 / 12%);
  font-family: "LXGW WenKai Screen", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1a2027;
  --sidebar: #161c22;
  --panel: #1c232a;
  --ink: #e4eaf0;
  --muted: #99a7b3;
  --line: #2b353f;
  --accent: #66c4e9;
  --accent-soft: #233742;
  --button-bg: #75cbed;
  --button-ink: #12313e;
  --shadow: 0 16px 60px rgb(0 0 0 / 30%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: var(--accent); }
button, input, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button, .post-item, .text-link, body, .topbar, .sidebar, .inspector { transition: background-color .2s, color .2s, border-color .2s; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { height: 64px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 9px 9px 9px 3px; color: var(--accent); font-size: 19px; font-weight: 700; }
.brand strong { font-size: 16px; letter-spacing: 1px; }
.brand-divider { height: 16px; width: 1px; margin: 0 2px; background: var(--line); }
.brand-caption { color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; gap: 18px; align-items: center; }
.text-link, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; padding: 5px 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: none; }
.text-link:hover, .text-button:hover { color: var(--accent); }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; }
.icon-button:hover { color: var(--accent); background: var(--accent-soft); }
.user-badge { font-size: 12px; color: var(--muted); }
.demo-badge { padding: 4px 9px; border-radius: 5px; color: var(--accent); background: var(--accent-soft); font-size: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.primary { color: var(--button-ink); background: var(--button-bg); }
.primary:hover { filter: brightness(1.06); }
.secondary { color: var(--ink); background: var(--paper); border-color: var(--line); }
.secondary:hover { border-color: var(--accent); }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.loading-view { height: calc(100dvh - 64px); display: grid; place-items: center; color: var(--muted); }
.workspace { display: grid; grid-template-columns: 268px minmax(0, 1fr); height: calc(100dvh - 64px); }
.sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 24px 16px 0; border-right: 1px solid var(--line); background: var(--sidebar); }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.sidebar-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; font-weight: 600; }
.count { font-size: 10px; font-weight: 400; color: var(--muted); background: var(--paper); padding: 2px 6px; border-radius: 5px; }
.new-button { width: 100%; margin: 22px 0 16px; font-size: 13px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--muted); }
.search-box .icon { width: 15px; height: 15px; }
.search-box input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); outline: none; font-size: 12px; }
.search-box:focus-within { border-color: var(--accent); }
.post-tabs { display: flex; gap: 20px; margin: 16px 7px 8px; border-bottom: 1px solid var(--line); }
.post-tabs button { position: relative; padding: 9px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.post-tabs button[aria-pressed="true"] { color: var(--accent); }
.post-tabs button[aria-pressed="true"]::after { position: absolute; bottom: -1px; right: 0; left: 0; content: ""; height: 2px; border-radius: 1px; background: var(--accent); }
.post-tabs span { font-size: 10px; margin-left: 2px; }
.post-list { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; padding: 3px 0 16px; scrollbar-width: thin; }
.post-item { display: flex; flex-direction: column; align-items: stretch; gap: 7px; width: 100%; min-width: 0; margin: 3px 0; padding: 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; }
.post-item:hover { background: var(--paper); }
.post-item.active { background: var(--paper); border-color: var(--line); box-shadow: 0 2px 7px rgb(0 0 0 / 2%); }
.post-item.active strong { color: var(--accent); }
.post-item strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; font-size: 12px; font-weight: 500; line-height: 1.65; }
.post-item small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-label { color: #b27c33; }
.local-label { color: var(--accent); }
.list-empty { margin: 30px 8px; color: var(--muted); font-size: 12px; text-align: center; }
.sidebar-footer { display: flex; align-items: center; gap: 7px; flex-shrink: 0; border-top: 1px solid var(--line); padding: 16px 7px; color: var(--muted); font-size: 10px; }
.sidebar-footer .text-button { margin-left: auto; font-size: 10px; }
.connection-dot, .status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #a4afb7; }
.connected, .status-dot.saved { background: #5bad91; }
.status-dot.dirty, .connection-dot.pending { background: #c59b53; }
.editor-panel { min-width: 0; min-height: 0; }
.empty-editor { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px clamp(28px, 8vw, 115px); }
.welcome { margin: auto 0; padding-bottom: 60px; }
.welcome h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: .5px; margin: 22px 0 16px; }
.welcome p { font-size: 14px; color: var(--muted); margin: 0 0 30px; line-height: 1.8; }
.welcome .button { min-height: 42px; padding: 10px 19px; font-size: 13px; }
.welcome-bottom { display: flex; align-items: center; gap: 9px; padding-bottom: 18px; color: var(--muted); font-size: 11px; }
.editor { height: 100%; display: flex; flex-direction: column; min-width: 0; }
.editor-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; min-height: 66px; padding: 14px 30px; border-bottom: 1px solid var(--line); }
.document-status { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 11px; }
.editor-actions { display: flex; align-items: center; gap: 10px; }
.editor-actions .text-button { margin-right: 10px; }
.editor-body { display: grid; flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) 246px; }
.writing-area { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.document-heading { flex-shrink: 0; padding: 32px 36px 25px; }
.title-input { display: block; width: 100%; min-width: 0; margin: 15px 0 10px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: clamp(23px, 2.2vw, 32px); font-weight: 600; line-height: 1.45; }
.title-input::placeholder { color: var(--muted); opacity: .7; }
.path-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font: 10px/1.7 ui-monospace, Consolas, monospace; }
.format-bar { display: flex; flex-shrink: 0; flex-direction: column; gap: 4px; margin: 0 22px; padding: 7px 6px 5px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.format-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; width: 100%; }
.tool-group { display: flex; align-items: center; gap: 2px; }
.tool-group + .tool-group { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.format-tools select { max-width: 62px; height: 29px; margin-right: 4px; border: 0; border-radius: 4px; color: var(--muted); background: var(--paper); font: inherit; font-size: 11px; cursor: pointer; }
.format-tools button { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 13px; }
.format-tools button:hover { color: var(--accent); background: var(--accent-soft); }
.format-tools .icon { width: 16px; height: 16px; }
.format-options { display: flex; gap: 10px; align-items: center; width: 100%; min-width: 0; }
.editor-upload-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.editor-upload-status.uploading { color: var(--accent); }
.editor-upload-status.uploading::before { display: inline-block; content: ''; width: 9px; height: 9px; margin-right: 6px; border: 1px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: upload-spin .8s linear infinite; }
@keyframes upload-spin { to { transform: rotate(360deg); } }
.view-tabs { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.view-tabs button { border: 0; padding: 6px 8px; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; }
.view-tabs button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.format-options > .icon-button { flex-shrink: 0; width: 26px; height: 26px; }
.view-tabs { flex-shrink: 0; }
.writing-content { display: grid; flex: 1; min-height: 0; min-width: 0; }
.writing-content[data-view="split"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.writing-content[data-view="split"] .markdown-preview { border-left: 1px solid var(--line); padding: 24px; }
.writing-content[data-view="preview"] .source-pane { display: none; }
.source-pane { display: flex; position: relative; min-height: 0; min-width: 0; }
.source-pane textarea { width: 100%; height: 100%; min-height: 180px; padding: 24px 36px 65px; resize: none; border: 0; background: transparent; color: var(--ink); outline: none; font: 14px/2 "LXGW WenKai Screen", "Microsoft YaHei", ui-monospace, Consolas, monospace; scrollbar-width: thin; tab-size: 2; }
.source-pane textarea::placeholder { color: var(--muted); opacity: .7; }
.source-pane:focus-within { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--accent) 20%, transparent); }
.drop-hint { display: none; position: absolute; inset: 10px; align-items: center; justify-content: center; gap: 12px; border: 1px dashed var(--accent); border-radius: 8px; background: var(--accent-soft); color: var(--accent); pointer-events: none; }
.source-pane.dragging .drop-hint { display: flex; }
.editor-footer { flex-shrink: 0; display: flex; align-items: center; gap: 16px; min-height: 37px; padding: 10px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-spacer { flex: 1; }
kbd { font: 10px ui-monospace, Consolas, monospace; padding: 2px 4px; border: 1px solid var(--line); border-radius: 3px; }
.inspector { min-height: 0; overflow-y: auto; padding: 24px 20px; border-left: 1px solid var(--line); background: var(--panel); scrollbar-width: thin; }
.inspector-heading, .field-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.inspector h3 { margin: 0; font-size: 12px; font-weight: 600; }
.inspector-close { display: none; }
.field { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; color: var(--muted); font-size: 11px; }
.field-note { margin-left: auto; color: var(--muted); opacity: .75; font-size: 10px; }
.field input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--paper); font-size: 11px; }
.field input:focus { border-color: var(--accent); }
.suggest-field { position: relative; width: 100%; }
.field-help { width: 100%; color: var(--muted); font-size: 10px; line-height: 1.6; }
.suggest-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; max-height: 200px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); box-shadow: 0 6px 20px rgb(0 0 0 / 9%); scrollbar-width: thin; }
.suggest-options button { display: block; width: 100%; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); text-align: left; font-size: 11px; overflow-wrap: anywhere; }
.suggest-options button:hover, .suggest-options button[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); }
.section-divider { height: 1px; margin: 26px 0 22px; background: var(--line); }
.field-heading { margin-bottom: 12px; }
.field-heading .text-button, .field-heading .text-link { font-size: 10px; color: var(--accent); }
.cover-preview { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; aspect-ratio: 1.7; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); background: var(--paper); overflow: hidden; font-size: 10px; }
.cover-preview .icon { width: 26px; height: 26px; opacity: .6; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 119px; padding: 14px 8px; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); background: var(--paper); }
.upload-zone:hover { border-color: var(--accent); color: var(--accent); }
.upload-zone strong { font-size: 11px; font-weight: 500; }
.upload-zone span { font-size: 9px; }
.upload-status { color: var(--muted); font-size: 10px; line-height: 1.8; }
.media-list { display: grid; gap: 10px; }
.media-item { display: grid; grid-template-columns: 45px minmax(0, 1fr); column-gap: 9px; row-gap: 4px; }
.media-item img { width: 45px; height: 45px; grid-row: span 2; object-fit: cover; border-radius: 5px; background: var(--line); }
.media-name { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.media-actions { display: flex; gap: 12px; }
.media-actions button { font-size: 10px; color: var(--accent); }
.inspector-note { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--muted); font-size: 10px; }
.editor-notice, .recovery-notice { flex-shrink: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding: 10px 30px; background: var(--accent-soft); color: var(--accent); font-size: 11px; line-height: 1.7; }
.recovery-notice { background: color-mix(in srgb, #c59b53 10%, var(--paper)); color: var(--ink); }
.recovery-notice span { flex: 1; }
.recovery-notice button { color: var(--accent); font-size: 11px; }
.markdown-preview { min-height: 0; min-width: 0; overflow-y: auto; padding: 24px 36px 65px; font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; scrollbar-width: thin; }
.markdown-preview > :first-child { margin-top: 0; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { line-height: 1.5; font-weight: 600; margin-top: 1.5em; }
.markdown-preview h1 { font-size: 26px; }
.markdown-preview h2 { font-size: 22px; }
.markdown-preview h3 { font-size: 18px; }
.markdown-preview a { text-underline-offset: 3px; }
.markdown-preview img { max-width: 100%; height: auto; border-radius: 7px; }
.markdown-preview pre { overflow-x: auto; padding: 16px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--sidebar); font: 12px/1.85 ui-monospace, Consolas, monospace; }
.markdown-preview code { padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); font: .9em/1.8 ui-monospace, Consolas, monospace; }
.markdown-preview pre code { padding: 0; background: transparent; }
.markdown-preview blockquote { margin: 20px 0; padding: 1px 20px; border-left: 3px solid var(--accent); color: var(--muted); background: var(--panel); }
.markdown-preview table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.markdown-preview td, .markdown-preview th { border: 1px solid var(--line); padding: 8px 12px; min-width: 70px; }
.markdown-preview hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.markdown-preview input { accent-color: var(--accent); }
.markdown-preview .task-checkbox { color: var(--accent); }
.workspace.focus-mode { grid-template-columns: minmax(0, 1fr); }
.focus-mode .sidebar, .focus-mode .inspector { display: none; }
.focus-mode .editor-body, .editor.settings-hidden .editor-body { grid-template-columns: minmax(0, 1fr); }
.editor.settings-hidden .inspector { display: none; }
.focus-mode .writing-area { width: min(100%, 1080px); margin: 0 auto; }
.mobile-only, .drawer-backdrop { display: none; }
dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 34px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(14 25 34 / 35%); backdrop-filter: blur(3px); }
dialog h2 { margin: 18px 0 12px; font-size: 23px; font-weight: 600; }
dialog p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.dialog-close { position: absolute; top: 14px; right: 14px; }
.publish-summary { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px 10px; padding: 18px 0; margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.publish-summary span { color: var(--muted); }
.publish-summary strong { font-weight: 500; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.build-item { display: flex; flex-direction: column; gap: 7px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.build-item strong { font-size: 12px; font-weight: 500; }
.build-item span { font-size: 11px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font-size: 12px; line-height: 1.8; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: #c78080; }
.login-view { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - 64px); max-width: 1080px; margin: 0 auto; padding: 80px 40px; align-items: center; gap: 80px; }
.large-mark { width: 46px; height: 46px; font-size: 26px; margin-bottom: 32px; }
.login-card h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.65; letter-spacing: 1px; font-weight: 600; margin: 18px 0; }
.login-description { color: var(--muted); margin-bottom: 32px; }
.login-card > small { display: block; margin-top: 16px; color: var(--muted); font-size: 10px; }
.login-decoration { padding: 40px; border-left: 1px solid var(--line); min-height: 300px; color: var(--muted); }
.paper-line { width: 100%; height: 180px; margin-bottom: 30px; background: repeating-linear-gradient(transparent 0 35px, var(--line) 35px 36px); }
.login-decoration span { font-size: 11px; letter-spacing: 4px; }
.error-message { color: #b96f60; font-size: 12px; line-height: 1.8; }
@media (min-width: 1101px) { .editor:not(.settings-hidden) #settings-button { color: var(--accent); background: var(--accent-soft); } }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 238px minmax(0, 1fr); }
  .editor-body { grid-template-columns: minmax(0, 1fr); }
  .inspector { display: none; position: fixed; top: 64px; bottom: 0; right: 0; z-index: 32; width: 280px; box-shadow: var(--shadow); }
  .workspace[data-drawer="settings"] .inspector { display: block; }
  .inspector-close { display: inline-grid; }
  .drawer-backdrop { position: fixed; inset: 64px 0 0; z-index: 30; display: block; border: 0; background: rgb(14 25 34 / 22%); }
  .document-heading { padding: 27px 30px 23px; }
  .source-pane textarea { padding-right: 30px; padding-left: 30px; }
  .format-bar { gap: 5px; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 16px; height: 56px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 14px; }
  .topbar-actions { gap: 10px; }
  .brand-divider, .brand-caption, .blog-link, .user-badge, .demo-badge { display: none; }
  .workspace { height: calc(100dvh - 56px); grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; position: fixed; left: 0; top: 56px; bottom: 0; z-index: 32; width: min(300px, calc(100vw - 36px)); box-shadow: var(--shadow); }
  .workspace[data-drawer="list"] .sidebar { display: flex; }
  .mobile-only { display: inline-flex; }
  .inspector, .drawer-backdrop { top: 56px; }
  .editor-header { padding: 12px 15px; gap: 8px; min-height: 62px; }
  .document-status { gap: 6px; font-size: 10px; }
  .editor-actions { gap: 6px; }
  .editor-actions .button { padding: 7px 10px; font-size: 11px; }
  .editor-actions .text-button { margin-right: 0; font-size: 10px; }
  .document-heading { padding: 25px 20px 20px; }
  .format-bar { flex-wrap: wrap; padding: 5px 0; margin: 0 15px; gap: 3px; }
  .format-tools { gap: 5px 0; }
  .format-tools button { width: 27px; }
  .view-tabs button { padding: 6px; }
  .source-pane textarea { padding: 22px 20px 40px; font-size: 14px; }
  .editor-footer { gap: 10px; padding: 9px 18px; font-size: 9px; }
  .editor-footer kbd { display: none; }
  .markdown-preview { padding: 22px 20px 40px; }
  .writing-content[data-view="split"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .writing-content[data-view="split"] .markdown-preview { border-left: 0; border-top: 1px solid var(--line); }
  .editor-notice, .recovery-notice { padding: 9px 20px; }
  .focus-mode .sidebar { display: none; }
  .empty-editor { padding: 22px; }
  .welcome-bottom { font-size: 10px; }
  .login-view { display: block; padding: 60px 30px; min-height: calc(100dvh - 56px); }
  .login-decoration { display: none; }
  .loading-view { height: calc(100dvh - 56px); }
}
@media (max-width: 390px) {
  .editor-actions #focus-button { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
