.wrap { height: 100%; display: flex; flex-direction: column; background: var(--surface); overflow: hidden; } .toolbar { min-height: 39px; padding: 4px 10px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); } .fileName { min-width: 0; flex: 1; overflow: hidden; color: #99918a; font: 11px var(--mono); text-overflow: ellipsis; white-space: nowrap; } .saveError { max-width: min(45%, 420px); overflow: hidden; color: #b42318; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; } .documentActions { display: flex; align-items: center; gap: 5px; } .modeSwitch { height: 30px; padding: 2px; display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); } .modeSwitch button { height: 24px; padding: 0 8px; display: flex; align-items: center; gap: 5px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; } .modeSwitch .modeActive { color: #8e3b12; background: var(--soft); } .iconBtn { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); cursor: pointer; } .iconBtn:hover { color: var(--accent); border-color: #f2c7ad; } .iconBtn:disabled { opacity: 0.42; cursor: default; } .editor { min-height: 0; flex: 1; overflow: hidden; } .editor :global(.monaco-editor) { height: 100%; } .markdownWrap { max-width: 920px; height: 100%; margin: 0 auto; padding: 36px 42px 80px; overflow: auto; line-height: 1.75; } .markdownWrap > :first-child { margin-top: 0; } .markdownWrap h1, .markdownWrap h2, .markdownWrap h3 { line-height: 1.3; } .markdownWrap h1 { font-size: 28px; } .markdownWrap h2 { margin-top: 1.6em; padding-bottom: 0.35em; border-bottom: 1px solid var(--line); font-size: 21px; } .markdownWrap a { color: var(--accent); } .markdownWrap code { padding: 2px 5px; border-radius: 5px; background: var(--code-bg); font: 12px var(--mono); } .markdownWrap pre { padding: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); } .markdownWrap pre code { padding: 0; background: transparent; } .frontmatter { margin: 0 0 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--subtle); } .frontmatterRow { display: grid; grid-template-columns: minmax(88px, max-content) minmax(0, 1fr); gap: 16px; } .frontmatterRow + .frontmatterRow { margin-top: 8px; } .frontmatterRow dt { color: var(--muted); font: 600 12px var(--mono); } .frontmatterRow dd { min-width: 0; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; } .textPreview { height: 100%; margin: 0; padding: 28px 32px; overflow: auto; font: 13px/1.7 var(--mono); white-space: pre-wrap; } .csvScroll { height: 100%; overflow: auto; } .csvTable { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 12px; } .csvTable th, .csvTable td { max-width: 280px; padding: 6px 10px; overflow: hidden; border: 1px solid var(--line); text-align: left; text-overflow: ellipsis; white-space: nowrap; } .csvTable th { position: sticky; top: 0; background: var(--panel); }