:root {
  --green: #07c160;
  --green-hover: #06ad56;
  --ink: #1d2129;
  --line: #e5e6eb;
  --soft-line: #e5eae7;
  --muted: #86909c;
  --drawer-width: 300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body, #app { height: 100%; }

body {
  min-width: 320px;
  overflow: hidden;
  color: #24292e;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button, input, textarea { font: inherit; }
button { border: 0; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #07c160; outline-offset: 2px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d5d8dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bfc4cb; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: #07c16033; }

.is-hidden { display: none !important; }

.app { display: flex; flex-direction: column; height: 100%; }

.appbar {
  display: flex;
  align-items: center;
  flex: 0 0 54px;
  gap: 10px;
  height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  user-select: none;
}

.brand:active { opacity: .7; }
.brand-img { display: block; width: 24px; height: 24px; }
.brand-name { color: #1a1a1a; font-size: 15px; font-weight: 700; white-space: nowrap; }
.brand-slogan { color: #b0b3b8; font-size: 12px; white-space: nowrap; }

.top-document { display: flex; align-items: center; flex: 1; min-width: 0; gap: 10px; }
.top-title-input { width: min(440px, 100%); height: 32px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 650; }
.top-save { display: inline-flex; align-items: center; gap: 5px; color: #8b9690; font-size: 11px; white-space: nowrap; }
.top-save i { width: 6px; height: 6px; border-radius: 50%; background: #63b889; }
.top-save[data-state="unsaved"], .status-save[data-state="unsaved"] { color: #c27c2f; }
.top-save[data-state="unsaved"] i { background: #d8913e; }

.appbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-icon, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #4e5969;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.top-icon:hover { border-color: #a8d5b9; background: #f4fbf7; color: #087c45; }
.top-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.btn-export, .btn-publish, .copy-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.export-wrap { position: relative; flex-shrink: 0; }
.btn-export { gap: 4px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #4e5969; }
.btn-export:hover { border-color: var(--green); color: var(--green); }
.caret { font-size: 9px; }
.export-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px #0000001f;
}
.export-menu button { padding: 8px 12px; border-radius: 6px; background: transparent; color: #333; font-size: 13px; text-align: left; }
.export-menu button:hover { background: #f2f3f5; }
.btn-publish { gap: 5px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #53605a; font-weight: 650; }
.btn-publish:hover { border-color: #a8d5b9; background: #f4fbf7; color: #087c45; }
.btn-publish svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.copy-primary { flex-shrink: 0; gap: 6px; padding: 0 14px; border-radius: 6px; background: var(--green); color: #fff; }
.copy-primary:hover { background: var(--green-hover); }
.copy-primary.done { background: #37c700; }
.copy-primary .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.body { display: flex; flex: 1; min-height: 0; }
.sidebar { flex: 0 0 220px; width: 220px; border-right: 1px solid var(--line); background: #fff; }
.doc-list { display: flex; flex-direction: column; height: 100%; }
.doc-list-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.new-btn { width: 24px; height: 24px; border-radius: 4px; background: var(--green); color: #fff; font-size: 16px; line-height: 1; transition: background .15s ease; }
.new-btn:hover { background: var(--green-hover); }
.doc-search { display: flex; align-items: center; gap: 6px; height: 30px; margin: 8px 10px; padding: 0 8px; border-radius: 6px; background: #f3f4f6; }
.doc-search svg { flex: 0 0 auto; width: 15px; height: 15px; fill: none; stroke: #999; stroke-width: 1.6; stroke-linecap: round; }
.doc-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #333; font-size: 13px; }
.doc-items { flex: 1; overflow-y: auto; padding: 4px; }
.doc-item { position: relative; padding: 8px 10px; border-radius: 6px; transition: background .12s ease; }
.doc-item:hover { background: #f2f3f5; }
.doc-item.active { background: #e8f9ef; }
.doc-title { display: flex; align-items: center; overflow: hidden; color: #24292e; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.doc-item.active .doc-title { color: var(--green); }
.theme-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--dot, #1a1a1a); box-shadow: 0 0 0 1px #0000000f inset; }
.doc-meta { display: flex; gap: 8px; margin-top: 3px; color: #999; font-size: 11px; }
.empty { padding: 20px 0; color: #aaa; font-size: 12px; text-align: center; }

.workarea { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.subbar { display: flex; align-items: center; flex: 0 0 50px; gap: 12px; height: 50px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fff; }
.workspace-tabs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--soft-line); border-radius: 7px; background: #f5f7f6; }
.workspace-tabs button { height: 27px; padding: 0 10px; border-radius: 5px; background: transparent; color: #7d8983; font-size: 12px; }
.workspace-tabs button.active { background: #fff; color: #1d2522; box-shadow: 0 1px 3px #14281d14; font-weight: 650; }
.icon-btn:hover { background: #f2f3f5; color: var(--ink); }
.icon-btn.active { border-color: var(--green); background: #e8f9ef; color: var(--green); }
.subbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tool-label { margin-right: 1px; color: #a0aaa5; font-size: 11px; }
.tool-tab { height: 28px; padding: 0 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #68746e; font-size: 12px; }
.tool-tab:hover { background: #f5f7f6; color: #1d2522; }
.tool-tab.active { border-color: #b8dfc7; background: #e7f7ee; color: #087c45; font-weight: 650; }

.content { display: flex; flex: 1; min-height: 0; }
.pane { min-width: 0; overflow: hidden; }
.editor-pane { display: flex; flex: 1.1; flex-direction: column; border-right: 1px solid var(--line); }
.preview-pane { display: flex; flex: 1.1; flex-direction: column; border-right: 1px solid var(--line); background: #f3f4f6; }
.right-pane { display: flex; flex: 0 0 var(--drawer-width); flex-direction: column; width: var(--drawer-width); min-height: 0; background: #fff; }
.content.view-editor .preview-pane, .content.view-preview .editor-pane { display: none; }
.content.view-editor .editor-pane, .content.view-preview .preview-pane { flex: 1; }
.editor-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fafbfc; }
.format-bar { display: flex; align-items: center; flex-wrap: wrap; flex: 0 0 auto; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.fbtn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; border-radius: 6px; background: transparent; color: #4e5969; font-size: 13px; transition: color .15s ease, background .15s ease; }
.fbtn:hover { background: #eef0f2; color: var(--ink); }
.fbtn-text { width: auto; padding: 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; }
.fbtn-ai { color: var(--green); }
.fdivider { width: 1px; height: 16px; margin: 0 6px; background: var(--line); }
.fdivider-break { flex-basis: 100%; width: 0; height: 0; margin: 0; }
.editor-host { display: flex; flex: 1; min-height: 0; overflow: hidden; background: #fafbfc; }
.line-numbers { flex: 0 0 38px; overflow: hidden; padding: 8px 8px 12px 0; border-right: 1px solid #edf0f2; color: #b6bbc2; background: #f7f8f9; font: 13px/19.6px Menlo, Consolas, Monaco, monospace; text-align: right; user-select: none; }
.markdown-editor { flex: 1; min-width: 0; resize: none; padding: 8px 14px; border: 0; outline: 0; background: #fafbfc; color: #2f3337; font: 13px/19.6px Menlo, Consolas, Monaco, "Liberation Mono", monospace; white-space: pre; tab-size: 4; }

.preview { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #f3f4f6; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 6px 12px; border-bottom: 1px solid #ebedf0; background: #fff; }
.preview-tag { padding: 2px 6px; border-radius: 4px; background: transparent; color: #999; font-size: 11px; letter-spacing: 1px; }
.preview-tag:hover { background: #f0faf4; color: var(--green); }
.size-switch { display: inline-flex; padding: 2px; border-radius: 6px; background: #f2f3f5; }
.size-btn { padding: 3px 12px; border-radius: 4px; background: transparent; color: #666; font-size: 12px; }
.size-btn.active { background: #fff; color: var(--green); box-shadow: 0 1px 3px #00000014; font-weight: 600; }
.preview-scroll { display: flex; flex: 1; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; }
.preview-paper { width: 390px; max-width: 100%; min-height: 520px; padding: 20px 16px 36px; border: 1px solid #ebecef; border-radius: 12px; background: var(--paper, #fff); color: var(--article-ink, #333); overflow: hidden; transition: width .2s ease, background .2s ease, color .2s ease; }
.preview-paper[data-size="wechat"] { width: 677px; }
.wx-head { margin: 4px 4px 18px; }
.wx-title { margin: 0 0 14px; color: var(--article-title, #000000e0); font-size: 20px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.wx-meta { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--article-ink, #000) 8%, transparent); }
.wx-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--theme-accent, var(--green)); color: #fff; font-size: 13px; }
.wx-account { padding: 1px 4px; border-radius: 4px; background: transparent; color: #576b95; font-size: 13px; }
.wx-account:hover { background: #576b9514; }
.wx-account-input { width: 130px; padding: 1px 4px; border: 1px solid var(--green); border-radius: 4px; color: #333; font-size: 13px; outline: 0; }
.wx-date { margin-left: auto; color: #00000059; font-size: 12px; white-space: nowrap; }
.article-body { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.article-body h2, .article-body h3 { color: var(--article-title, #1d2129); line-height: 1.45; }
.article-body h2 { margin: 1.55em 0 .65em; padding-bottom: .38em; border-bottom: 2px solid var(--theme-accent, #1a1a1a); font-size: 18px; }
.article-body h3 { margin: 1.35em 0 .55em; font-size: 16px; }
.article-body p { margin: .85em 0; }
.article-body strong { color: var(--article-title, #1d2129); }
.article-body em { color: inherit; }
.article-body code { padding: 2px 4px; border-radius: 3px; background: color-mix(in srgb, var(--theme-accent, #07c160) 12%, #fff); color: #c7254e; font: 12px/1.5 Menlo, Consolas, Monaco, monospace; }
.article-body pre { overflow-x: auto; margin: 1.1em 0; padding: 13px 14px; border-radius: 7px; background: #282c34; color: #e6edf3; font: 12px/1.7 Menlo, Consolas, Monaco, monospace; }
.article-body pre code { padding: 0; background: transparent; color: inherit; }
.article-body blockquote { margin: 1.2em 0; padding: 10px 14px; border-left: 4px solid var(--theme-accent, #07c160); background: color-mix(in srgb, var(--theme-accent, #07c160) 7%, #fff); color: #5b6570; }
.article-body ol, .article-body ul { margin: .7em 0; padding-left: 1.5em; }
.article-body li { margin: .28em 0; }
.article-body hr { margin: 2.2em 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--theme-accent, #07c160) 25%, #d9dfe2); }
.article-body table { width: 100%; margin: 1em 0; border-collapse: collapse; font-size: 13px; }
.article-body th, .article-body td { padding: 7px 8px; border: 1px solid color-mix(in srgb, var(--theme-accent, #07c160) 22%, #dfe3e6); text-align: left; }
.article-body th { background: color-mix(in srgb, var(--theme-accent, #07c160) 9%, #fff); }
.task-item { list-style: none; margin-left: -1.5em; }
.task-item input { margin-right: 7px; accent-color: var(--theme-accent, var(--green)); }

.drawer-head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 52px; min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--soft-line); }
.drawer-head div { display: grid; gap: 1px; }
.drawer-head strong { color: #1d2522; font-size: 13px; }
.drawer-head span { color: #a0aaa5; font-size: 10px; }
.drawer-head button { width: 26px; height: 26px; border-radius: 6px; background: transparent; color: #9aa59f; font-size: 18px; }
.drawer-head button:hover { background: #f2f5f3; color: #4e5b54; }
.right-scroll { flex: 1; overflow-y: auto; }
.theme-selector { display: flex; flex-direction: column; gap: 16px; padding: 14px; }
.group-label { display: block; margin-bottom: 8px; color: #999; font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.theme-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.theme-card { position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden; min-height: 128px; padding: 12px 10px 9px; border: 2px solid transparent; outline: 1px solid var(--line); outline-offset: -1px; border-radius: 10px; background: var(--card-bg, #fff); color: var(--card-ink, #1d2129); text-align: left; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.theme-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--card-accent, var(--green)); content: ""; }
.theme-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #0000001a; }
.theme-card.active { border-color: var(--green); outline-color: var(--green); }
.mini-title { padding-bottom: 4px; margin-bottom: 2px; color: inherit; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-line { width: 100%; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--card-ink, #333) 28%, transparent); }
.mini-line.short { width: 72%; }
.mini-link { color: var(--card-accent, var(--green)); font-size: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mini-desc { display: -webkit-box; min-height: 31px; padding-top: 5px; border-top: 1px dashed #00000014; color: color-mix(in srgb, var(--card-ink, #333) 56%, transparent); font-size: 10px; font-weight: 500; line-height: 1.5; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.panel-copy { padding: 14px; }
.menu-grid { display: flex; flex-direction: column; gap: 8px; }
.menu-card { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.menu-card:hover { border-color: var(--green); background: #f0faf4; transform: translateY(-1px); }
.mc-icon { grid-row: 1 / 3; font-size: 20px; }
.mc-name { color: var(--ink); font-size: 13px; font-weight: 700; }
.mc-desc { margin-top: 2px; color: #a8adb5; font-size: 11.5px; }
.dim { margin: 12px 0 0; color: #a8adb5; font-size: 12px; line-height: 1.7; }
.config-link { display: inline-block; margin-top: 12px; border: 0; background: transparent; color: var(--green); font-size: 12.5px; }
.history-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #f2f3f5; }
.history-info { flex: 1; min-width: 0; }
.history-title { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.history-time { margin-top: 2px; color: #999; font-size: 11px; }
.restore-btn { padding: 3px 10px; border: 1px solid var(--green); border-radius: 4px; background: transparent; color: var(--green); font-size: 12px; }
.restore-btn:hover { background: #e7f7ee; }

.status-bar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 30px; height: 30px; padding: 0 16px; border-top: 1px solid var(--line); background: #fafafa; color: #999; font-size: 12px; }

.toast { position: fixed; z-index: 310; bottom: 60px; left: 50%; max-width: calc(100vw - 32px); padding: 10px 20px; border-radius: 6px; background: #000000c7; color: #fff; font-size: 13px; text-align: center; transform: translateX(-50%); }

.settings-overlay { position: fixed; z-index: 240; inset: 0; display: grid; place-items: center; padding: 24px; background: #151e1a70; backdrop-filter: blur(3px); }
.settings-dialog { display: grid; grid-template-columns: 220px minmax(0, 1fr); width: min(900px, 100%); height: min(680px, calc(100vh - 48px)); overflow: hidden; border: 1px solid #dce4df; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px #0f1c153d; }
.settings-nav { padding: 18px 12px; border-right: 1px solid #e5eae7; background: #f8faf9; }
.settings-brand { display: grid; gap: 2px; padding: 0 10px 16px; }
.settings-brand strong { font-size: 16px; }
.settings-brand span, .settings-nav p { color: #98a29d; font-size: 11px; }
.settings-nav button { display: grid; width: 100%; gap: 0; margin: 2px 0; padding: 8px 11px; border-radius: 7px; background: transparent; color: #68746e; font-size: 12px; text-align: left; }
.settings-nav button span { color: #9ba49f; font-size: 10px; }
.settings-nav button.active { background: #e7f7ee; color: #087c45; }
.settings-nav p { margin: 18px 10px 0; padding-top: 14px; border-top: 1px solid #e5eae7; }
.settings-main { display: grid; grid-template-rows: 65px 1fr 62px; min-width: 0; }
.settings-head { display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid #e5eae7; }
.settings-head h2 { font-size: 16px; }
.settings-head p { margin-top: 1px; color: #929c97; font-size: 11px; }
.settings-close { width: 30px; height: 30px; border-radius: 6px; background: #f3f5f4; color: #7d8882; font-size: 18px; }
.settings-content { overflow: auto; padding: 24px 26px; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-grid button { display: grid; gap: 2px; padding: 15px; border: 1px solid #e5eae7; border-radius: 8px; background: #fff; text-align: left; }
.summary-grid button.ok { border-color: #b8dfc7; background: #f7fcf9; }
.summary-grid span, .summary-grid small { color: #929c97; font-size: 11px; }
.summary-grid strong { font-size: 14px; }
.summary-grid .ok strong { color: #087c45; }
.info-band { display: grid; gap: 4px; margin-top: 18px; padding: 15px; border-radius: 8px; background: #f5f7f6; color: #838e88; font-size: 12px; }
.settings-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-top: 1px solid #e5eae7; }
.settings-foot label { display: flex; gap: 7px; color: #7c8781; font-size: 11px; }
.settings-foot div { display: flex; gap: 8px; }
.settings-foot button { height: 32px; padding: 0 15px; border-radius: 7px; font-weight: 650; }
.settings-foot .secondary { border: 1px solid #dfe5e1; background: #fff; color: #66716b; }
.settings-foot .primary { border: 1px solid #08a95b; background: #08a95b; color: #fff; }

@media (max-width: 1060px) {
  .brand-slogan, .btn-publish { display: none; }
  .top-title-input { width: min(300px, 100%); }
  .tool-label { display: none; }
  .tool-tab { padding: 0 6px; }
}

@media (max-width: 760px) {
  .appbar { position: relative; flex-basis: 52px; height: 52px; gap: 8px; padding: 0 10px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 14px; }
  .top-document { position: absolute; z-index: 3; top: 58px; right: 94px; left: 10px; }
  .top-title-input { width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--soft-line); border-radius: 6px; background: #fff; font-size: 13px; }
  .top-save { display: none; }
  .appbar-right { gap: 5px; }
  .top-icon { width: 30px; height: 30px; }
  .btn-export { padding: 0 9px; }
  .copy-primary { padding: 0 10px; font-size: 12px; }
  .copy-primary svg { display: none; }
  .workarea { padding-top: 42px; }
  .sidebar { display: none; }
  .subbar { flex-basis: 44px; gap: 6px; height: 44px; padding: 0 8px; overflow-x: auto; }
  .subbar-right { gap: 3px; }
  .tool-tab { flex: 0 0 auto; padding: 0 7px; font-size: 11px; }
  .workspace-tabs { flex: 0 0 auto; }
  .workspace-tabs button { padding: 0 8px; }
  .right-pane { position: fixed; z-index: 100; top: 52px; right: 0; bottom: 30px; flex-basis: auto; width: min(340px, 92vw); box-shadow: -8px 0 24px #14231b1f; }
  .content.view-editor .preview-pane, .content.view-split .preview-pane, .content.view-preview .editor-pane { display: none; }
  .content.view-preview .preview-pane { display: flex; flex: 1; border-right: 0; }
  .editor-pane { flex: 1; border-right: 0; }
  .preview-scroll { padding: 18px 10px; }
  .status-bar { padding: 0 10px; font-size: 11px; }
  .settings-overlay { padding: 0; }
  .settings-dialog { width: 100%; height: 100%; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .settings-nav { display: none; }
  .settings-content { padding: 18px 16px; }
  .settings-head, .settings-foot { padding-right: 16px; padding-left: 16px; }
  .summary-grid { grid-template-columns: 1fr; }
}
