:root{color:#202124;font-synthesis:none;text-rendering:optimizelegibility;background:#f7f7f5;font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{color:#fff;cursor:pointer;background:#252525;border:0;border-radius:8px;min-height:48px;font-weight:700}button:hover:not(:disabled){background:#111}button:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #8ab4f8}button:disabled,input:disabled{cursor:not-allowed;opacity:.58}.landing-shell{place-items:center;min-height:100vh;padding:24px;display:grid}.landing-card{background:#fff;border:1px solid #e5e4e1;border-radius:16px;width:min(100%,470px);padding:40px;box-shadow:0 18px 60px #0f172a14}.eyebrow{color:#787774;letter-spacing:.1em;text-transform:uppercase;margin:0 0 12px;font-size:.78rem;font-weight:750}h1{letter-spacing:-.04em;margin:0;font-size:clamp(1.75rem,5vw,2.25rem);line-height:1.2}.description{color:#5f5e5b;margin:16px 0 28px;line-height:1.65}.access-form{gap:10px;display:grid}.access-form label{font-size:.9rem;font-weight:650}.access-form input{letter-spacing:.06em;border:1px solid #d7d5d0;border-radius:8px;min-height:50px;padding:0 14px}.field-help{color:#787774;margin:-2px 0 4px;font-size:.78rem}.divider{color:#9b9a97;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:22px 0;font-size:.8rem;display:grid}.divider:before,.divider:after{content:"";background:#e7e6e3;height:1px}.secondary-button{color:#252525;background:#fff;border:1px solid #d7d5d0;width:100%}.secondary-button:hover:not(:disabled){background:#f4f4f2}.error-panel{color:#8d2721;background:#fff6f5;border:1px solid #f0c8c4;border-radius:8px;gap:5px;margin-top:14px;padding:13px 14px;font-size:.86rem;line-height:1.45;display:grid}.text-button{color:currentColor;background:0 0;justify-self:start;min-height:32px;padding:0;text-decoration:underline}.text-button:hover:not(:disabled){background:0 0}.security-notice{color:#787774;border-top:1px solid #eeece8;gap:3px;margin-top:24px;padding-top:18px;font-size:.76rem;line-height:1.5;display:grid}.security-notice strong{color:#5f5e5b}.note-shell{height:var(--visual-viewport-height,100dvh);transform:translateY(var(--visual-viewport-offset-top,0));background:var(--color-surface);flex-direction:column;display:flex;overflow:hidden}.note-screen{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.note-topbar{background:var(--color-surface);flex-shrink:0;align-items:center;gap:2px;min-height:44px;padding:4px 10px;display:flex}.topbar-spacer{flex:1;min-width:0}.bar-anchor{display:flex;position:relative}.brand-button{min-height:36px;color:var(--color-text);background:0 0;border-radius:6px;padding:0 8px;font-size:.95rem}.brand-button:hover:not(:disabled){background:var(--color-wash)}.brand-label-short{display:none}.share-panel{padding:4px 6px 6px}.access-code{color:var(--color-text);letter-spacing:.12em;text-align:center;background:0 0;border:0;padding:14px 0 4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.4rem;font-weight:700;display:block}.share-url{color:var(--color-muted);text-align:center;word-break:break-all;margin:0 0 12px;font-size:.75rem}.share-actions{gap:6px;display:flex}.share-copy{border:1px solid var(--color-border);min-height:34px;color:var(--color-text);background:0 0;border-radius:6px;flex:1;padding:0 10px;font-size:.84rem;font-weight:500}.share-copy:hover:not(:disabled){background:var(--color-wash)}.share-copy-primary,.share-copy-primary:hover:not(:disabled){border-color:var(--color-accent);background:var(--color-accent);color:#fff;font-weight:600}.compact-button{color:#37352f;background:#fff;border:1px solid #d7d5d0;min-height:40px;padding:0 12px;font-size:.8rem}.compact-button:hover:not(:disabled){background:#f4f4f2}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.editor-loading{color:#787774;min-height:320px;margin:0;padding:24px}.save-status{color:#5f5e5b;align-items:center;gap:7px;font-size:.8rem;font-weight:650;display:inline-flex}.editor-live-status{white-space:nowrap;align-items:center;gap:10px;margin-right:6px;display:flex}.collaborator-status{color:#787774;font-size:.76rem;font-weight:650}.save-status:before{content:"";background:#c0bfbc;border-radius:50%;width:8px;height:8px}.save-status-saved:before{background:#2f9e68}.save-status-saving:before,.save-status-syncing:before,.save-status-connecting:before{background:#d99a24}.save-status-offline:before,.save-status-retry-paused:before,.save-status-unavailable:before,.save-status-too-large:before,.save-status-local-error:before{background:#c4473d}.editor-body,.editor-host{flex-direction:column;flex:1;min-height:0;display:flex}.editor-host .cm-editor{background:var(--color-surface);flex:1;height:100%;font-family:inherit;font-size:1rem;line-height:1.7}.editor-host .cm-scroller{padding:24px max(20px,50% - 380px) 120px}.editor-host .cm-content{caret-color:#202124}.editor-host .cm-editor{position:relative}.remote-presence-overlay{z-index:20;pointer-events:none;position:absolute;inset:0;overflow:hidden}.editor-host .remote-presence-caret{border-left:2px solid var(--remote-presence-color);background:var(--remote-presence-color);contain:layout style;pointer-events:none;will-change:transform;width:2px;min-height:1em;position:absolute;top:0;left:0}.editor-host .remote-presence-dot{background:var(--remote-presence-color);border-radius:50%;width:.45em;height:.45em;position:absolute;top:-.2em;left:-.25em}.editor-host .remote-presence-label{background:var(--remote-presence-color);color:#fff;text-overflow:ellipsis;white-space:nowrap;opacity:0;border-radius:3px 3px 3px 0;max-width:10rem;padding:2px 4px;font-family:inherit;font-size:.7rem;font-weight:700;line-height:1.2;transition:opacity .12s ease-out;position:absolute;top:-1.45em;left:-2px;overflow:hidden}.editor-host .cm-editor:hover .remote-presence-label,.editor-host .cm-editor.cm-focused .remote-presence-label{opacity:.92}@media (hover:none) and (pointer:coarse){.editor-host .remote-presence-label{opacity:.92}}.editor-host .cm-focused{outline:none}.editor-error{color:#8d2721;background:#fff6f5;border-top:1px solid #f0c8c4;margin:0;padding:12px 20px;font-size:.84rem}.editor-error p{margin:0 0 6px}.notifications-panel{padding:0 4px 4px}.notice-list{gap:2px;margin:0;padding:0;list-style:none;display:grid}.notice-item{border-radius:6px;gap:2px;padding:8px 10px;font-size:.84rem;display:grid}.notice-item strong{font-weight:600}.notice-item span{color:var(--color-muted);font-size:.75rem}.badge-dot{border:1.5px solid var(--color-surface);background:#c8912b;border-radius:50%;width:7px;height:7px;position:absolute;top:5px;right:5px}.session-summary{gap:4px;margin:4px 0 0;padding:0 10px 4px;display:grid}.session-summary div{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.session-summary dt{color:var(--color-muted);font-size:.78rem}.session-summary dd{color:var(--color-muted);font-variant-numeric:tabular-nums;margin:0;font-size:.78rem}.history-panel{padding:0 4px 4px}.history-toolbar{justify-content:flex-end;padding:0 6px 4px;display:flex}.history-toolbar .compact-button{border-color:var(--color-border);min-height:30px;color:var(--color-muted);background:0 0;border-radius:6px}.version-empty{color:var(--color-muted);margin:8px 0 6px;padding:0 6px;font-size:.84rem}.version-list{gap:2px;max-height:320px;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.version-row{width:100%;min-height:0;color:var(--color-text);text-align:left;background:0 0;border-radius:6px;gap:2px;padding:8px 10px;font-size:.84rem;font-weight:500;display:grid}.version-row:hover:not(:disabled){background:var(--color-wash)}.version-caption{color:var(--color-muted);font-size:.75rem;font-weight:400}.back-button{min-height:30px;color:var(--color-muted);background:0 0;border-radius:6px;margin:0 0 4px;padding:0 8px;font-size:.78rem;font-weight:500}.back-button:hover:not(:disabled){background:var(--color-wash)}.version-preview{padding:0 6px 4px}.preview-caption{margin:0 0 6px;padding:0 4px}.version-content{background:var(--color-wash);max-height:240px;color:var(--color-text);white-space:pre-wrap;word-break:break-word;border-radius:6px;margin:0 0 10px;padding:10px 12px;font-family:inherit;font-size:.84rem;line-height:1.6;overflow:auto}.preview-actions{justify-content:flex-end;display:flex}.restore-button{background:var(--color-accent);color:#fff;border-radius:6px;min-height:32px;padding:0 12px;font-size:.82rem;font-weight:600}.restore-button:hover:not(:disabled){background:var(--color-accent);filter:brightness(1.06)}.recoverable-card .recoverable-actions{align-items:center;gap:16px;margin-top:20px;display:flex}@media (width<=640px){.landing-shell{align-items:stretch;padding:0}.landing-card{width:100%;min-height:100vh;padding:max(32px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));box-shadow:none;border:0;border-radius:0}.note-topbar{padding-top:max(4px, env(safe-area-inset-top))}.compact-button{min-height:44px}.editor-host .cm-scroller{padding:16px 14px 96px}.note-shell[data-keyboard-open=true] .editor-host .cm-scroller{padding-bottom:16px}}:root{--color-text:#37352f;--color-muted:#73716b;--color-border:#37352f24;--color-surface:#fff;--color-wash:#37352f0f;--color-wash-strong:#37352f1c;--color-accent:#2e7cd6;--color-danger:#c4473d;--radius:8px;--shadow-overlay:0 12px 32px #0f0f0f24, 0 2px 8px #0f0f0f14}.bar-button{min-width:36px;min-height:36px;color:var(--color-text);background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:0 8px;font-size:14px;font-weight:500;display:inline-flex}.bar-button:hover:not(:disabled){background:var(--color-wash)}.bar-button[aria-expanded=true]{background:var(--color-wash-strong)}.popover{background:var(--color-surface);border:1px solid var(--color-border);width:min(340px,100vw - 24px);box-shadow:var(--shadow-overlay);z-index:40;color:var(--color-text);text-align:left;border-radius:10px;padding:6px;font-size:14px;position:absolute;top:calc(100% + 6px);right:0}.popover:focus-visible{outline-offset:2px;outline:3px solid #8ab4f8}.popover-title{color:var(--color-muted);margin:0;padding:6px 10px 4px;font-size:12px;font-weight:600}.menu-item{width:100%;min-height:0;color:var(--color-text);text-align:left;background:0 0;border-radius:6px;padding:8px 10px;font-size:14px;font-weight:500;display:block}.menu-item:hover:not(:disabled){background:var(--color-wash)}.menu-item-caption{color:var(--color-muted);margin-top:1px;font-size:12px;font-weight:400;display:block}.menu-item-danger{color:var(--color-danger)}.menu-divider{border:0;border-top:1px solid var(--color-border);margin:6px 4px}.confirm-overlay{z-index:60;background:#0f0f0f59;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.confirm-dialog{background:var(--color-surface);width:min(360px,100%);box-shadow:var(--shadow-overlay);color:var(--color-text);border-radius:10px;padding:20px}.confirm-dialog h2{margin:0 0 6px;font-size:15px}.confirm-dialog p{color:var(--color-muted);margin:0 0 16px;font-size:13.5px;line-height:1.55}.confirm-actions{justify-content:flex-end;gap:8px;display:flex}.confirm-actions button{border-radius:6px;min-height:36px;padding:0 14px;font-size:13.5px;font-weight:600}.confirm-cancel{border:1px solid var(--color-border);color:var(--color-text);background:0 0}.confirm-cancel:hover:not(:disabled){background:var(--color-wash)}.confirm-danger,.confirm-danger:hover:not(:disabled){background:var(--color-danger)}.toast-region{z-index:70;pointer-events:none;position:fixed;bottom:28px;left:50%;transform:translate(-50%)}.toast{border-radius:var(--radius);background:var(--color-text);color:var(--color-surface);box-shadow:var(--shadow-overlay);padding:8px 16px;font-size:13px}@media (width<=640px){.bar-button,.brand-button{min-width:44px;min-height:44px}.popover{top:calc(52px + env(safe-area-inset-top));width:auto;max-height:calc(var(--visual-viewport-height,100dvh) - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overscroll-behavior:contain;position:fixed;left:12px;right:12px;overflow-y:auto}.popover .share-copy,.popover .compact-button,.popover .menu-item,.popover .version-row,.popover .back-button,.popover .restore-button,.confirm-actions button{min-height:44px}}@media (width<=560px){.note-topbar{gap:0;padding-left:4px;padding-right:4px}.brand-button{padding:0 6px}.brand-label-full,.bar-button-label{display:none}.brand-label-short{display:inline}.save-status-label{font-size:0}.save-status-label:after{content:attr(data-compact-label);font-size:.75rem}.editor-live-status{gap:0;min-width:0;margin-right:0}.save-status{gap:5px;padding:0 4px;font-size:.75rem}.bar-button{padding-left:0;padding-right:0}}@media (width<=360px){.collaborator-label{font-size:0}.collaborator-label:after{content:attr(data-compact-label);font-size:.75rem}}
