:root{color-scheme:light;--ink: #111c2f;--muted: #6f7f98;--line: #dde5f0;--line-strong: #c4d4ec;--panel: #ffffff;--surface: #f7f9fc;--surface-strong: #eef4ff;--brand: #4f88ff;--brand-strong: #2f72f6;--shadow: 0 22px 60px rgba(36, 51, 84, .12);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;line-height:1.5;background:#f8fbff;color:var(--ink)}*{box-sizing:border-box}html{min-width:320px;background:radial-gradient(circle at 50% 0%,rgba(79,136,255,.08),transparent 30rem),linear-gradient(180deg,#fbfdff,#f4f7fb)}body{margin:0;min-height:100vh}button,textarea,input{font:inherit}button{border:0}a{color:inherit}.shell{width:min(100% - 32px,1320px);margin:0 auto;padding:42px 0 64px}.hero{text-align:center;margin-bottom:34px}.hero h1{margin:0;font-size:clamp(2rem,4vw,3.15rem);line-height:1.08;letter-spacing:0;color:#101a2d}.hero p{margin:14px auto 0;max-width:620px;color:var(--muted);font-size:1.08rem}.site-footer{display:flex;justify-content:flex-start;gap:16px;margin-top:32px;color:var(--muted);font-size:.92rem}.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}.tool{border:1px solid var(--line);border-radius:8px;background:#ffffffdb;box-shadow:var(--shadow);padding:28px}.toolbar{display:flex;align-items:center;justify-content:flex-start;gap:28px;padding:4px 10px 28px;color:#1e2b43}.control-group{display:flex;align-items:center;gap:18px;min-width:0}.theme-group{flex:1}.control-label{flex:0 0 auto;font-weight:700}.swatches{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.swatch{position:relative;width:22px;height:22px;border-radius:999px;background:var(--swatch);cursor:pointer}.swatch.is-active:before{content:"";position:absolute;inset:-9px;border:1px solid #b7cef5;border-radius:inherit;box-shadow:0 0 0 5px #4f88ff26}.divider{width:1px;height:32px;background:var(--line)}.icon-actions button,.export-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#223047;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}.icon-actions button:hover,.export-actions button:hover{border-color:#b8cef3;background:var(--surface-strong);color:var(--brand-strong)}.workspace{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:22px}.pane{min-width:0;border:1px solid var(--line);border-radius:8px;background:#ffffffeb;padding:22px}.pane-header{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px;margin-bottom:14px}.pane-header h2{margin:0;font-size:1.26rem;line-height:1.2}.icon-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.icon-actions button{padding:0 13px}.editor-shell{position:relative;display:grid;grid-template-columns:50px 1fr;min-height:560px;max-height:640px;border:1px solid var(--line);border-radius:8px;background:#fbfdff;overflow:hidden}.line-numbers{margin:0;padding:20px 0 48px;list-style:none;text-align:right;color:#8c9ab0;background:#f9fbfe;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.98rem;line-height:1.95rem;overflow:hidden}.line-numbers li{padding-right:16px;height:1.95rem}.editor-shell textarea{width:100%;min-width:0;min-height:inherit;max-height:inherit;resize:none;border:0;outline:0;padding:20px 22px 48px;color:#223047;background:transparent;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.98rem;line-height:1.95rem;white-space:pre;overflow:auto}.line-count{position:absolute;right:20px;bottom:18px;color:#71809a;background:#fbfdffd6}.status{color:var(--muted);font-size:.92rem}.preview-stage{display:grid;place-items:center;min-height:560px;padding:24px;border:1px solid var(--line-strong);border-radius:8px;overflow:auto;background:#fff}.poster-frame{width:min(100%,560px);background:#fff;color:#111827;box-shadow:0 18px 38px #2a3c5e24;overflow:hidden}.poster-frame.ratio-wide{aspect-ratio:16 / 9}.poster-frame.ratio-classic{aspect-ratio:4 / 3}.poster-frame.ratio-square{aspect-ratio:1 / 1}.poster-frame.ratio-long{aspect-ratio:auto;height:auto;min-height:420px}.poster-frame>div{width:100%;height:100%;min-height:100%;overflow:auto}.markdown-to-image-root,.markdown-to-image-root>div{width:100%;height:100%}.poster-frame.ratio-long>div,.poster-frame.ratio-long .markdown-to-image-root,.poster-frame.ratio-long .markdown-to-image-root>div{height:auto;min-height:inherit;overflow:visible}.md2img-poster-surface{display:flex;flex-direction:column;position:relative;padding:clamp(10px,3.4%,22px);background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 90%,#ffffff 10%),color-mix(in srgb,var(--accent) 48%,#111827 52%)),var(--accent)}.poster-content{flex:1;min-height:0;overflow:auto;padding:clamp(14px,4%,26px);border:1px solid rgba(255,255,255,.58);border-radius:8px;background:#fffffff5;box-shadow:0 18px 40px #1118272e}.ratio-long .poster-content{flex:none;min-height:360px;overflow:visible}.poster-content article{color:#152033;font-size:clamp(.62rem,1.36vw,.92rem);line-height:1.58}.poster-content h1,.poster-content h2,.poster-content h3{margin:.65em 0 .38em;line-height:1.2;color:#101827}.poster-content h1{font-size:1.55em;font-weight:850}.poster-content h2{font-size:1.2em;font-weight:800}.poster-content h3{font-size:1.1em;font-weight:800}.poster-content p,.poster-content ul,.poster-content ol,.poster-content blockquote,.poster-content pre,.poster-content table{margin:.65em 0}.poster-content ul,.poster-content ol{padding-left:1.35em}.poster-content ul{list-style:disc}.poster-content ol{list-style:decimal}.poster-content blockquote{padding-left:1em;color:#64748b;border-left-color:var(--accent);border-left-width:5px;border-left-style:solid}.poster-content pre{overflow:auto;padding:1em;border-radius:8px;background:#152033;color:#e9f0ff}.poster-content code{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.poster-content :not(pre)>code{padding:.14em .35em;border-radius:4px;background:#eef4ff;color:#245edb}.poster-content table{width:100%;border-collapse:collapse}.poster-content th,.poster-content td{border:1px solid #d9e3f2;padding:.42em .55em;text-align:left}.export-actions{display:grid;grid-template-columns:1.05fr .86fr 1fr;gap:18px;margin-top:18px}.export-actions button{min-height:64px;padding:0 18px;font-weight:800}.export-actions .primary{border-color:transparent;color:#fff;background:linear-gradient(135deg,#6aa1ff,#3f78f4);box-shadow:0 12px 24px #3f78f447}.export-actions .primary:hover{color:#fff;background:linear-gradient(135deg,#5a95ff,#326df0)}.export-actions button:disabled{cursor:progress;opacity:.72}.spin{animation:spin .88s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:860px){.shell{width:min(100% - 20px,720px);padding-top:28px}.site-footer{flex-direction:column}.tool{padding:16px}.toolbar{align-items:stretch;flex-direction:column;gap:18px;padding:4px 2px 18px}.control-group,.theme-group{flex-direction:column;align-items:flex-start;gap:12px}.smart-toggle{justify-content:flex-start;width:100%}.divider{display:none}.swatches{gap:22px}.workspace{grid-template-columns:1fr}.pane{padding:14px}.pane-header{align-items:flex-start;flex-direction:column}.icon-actions{justify-content:flex-start}.editor-shell{min-height:420px;max-height:520px;grid-template-columns:42px 1fr}.editor-shell textarea,.line-numbers{font-size:.9rem;line-height:1.75rem}.line-numbers li{height:1.75rem;padding-right:10px}.editor-shell textarea{padding-left:14px}.preview-stage{min-height:360px;padding:14px}.export-actions{grid-template-columns:1fr;gap:10px}}
