:root{color:#272620;font-synthesis:none;--paper:#fffefa;--line:#ddd9ce;--muted:#66635a;--accent:#325543;--accent-hover:#244333;--tint:#e8eee7;--error:#9c3023;background:#f7f6f1;font-family:system-ui,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input{font:inherit}h1,h2,p{margin:0}button{color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1[tabindex]:focus{outline:none}.shell{width:min(100% - 3rem,62rem);margin-inline:auto}.site-header{background:var(--paper);border-bottom:1px solid var(--line)}.header-inner,.brand{align-items:center;display:flex}.header-inner{justify-content:space-between;gap:.75rem;min-height:4.5rem}.brand{letter-spacing:-.015em;gap:.7rem;font-size:.9375rem;font-weight:700}.brand-mark,.empty-icon,.file-icon{letter-spacing:-.06em;border-radius:.65rem;flex:none;place-items:center;font-family:ui-monospace,monospace;font-weight:600;display:grid}.brand-mark{color:#fff;background:var(--accent);width:2.2rem;height:2.2rem;font-size:.8rem}.button{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:.6rem;justify-content:center;align-items:center;gap:.5rem;min-height:2.75rem;padding:.55rem 1rem;font-size:.875rem;font-weight:650;display:inline-flex}.primary{background:var(--accent);color:#fff}.primary:hover:not(:disabled){background:var(--accent-hover)}.quiet{background:0 0}.quiet:hover:not(:disabled){background:var(--tint)}.button:disabled{opacity:.6;cursor:wait}.plus{font-size:1.2rem;font-weight:400;line-height:1}.auth-shell{justify-items:center;padding-block:clamp(3rem,11vh,7.5rem) 3rem;display:grid}.auth-card{background:var(--paper);border:1px solid var(--line);border-radius:1rem;width:min(100%,26rem);padding:clamp(1.4rem,5vw,2.5rem);box-shadow:0 12px 36px #312b190d}.auth-card h1{letter-spacing:-.05em;font-size:2rem;font-weight:700;line-height:1.1}.muted{color:var(--muted);line-height:1.55}.auth-card>.muted{margin-top:.65rem}.auth-card form{margin-top:1.65rem;display:grid}.auth-card label{font-size:.875rem;font-weight:650}.auth-card input{min-width:0;min-height:2.75rem;color:inherit;background:#fff;border:1px solid #ada99e;border-radius:.5rem;margin-block:.4rem 1.05rem;padding:.6rem .7rem}.auth-card button{margin-top:.25rem}.library{padding-block:clamp(2.5rem,8vw,5.25rem) 4rem}.library-header{justify-content:space-between;align-items:end;gap:1.15rem;margin-bottom:2rem;display:flex}.library-header h1{letter-spacing:-.063em;margin-bottom:.45rem;font-size:clamp(2.3rem,7vw,3.55rem);font-weight:720;line-height:1.02}.message{color:var(--muted);font-size:.9rem;line-height:1.5}.message:not(:empty){margin-bottom:.85rem}.message.error{color:var(--error)}#session-message:not(:empty){margin-top:.8rem}#retry-library{border-color:var(--line)}.empty-state{text-align:center;background:var(--paper);border:1px dashed #c5c0b2;border-radius:.9rem;justify-items:center;padding:3.1rem 1.25rem;display:grid}.empty-icon,.file-icon{color:var(--accent);background:var(--tint)}.empty-icon{width:3.1rem;height:3.1rem;margin-bottom:1rem}.empty-state h2{margin-bottom:.35rem;font-size:1.1rem}.empty-state .muted{font-size:.9rem}.file-list{border:1px solid var(--line);background:var(--paper);border-radius:.9rem;margin:0;padding:0;list-style:none}.file-list li+li{border-top:1px solid var(--line)}.file-list li:first-child .file-button{border-radius:.85rem .85rem 0 0}.file-list li:last-child .file-button{border-radius:0 0 .85rem .85rem}.file-list li:only-child .file-button{border-radius:.85rem}.file-button{text-align:start;cursor:pointer;background:0 0;border:0;align-items:center;gap:.85rem;width:100%;padding:.9rem 1rem;display:flex}.file-button:hover{background:#f0f3ed}.file-button:focus-visible{outline-offset:-3px}.file-button:after{content:"";border:solid var(--muted);border-width:1.5px 1.5px 0 0;flex:none;width:.5rem;height:.5rem;margin-inline-start:auto;transform:rotate(45deg)}.file-icon{width:2.45rem;height:2.45rem;font-size:.8rem}.file-info{gap:.25rem;min-width:0;display:grid}.file-name{overflow-wrap:anywhere;font-weight:650}.file-info time{color:var(--muted);font-size:.8rem}.viewer{flex-direction:column;min-height:calc(100dvh - 4.5rem - 1px);display:flex}.viewer-bar{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:.35rem 1rem;padding:.55rem clamp(.75rem,3vw,2rem);display:flex}.viewer-bar h1{overflow-wrap:anywhere;flex:15rem;min-width:0;font-size:.95rem}.viewer .message:not(:empty){margin:1rem clamp(.75rem,3vw,2rem)}#preview{flex:1;display:flex}#preview iframe{background:#fff;border:0;flex:1;min-width:0;min-height:24rem;display:block}@media (width<=38rem){.shell{width:calc(100% - 2rem)}.header-inner{min-height:4rem}.library-header{flex-direction:column;align-items:flex-start}.viewer{min-height:calc(100dvh - 4rem - 1px)}.viewer-bar h1{flex-basis:100%;padding-inline:.55rem}}
