:root{--bg: #f7f8f7;--surface: #ffffff;--ink: #1b211e;--muted: #5a655e;--line: #8b958f;--line-soft: #e2e7e3;--emerald: #0f7a52;--emerald-dark: #0b573a;font-family:ui-sans-serif,system-ui,Inter,Segoe UI,Roboto,sans-serif;color-scheme:light}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--ink);display:flex;flex-direction:column}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.skip-link{position:absolute;left:8px;top:-56px;z-index:10;background:var(--emerald);color:#fff;padding:8px 14px;border-radius:8px;font-weight:700;text-decoration:none;transition:top .15s}.skip-link:focus{top:8px}:focus-visible{outline:2px solid #fff;outline-offset:2px;box-shadow:0 0 0 4px var(--emerald-dark)}.btn-ghost:focus-visible,textarea:focus-visible,.preview:focus-visible{outline:2px solid var(--emerald-dark);box-shadow:0 0 0 4px #fff}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.25rem;border-bottom:1px solid var(--line);background:var(--surface)}.brand h1{margin:0;font-size:1.35rem;font-weight:800;letter-spacing:-.01em}.brand h1:before{content:"✎ ";color:var(--emerald)}.toolbar{display:flex;gap:.5rem}button{font:inherit;font-weight:600;cursor:pointer;background:var(--emerald);color:#fff;border:1px solid var(--emerald);border-radius:8px;padding:.5rem .9rem}button:hover{background:var(--emerald-dark);border-color:var(--emerald-dark)}.btn-ghost{background:var(--surface);color:var(--emerald-dark);border-color:var(--line)}.btn-ghost:hover{background:#eef4f0}.panes{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);min-height:0}.pane{background:var(--bg);display:flex;flex-direction:column;min-height:0;padding:1rem 1.25rem}.pane-title{margin:0 0 .6rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:700}.editor-pane textarea{flex:1;resize:none;width:100%;min-height:0;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.95rem;line-height:1.6;border:1px solid var(--line);border-radius:10px;padding:1rem;background:var(--surface);color:var(--ink);-moz-tab-size:2;tab-size:2}.counts{margin:.6rem 0 0;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}.preview{flex:1;overflow:auto;min-height:0;border:1px solid var(--line);border-radius:10px;padding:1.25rem 1.5rem;background:var(--surface);font-family:Georgia,Iowan Old Style,Times New Roman,serif;line-height:1.65}.preview :first-child{margin-top:0}.preview h1,.preview h2,.preview h3{font-family:ui-sans-serif,system-ui,sans-serif;line-height:1.25}.preview h1{font-size:1.9rem}.preview h2{font-size:1.45rem}.preview h3{font-size:1.2rem}.preview a{color:var(--emerald-dark)}.preview code{font-family:ui-monospace,monospace;background:#eef2ef;padding:.1rem .3rem;border-radius:4px;font-size:.9em}.preview pre{background:#11201a;color:#e6f0ea;padding:1rem;border-radius:8px;overflow:auto}.preview pre code{background:none;padding:0;color:inherit}.preview blockquote{border-left:4px solid var(--emerald);margin:1rem 0;padding:.25rem 0 .25rem 1rem;color:var(--muted)}.preview img{max-width:100%;height:auto}.preview hr{border:0;border-top:1px solid var(--line);margin:1.5rem 0}@media (max-width: 760px){.panes{grid-template-columns:1fr;grid-auto-rows:minmax(40vh,auto)}}@media (prefers-reduced-motion: reduce){.skip-link{transition:none}}
