:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--font-ui:system-ui, -apple-system, "Segoe UI", sans-serif;--font-screenplay:"Courier Prime", "Courier New", Courier, monospace;--line-height-screenplay:1.5;--font-size-base:16px;--space-1:4px;--space-2:8px;--space-3:16px;--space-4:24px;--space-5:40px;--radius-small:4px;--radius-medium:8px}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root,:root[data-theme=light]{--color-surface:#f6f4ef;--color-surface-raised:#fff;--color-text:#2b2a27;--color-text-muted:#6b6a66;--color-accent:#4a6b5d;--color-border:#d8d5cd;--color-selection:#4a6b5d38}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--color-surface:#1e1f22;--color-surface-raised:#26282c;--color-text:#e8e6e1;--color-text-muted:#a3a19b;--color-accent:#7fae97;--color-border:#3a3d42;--color-selection:#7fae974d}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-surface:#1e1f22;--color-surface-raised:#26282c;--color-text:#e8e6e1;--color-text-muted:#a3a19b;--color-accent:#7fae97;--color-border:#3a3d42;--color-selection:#7fae974d}:root,:root[data-theme=light]{--zen-highlight-yellow:#fff1a1;--zen-colour-yellow:#946200;--zen-highlight-blue:#cfe3ff;--zen-colour-blue:#1d5fbf;--zen-highlight-green:#d3f0cf;--zen-colour-green:#2b7a34;--zen-highlight-pink:#ffd4e3;--zen-colour-pink:#c0245e;--zen-highlight-orange:#ffdcb8;--zen-colour-orange:#b85400;--zen-highlight-purple:#e4d7ff;--zen-colour-purple:#6b3fb8}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--zen-highlight-yellow:#f0c8284d;--zen-colour-yellow:#f0c94a;--zen-highlight-blue:#5a96ff4d;--zen-colour-blue:#86b6ff;--zen-highlight-green:#5abe644d;--zen-colour-green:#7fd08a;--zen-highlight-pink:#ff6ea04d;--zen-colour-pink:#ff8db7;--zen-highlight-orange:#ff963c4d;--zen-colour-orange:#ffad6b;--zen-highlight-purple:#aa82ff52;--zen-colour-purple:#bea0ff}}:root[data-theme=dark]{--zen-highlight-yellow:#f0c8284d;--zen-colour-yellow:#f0c94a;--zen-highlight-blue:#5a96ff4d;--zen-colour-blue:#86b6ff;--zen-highlight-green:#5abe644d;--zen-colour-green:#7fd08a;--zen-highlight-pink:#ff6ea04d;--zen-colour-pink:#ff8db7;--zen-highlight-orange:#ff963c4d;--zen-colour-orange:#ffad6b;--zen-highlight-purple:#aa82ff52;--zen-colour-purple:#bea0ff}.screenplay-editor{width:100%;min-width:0;height:100%;overflow:hidden}.screenplay-editor .cm-editor{background:0 0;height:100%}.screenplay-editor .cm-scroller{width:100%;height:100%;font-family:var(--font-screenplay);font-size:12pt;line-height:var(--line-height-screenplay);overflow:auto}.screenplay-editor .cm-content{box-sizing:border-box;width:100%;min-height:100%;padding:max(var(--space-5), 12vh) max(var(--space-4), calc((100% - 6in) / 2)) 40vh;caret-color:var(--color-text)}.screenplay-editor .cm-cursor{border-left:2px solid var(--color-text)}.screenplay-editor .cm-line{padding:0}.screenplay-editor .cm-editor .cm-selectionLayer .cm-selectionBackground,.screenplay-editor .cm-editor.cm-focused>.cm-scroller>.cm-selectionLayer .cm-selectionBackground{background:var(--color-selection)}.cm-screenplay-sceneHeading{text-transform:uppercase;font-weight:700}.screenplay-editor .cm-line.cm-screenplay-character,.screenplay-editor .cm-line.cm-screenplay-dialogue,.screenplay-editor .cm-line.cm-screenplay-parenthetical,.screenplay-editor .cm-line.cm-screenplay-transition{box-sizing:border-box}.screenplay-editor .cm-line.cm-screenplay-character{max-width:5.7in;padding-left:2.2in}.screenplay-editor .cm-line.cm-screenplay-dialogue{max-width:4.5in;padding-left:1in}.screenplay-editor .cm-line.cm-screenplay-parenthetical{max-width:4in;padding-left:1.6in}.cm-screenplay-centered{text-align:center}.screenplay-editor .cm-line.cm-screenplay-transition{text-align:right;padding-left:4.5in}.cm-screenplay-section{color:var(--color-text-muted);font-weight:700}.cm-screenplay-synopsis,.cm-screenplay-note,.cm-screenplay-boneyard{color:var(--color-text-muted);font-style:italic}.cm-screenplay-lyrics{font-style:italic}.cm-screenplay-pageBreak{color:var(--color-text-muted);text-align:center;letter-spacing:.3em}.cm-em-bold{font-weight:700}.cm-em-italic{font-style:italic}.cm-em-boldItalic{font-style:italic;font-weight:700}.cm-em-underline{text-decoration:underline}.cm-em-marker{color:var(--color-text-muted)}.screenplay-editor .cm-placeholder{color:var(--color-text-muted);opacity:.55;pointer-events:none}.cm-screenplay-announcer{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.screenplay-editor .cm-tooltip.cm-tooltip-autocomplete,.screenplay-editor .cm-panel.cm-search{background:var(--color-surface-raised);color:var(--color-text);border:1px solid var(--color-border);font-family:var(--font-ui)}.screenplay-editor .cm-tooltip-autocomplete ul li[aria-selected]{background:var(--color-accent);color:var(--color-surface-raised)}.screenplay-editor .cm-panels{background:var(--color-surface-raised);color:var(--color-text);border-bottom:1px solid var(--color-border)}.screenplay-editor .cm-panel.cm-search input,.screenplay-editor .cm-panel.cm-search button{font-family:var(--font-ui);color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border)}.screenplay-editor .cm-searchMatch{background:color-mix(in srgb, var(--color-accent) 30%, transparent)}.screenplay-editor .cm-searchMatch-selected{background:color-mix(in srgb, var(--color-accent) 55%, transparent)}.cm-page-break{pointer-events:none;height:0;position:relative}.cm-page-break:before{content:"";border-top:1px dashed var(--color-border);position:absolute;top:-.5lh;left:0;right:0}.cm-page-break-number{font-family:var(--font-ui);color:var(--color-text-muted);white-space:nowrap;font-size:.75rem;position:absolute;top:-.5lh;left:calc(100% + 2ch);transform:translateY(-50%)}.page-indicator{font-family:var(--font-ui);font-variant-numeric:tabular-nums;color:var(--color-text-muted);opacity:.55;pointer-events:none;font-size:.75rem;transition:opacity 1.2s ease-out,color 1.2s ease-out}.page-indicator[data-turned=true]{opacity:1;color:var(--color-accent);transition:none}@media (prefers-reduced-motion:reduce){.page-indicator,.notes-corner,.hover-controls{transition:none}}:root{--zen-bg:#f7f5f0;--zen-surface:#fff;--zen-text:#1f2430;--zen-muted:#6b7080;--zen-line:#e3dfd6;--zen-accent:#2c4a7a;--zen-accent-text:#fff;--zen-danger:#b3412e;--zen-ok:#2f7d4f;--zen-notice:#f1ead8;--zen-radius:10px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.45}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--zen-bg:#161a24;--zen-surface:#1e2331;--zen-text:#e6e3dc;--zen-muted:#9aa0b0;--zen-line:#2d3344;--zen-accent:#8fb0e8;--zen-accent-text:#11151e;--zen-danger:#e88a78;--zen-ok:#6cc28f;--zen-notice:#262b38}}*{box-sizing:border-box}body{background:var(--zen-bg);color:var(--zen-text);margin:0}a{color:var(--zen-accent)}h1{margin:0;font-size:1.6rem;font-weight:550}h2{margin:1.5rem 0 .75rem;font-size:1.05rem;font-weight:600}.card h2,.panel h2{margin-top:0}.muted{color:var(--zen-muted)}.small{font-size:.85rem}code{font-size:.9em}.topbar{border-bottom:1px solid var(--zen-line);background:var(--zen-surface);justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 16px;display:flex}.brand{color:var(--zen-text);align-items:center;gap:.5rem;font-weight:600;text-decoration:none;display:flex}.brand img{border-radius:7px}.topbar nav{flex-wrap:wrap;justify-content:flex-end;gap:1.1rem;display:flex}.topbar nav a{color:var(--zen-muted);border-bottom:2px solid #0000;padding:.2rem 0;text-decoration:none}.topbar nav a[aria-current=page]{color:var(--zen-text);border-bottom-color:var(--zen-accent)}.content{max-width:64rem;margin:0 auto;padding:1.5rem 16px 4rem}.page-title{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.page-actions,.form-buttons,.row-actions,.person-actions,.member-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.crumb{margin:0 0 .5rem}.crumb a{text-decoration:none}.auth{text-align:center;max-width:26rem;margin:10vh auto 0;padding:0 16px 3rem}.auth-logo{border-radius:14px}.auth h1{margin:.5rem 0}.auth-intro{margin-bottom:1.5rem}.auth .card{text-align:left}.card{background:var(--zen-surface);border:1px solid var(--zen-line);border-radius:var(--zen-radius);margin-bottom:1rem;padding:1.1rem 1.2rem}.list,.people,.members{margin:0;padding:0;list-style:none}.list{background:var(--zen-surface);border:1px solid var(--zen-line);border-radius:var(--zen-radius)}.list>li+li{border-top:1px solid var(--zen-line)}.list-row{color:inherit;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1.1rem;text-decoration:none;display:flex}a.list-row:hover{background:color-mix(in srgb, var(--zen-accent) 6%, transparent)}.list-main{flex-direction:column;min-width:0;display:flex}.list-title{overflow-wrap:anywhere;font-weight:550}.empty{color:var(--zen-muted);padding:2rem 0}.footer-link{margin-top:1.5rem;font-size:.9rem}.badge{border:1px solid var(--zen-line);color:var(--zen-muted);vertical-align:middle;white-space:nowrap;border-radius:999px;padding:.1rem .5rem;font-size:.75rem;font-weight:600;display:inline-block}.badge-editor{color:var(--zen-accent);border-color:color-mix(in srgb, var(--zen-accent) 40%, transparent)}.form{flex-direction:column;gap:.9rem;display:flex}.form.narrow{max-width:28rem}.inline-form{max-width:32rem}.field{flex-direction:column;flex:1;gap:.3rem;display:flex}.field label{font-size:.9rem;font-weight:550}input,select{font:inherit;color:inherit;background:var(--zen-bg);border:1px solid var(--zen-line);border-radius:8px;min-width:0;padding:.55rem .7rem}input:focus-visible,select:focus-visible,.button:focus-visible,a:focus-visible{outline:2px solid var(--zen-accent);outline-offset:2px}input[aria-invalid=true]{border-color:var(--zen-danger)}.field-hint{color:var(--zen-muted);margin:0;font-size:.8rem}.field-error,.error-note{color:var(--zen-danger);margin:0;font-size:.85rem}.error-note{margin:.5rem 0}.ok-note{color:var(--zen-ok);margin:0;font-size:.9rem}.invite-row{flex-wrap:wrap;align-items:flex-start;gap:.75rem;display:flex}.invite-row .button{margin-top:1.65rem}.button{font:inherit;border:1px solid var(--zen-line);background:var(--zen-surface);color:var(--zen-text);cursor:pointer;white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:.3rem;padding:.5rem .95rem;font-size:.92rem;text-decoration:none;display:inline-flex}.button:disabled{opacity:.55;cursor:default}.button.primary{background:var(--zen-accent);border-color:var(--zen-accent);color:var(--zen-accent-text)}.button.danger{color:var(--zen-danger)}.button.danger-text{color:var(--zen-danger);background:0 0;border-color:#0000}.button.small{padding:.3rem .65rem;font-size:.82rem}.button.wide{width:100%}.one-time-link{background:var(--zen-notice);border-radius:8px;margin-top:.5rem;padding:.9rem}.one-time-label{margin:0 0 .4rem;font-size:.9rem;font-weight:600}.one-time-row{gap:.5rem;display:flex}.one-time-row input{flex:1;font-family:ui-monospace,monospace;font-size:.82rem}.one-time-link .field-hint{margin-top:.4rem}.shell{flex-direction:column;min-height:100vh;display:flex}.content-editor{flex:1;min-height:0;display:flex}.content-narrow{max-width:64rem;margin:0 auto;padding:1.5rem 16px}.editor-page{background:var(--color-surface);flex-direction:column;flex:1;min-width:0;height:calc(100vh - 3.4rem);display:flex}.editor-bar{border-bottom:1px solid var(--zen-line);flex-wrap:wrap;align-items:center;gap:.75rem;padding:.5rem 16px;display:flex}.editor-back{color:var(--zen-muted);font-size:1.1rem;text-decoration:none}.editor-title{overflow-wrap:anywhere;min-width:0;margin:0;font-size:1.05rem;font-weight:600}.rename-form{align-items:center;gap:.4rem;display:flex}.rename-form input{padding:.3rem .5rem}.presence{flex-wrap:wrap;gap:.6rem;margin-left:auto;font-size:.82rem;display:flex}.presence-person{color:var(--zen-muted);align-items:center;gap:.3rem;display:inline-flex}.presence-dot{border-radius:50%;width:.6rem;height:.6rem}.save-status{color:var(--zen-muted);white-space:nowrap;font-size:.8rem}.save-status.status-offline{color:var(--zen-danger);white-space:normal}.editor-actions{gap:.4rem;display:flex}.export-menu{position:relative}.export-panel{z-index:20;background:var(--zen-surface);border:1px solid var(--zen-line);border-radius:var(--zen-radius);flex-direction:column;gap:.5rem;width:15rem;padding:.85rem;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #0000001f}.paper-choice{border:0;gap:1rem;margin:0 0 .25rem;padding:0;font-size:.9rem;display:flex}.paper-choice legend{margin-bottom:.3rem;padding:0;font-weight:550}.paper-choice input{padding:0}@media (width<=600px){.export-panel{width:auto;position:fixed;top:7rem;left:16px;right:16px}}.read-only-note{background:var(--zen-notice);margin:0;padding:.4rem 16px;font-size:.82rem}.editor-page .error-note{padding:0 16px}.editor-body{flex:1;min-height:0;display:flex;position:relative}.editor-body .screenplay-editor{flex:1}.page-corner{right:var(--space-3);bottom:var(--space-2);pointer-events:none;position:absolute}.screenplay-editor .cm-editor .cm-ySelectionInfo{font-family:var(--font-ui);border-radius:3px;padding:1px 4px;font-size:.7rem;opacity:1!important}.side-panel{background:var(--zen-surface);border-left:1px solid var(--zen-line);width:21rem;max-width:100%;padding:1rem 1.1rem;overflow:auto}@media (width<=860px){.side-panel{position:absolute;inset:0 0 0 auto;box-shadow:-8px 0 24px #00000026}}.side-panel-head{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.side-panel-head h2{margin:0}.side-panel .members li{border-bottom:1px solid var(--zen-line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem 0;display:flex}.member-name{overflow-wrap:anywhere;min-width:0}.member-actions select,.add-member select{padding:.3rem .5rem;font-size:.85rem}.add-member{flex-wrap:wrap;gap:.4rem;margin-top:.9rem;display:flex}.add-member select:first-child{flex:10rem}.person-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.person p{margin:.4rem 0 0}
