html,body{height:100%}body.site-desktop{margin:0;display:flex}[hidden]{display:none!important}.i{flex:none;width:1rem;height:1rem}.write-window{--window-width:110rem;height:calc(100dvh - 2*clamp(.4rem,1.4vw,1rem));min-height:0;margin:clamp(.4rem,1.4vw,1rem) auto}.app{background:var(--chrome);flex-direction:column;flex:1;min-height:0;display:flex}.topbar{background:var(--titlebar);min-height:3rem;color:var(--titlebar-ink);flex:none;justify-content:space-between;align-items:center;gap:.5rem;padding:0 .4rem;display:flex}.tb-left,.tb-right{align-items:center;gap:.3rem;min-width:0;display:flex}.crumb{font-family:var(--font-mono);white-space:nowrap;text-overflow:ellipsis;font-size:.95rem;font-weight:700;overflow:hidden}.slash{opacity:.6;margin:0 .35rem}.status{font-family:var(--font-mono);opacity:.85;white-space:nowrap;margin-left:.5rem;font-size:.75rem}.status:empty{display:none}.btn{white-space:nowrap;align-items:center;gap:.35rem;min-height:2.125rem;padding:.25rem .6rem;display:inline-flex}.btn.primary{background:var(--primary);color:var(--primary-foreground)}.btn.primary:hover{background:var(--primary);color:var(--primary-foreground);filter:brightness(1.12)}.btn.primary:disabled{opacity:.6;cursor:wait}.retro-control[aria-pressed=true]{background:var(--accent);color:var(--accent-foreground);box-shadow:inset 1px 1px var(--edge-shadow), inset -1px -1px var(--edge-light)}.btn.danger:hover{color:var(--destructive)}.icon-btn{place-items:center;width:2.125rem;min-height:2.125rem;padding:0;display:grid}.workspace{flex:1;grid-template-columns:1fr 1fr;gap:3px;min-height:0;padding:3px;display:grid}.workspace.solo{grid-template-columns:1fr}.workspace.solo .preview{display:none}.editor,.preview{border:1px solid var(--frame-stroke);min-width:0;min-height:0;box-shadow:inset 1px 1px var(--edge-shadow), inset -1px -1px var(--edge-light)}.editor{background:var(--card);flex-direction:column;display:flex}.workspace.solo .editor{width:100%;max-width:58rem;margin:0 auto}.head{padding:1.75rem 2.25rem 0}#title{resize:none;width:100%;color:var(--foreground);letter-spacing:-.02em;background:0 0;border:0;outline:0;padding:0;font-family:inherit;font-size:2.1rem;font-weight:700;line-height:1.3;overflow:hidden}#title::placeholder,.tags input::placeholder{color:var(--muted-foreground);opacity:.55}.tags{flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.9rem;display:flex}.tag{border:1px solid var(--border);background:var(--accent);height:1.6rem;color:var(--accent-foreground);align-items:center;padding:0 .55rem;font-size:.82rem;font-weight:600;display:inline-flex}.tag:before{content:"#";opacity:.6;margin-right:.1rem}.tag:hover{text-decoration:line-through}.tags input{min-width:8rem;color:var(--foreground);background:0 0;border:0;outline:0;flex:1;font-size:.95rem;line-height:1.6rem}.tag-tip{color:var(--muted-foreground);margin-top:.4rem;font-size:.76rem;display:none}.tags:focus-within+.tag-tip{display:block}.toolbar{background:var(--chrome);border:1px solid var(--frame-stroke);width:fit-content;max-width:100%;box-shadow:inset 1px 1px var(--edge-light), inset -1px -1px var(--edge-shadow);flex-wrap:wrap;gap:.25rem;margin:1.1rem 0 .7rem;padding:.2rem;display:flex}.group{gap:2px;display:flex}.group+.group{border-left:1px solid var(--edge-shadow);padding-left:.3rem}.toolbar button{width:2rem;height:2rem;color:var(--chrome-ink);font-family:var(--font-mono);border:1px solid #0000;place-items:center;font-size:.75rem;font-weight:700;display:grid}.toolbar button:hover{background:var(--accent);border-color:var(--edge-light) var(--edge-shadow) var(--edge-shadow) var(--edge-light)}.toolbar button:active{border-color:var(--edge-shadow) var(--edge-light) var(--edge-light) var(--edge-shadow)}.body{flex:1;min-height:0;padding:0 2.25rem;display:flex}.cm-editor{min-height:0;color:var(--foreground);flex:1;font-size:1.05rem}.cm-editor.cm-focused{outline:none}.cm-scroller{font-family:var(--font-sans);line-height:1.75}.cm-content{caret-color:var(--primary);padding:0 0 40vh}.cm-line{padding:0}.cm-editor .cm-cursor{border-left:2px solid var(--primary)}.cm-placeholder{color:var(--muted-foreground);opacity:.55}.cm-editor .cm-selectionBackground,.cm-editor.cm-focused .cm-selectionBackground{background:color-mix(in srgb, var(--primary) 20%, transparent)!important}.preview{background:var(--muted);padding:1.5rem;overflow-y:auto}.paper{background:var(--card);overflow-wrap:anywhere;border:1px solid var(--frame-stroke);max-width:46rem;min-height:100%;box-shadow:inset 1px 1px var(--edge-light), inset -1px -1px var(--edge-shadow);margin:0 auto;padding:2rem 2.25rem 3rem}.paper-label{font-family:var(--font-mono);color:var(--muted-foreground);margin-bottom:.75rem;font-size:.72rem;font-weight:700}#pv-title{letter-spacing:-.02em;border-bottom:1px solid var(--border);margin:0 0 1.5rem;padding-bottom:1rem;font-size:2rem;font-weight:700;line-height:1.25}.prose img{max-width:100%}.prose pre{border:1px solid var(--border);background:var(--muted);padding:1rem;font-size:.85rem;overflow:auto}.prose pre code.hljs{background:0 0;padding:0}.scrim,.modal{z-index:50;background:color-mix(in srgb, var(--desktop) 55%, transparent);position:fixed;inset:0}.scrim{justify-content:flex-end;display:flex}.modal{justify-content:center;align-items:center;padding:1rem;display:flex}.sheet,.box{background:var(--chrome);color:var(--chrome-ink);border:1px solid var(--frame-stroke);box-shadow:inset 1px 1px var(--edge-light), inset -1px -1px var(--edge-shadow), 0 10px 30px #0a172240;flex-direction:column;padding:3px;display:flex}.sheet{width:27rem;max-width:100%;height:100%;animation:.2s ease-out slide}.box{width:440px;max-width:100%;max-height:85vh;animation:.15s ease-out pop}.win-title{background:var(--titlebar);min-height:2rem;color:var(--titlebar-ink);justify-content:space-between;align-items:center;padding:0 .2rem 0 .6rem;display:flex}.win-title h2{font-size:.9rem;font-weight:700;font-family:var(--font-mono);margin:0}.win-title .icon-btn{width:1.6rem;min-height:1.5rem}.win-body{background:var(--background);min-height:0;color:var(--foreground);border:1px solid var(--edge-shadow);flex-direction:column;flex:1;gap:1rem;padding:1rem 1.1rem 1.1rem;display:flex;overflow-y:auto}.win-body h3{margin:0;font-size:1.05rem;font-weight:700}.win-body p{color:var(--muted-foreground);margin:0;font-size:.92rem;line-height:1.6}#pub-title{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden;margin-top:-.5rem!important}.lbl{color:var(--muted-foreground);margin-bottom:-.6rem;font-size:.78rem;font-weight:700}.desc,.field,.plain{border:1px solid var(--input);background:var(--card);color:var(--foreground);font:inherit;box-shadow:inset 1px 1px var(--edge-shadow)}.desc{resize:none;outline:0;height:7rem;padding:.6rem .75rem;line-height:1.55}.desc:focus,.field:focus-within,.plain:focus{outline:2px solid var(--ring);outline-offset:1px}.count{text-align:right;color:var(--muted-foreground);font-size:.75rem;font-family:var(--font-mono);margin-top:-.75rem}.seg{grid-template-columns:1fr 1fr;gap:.35rem;display:grid}.field{align-items:center;gap:.2rem;padding:.5rem .75rem;display:flex}.field span{color:var(--muted-foreground);white-space:nowrap;font-size:.9rem;font-family:var(--font-mono)}.field input{color:var(--foreground);font:inherit;background:0 0;border:0;outline:0;flex:1;min-width:0}.field input:disabled{color:var(--muted-foreground)}.plain{width:100%;padding:.55rem .75rem}.hint{margin-top:-.65rem!important;font-size:.76rem!important}.actions{justify-content:flex-end;gap:.4rem;margin-top:auto;padding-top:.5rem;display:flex}.err{min-height:1.2em;color:var(--destructive)!important}.box .btn.primary{justify-content:center}.list ul{border:1px solid var(--input);background:var(--card);box-shadow:inset 1px 1px var(--edge-shadow);flex:1;max-height:50vh;margin:0;padding:0;list-style:none;overflow:auto}.list li a{color:var(--foreground);padding:.4rem .6rem;font-size:.9rem;text-decoration:none;display:block}.list li a:hover{background:var(--primary);color:var(--primary-foreground)}.toast{z-index:60;background:var(--chrome);color:var(--chrome-ink);border:1px solid var(--frame-stroke);box-shadow:inset 1px 1px var(--edge-light), inset -1px -1px var(--edge-shadow), 0 6px 18px #0a172240;opacity:0;pointer-events:none;padding:.6rem 1rem;font-size:.88rem;font-weight:600;transition:opacity .2s;position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%)}.toast.show{opacity:1}.dark .toast,.dark .sheet,.dark .box,.dark .toolbar,.dark .paper{box-shadow:none}@keyframes slide{0%{transform:translate(100%)}}@keyframes pop{0%{opacity:0;transform:scale(.97)}}@media (prefers-reduced-motion:reduce){.sheet,.box{animation:none}}@media (width<=900px){.workspace{grid-template-columns:1fr}.preview,#toggle-pv{display:none}.head{padding:1.25rem 1rem 0}.body{padding:0 1rem}#title{font-size:1.7rem}.status,.slash,#crumb-doc{display:none}}@media (width<=600px){.crumb,.btn .txt{display:none}}
