@font-face{font-family:Courier Prime;src:url(/fonts/CourierPrime-Regular.ttf)format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Courier Prime;src:url(/fonts/CourierPrime-Bold.ttf)format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Courier Prime;src:url(/fonts/CourierPrime-Italic.ttf)format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:Courier Prime;src:url(/fonts/CourierPrime-BoldItalic.ttf)format("truetype");font-weight:700;font-style:italic;font-display:swap}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--background:40 30% 98%;--foreground:30 10% 12%;--card:0 0% 100%;--muted:36 18% 91%;--muted-foreground:30 6% 42%;--border:36 14% 84%;--accent:42 90% 70%;--primary:222 70% 46%;--primary-foreground:0 0% 100%;--danger:0 70% 48%;--ok:145 55% 36%;--radius:8px;--font-ui:ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:30 8% 10%;--foreground:36 20% 90%;--card:30 7% 13%;--muted:30 6% 20%;--muted-foreground:36 8% 62%;--border:30 6% 24%;--accent:42 60% 40%;--primary:218 85% 66%;--primary-foreground:222 40% 10%;--danger:0 75% 62%;--ok:145 50% 55%}}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:hsl(var(--background));color:hsl(var(--foreground));font-family:var(--font-ui);-webkit-font-smoothing:antialiased;font-size:14px}.muted{color:hsl(var(--muted-foreground))}.small{font-size:12px}.error{color:hsl(var(--danger))}.btn{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card));min-height:32px;color:inherit;font:inherit;cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-weight:500;text-decoration:none;display:inline-flex}.btn:hover{background:hsl(var(--muted))}.btn:focus-visible,.segmented__item:focus-visible,.outline__item:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}.btn:disabled{opacity:.55;cursor:progress}.btn--ghost{background:0 0;border-color:#0000}.btn--ghost[aria-pressed=true]{background:hsl(var(--muted))}.btn--primary{background:hsl(var(--primary));border-color:hsl(var(--primary));color:hsl(var(--primary-foreground))}.btn--primary:hover{background:hsl(var(--primary) / .88)}.btn--small{min-height:26px;padding:0 8px;font-size:12px}.btn--large{min-height:44px;padding:0 20px;font-size:15px}.badge{background:hsl(var(--muted));border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600}.home{max-width:720px;margin:0 auto;padding:10vh 16px 48px}.home__topbar{border-bottom:1px solid hsl(var(--border));flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:32px;padding-bottom:12px;display:flex}.home__hero h1{letter-spacing:-.5px;margin:0 0 8px;font-family:Courier Prime,Courier New,monospace;font-size:40px}.home__actions{flex-wrap:wrap;gap:12px;margin-top:24px;display:flex}.home__recent{margin-top:56px}.home__recent h2{text-transform:uppercase;letter-spacing:.06em;color:hsl(var(--muted-foreground));font-size:13px}.home__recent ul{border-top:1px solid hsl(var(--border));margin:0;padding:0;list-style:none}.home__recent li{border-bottom:1px solid hsl(var(--border));align-items:center;gap:12px;padding:10px 0;display:flex}.home__recent li a{min-width:0;color:inherit;text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:600;overflow:hidden}.auth-card{border:1px solid hsl(var(--border));background:hsl(var(--card));border-radius:12px;flex-direction:column;gap:16px;margin-top:28px;padding:20px;display:flex}.auth-card__tabs{align-self:flex-start;margin-left:0}.auth-form{flex-direction:column;gap:12px;display:flex}.auth-form input{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));min-height:36px;color:inherit;font:inherit;padding:6px 10px}.auth-form__actions{flex-wrap:wrap;gap:10px;margin-top:4px;display:flex}.account-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.account-header p{margin:2px 0 0}.account-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.account-list li{justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.share-row__field select{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));color:inherit;font:inherit;padding:0 8px;font-size:12px}.centered-message{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:100%;padding:16px;display:flex}.doc{flex-direction:column;height:100%;display:flex}.doc__header{border-bottom:1px solid hsl(var(--border));background:hsl(var(--card));flex-wrap:wrap;align-items:center;gap:10px;padding:8px 16px;display:flex}.brand{border-radius:var(--radius);background:hsl(var(--foreground));width:32px;height:32px;color:hsl(var(--background));place-items:center;font:700 13px Courier Prime,Courier New,monospace;text-decoration:none;display:inline-grid}.doc__title{border-radius:var(--radius);min-width:0;color:inherit;font:600 18px var(--font-ui);background:0 0;border:1px solid #0000;flex:200px;padding:4px 6px}.doc__title:hover:not([readonly]),.doc__title:focus{border-color:hsl(var(--border));outline:none}.doc__actions{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.status{align-items:center;gap:6px;font-size:12px;font-weight:600;display:inline-flex}.status:before{content:"";background:currentColor;border-radius:50%;width:8px;height:8px}.status--connected{color:hsl(var(--ok))}.status--connecting{color:hsl(var(--muted-foreground))}.status--disconnected{color:hsl(var(--danger))}.presence{margin:0;padding:0;list-style:none;display:flex}.presence li+li{margin-left:-6px}.avatar{border:2px solid hsl(var(--card));color:#fff;cursor:default;border-radius:50%;place-items:center;width:28px;height:28px;padding:0;font-size:12px;font-weight:700;display:inline-grid}button.avatar{cursor:pointer}.menu{position:relative}.menu>summary{list-style:none}.menu>summary::-webkit-details-marker{display:none}.menu__items{z-index:20;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);flex-direction:column;min-width:180px;padding:4px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 24px #0000001f}.menu__items .btn{justify-content:flex-start}.toolbar{border-bottom:1px solid hsl(var(--border));flex-wrap:wrap;align-items:center;gap:8px;padding:6px 16px;display:flex}.toolbar__group{flex-wrap:wrap;gap:2px;display:flex}.segmented{border:1px solid hsl(var(--border));border-radius:var(--radius);margin-left:auto;padding:2px}.segmented__item{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px 10px;font-size:12px}.segmented__item--active{background:hsl(var(--muted));font-weight:600}.notice{background:hsl(var(--accent) / .35);justify-content:space-between;align-items:center;gap:12px;padding:6px 16px;display:flex}.doc__body{flex:1;min-height:0;display:flex}.doc__editor{flex:1;min-width:0;overflow:hidden}.doc__editor .script-editor,.doc__editor .cm-editor{height:100%}.doc[data-slug-bold=false] .cm-fountain-scene-heading{font-weight:400}.doc[data-slug-underline=true] .cm-fountain-scene-heading{text-decoration:underline}.doc__footer{border-top:1px solid hsl(var(--border));padding:4px 16px}.side-panel{background:hsl(var(--card));flex-shrink:0;width:260px;padding:12px;overflow-y:auto}.side-panel--left{border-right:1px solid hsl(var(--border))}.side-panel--right{border-left:1px solid hsl(var(--border))}.side-panel__header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.side-panel__header .side-panel__title{margin:0}.side-panel__close{font-size:16px;line-height:1;display:none}.side-panel__title{text-transform:uppercase;letter-spacing:.06em;color:hsl(var(--muted-foreground));margin:0 0 8px;font-size:12px}.outline{margin:0;padding:0;list-style:none}.outline__item{width:100%;color:inherit;text-align:left;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;border-radius:6px;padding:6px 8px;font:12px Courier Prime,Courier New,monospace;overflow:hidden}.outline__item:hover{background:hsl(var(--muted))}.outline__item--scene-heading{text-transform:uppercase;font-weight:700}.outline__continues{color:hsl(var(--muted-foreground) / .72);margin-left:6px;font-weight:400}.outline__item--outline-2{padding-left:16px}.outline__item--outline-3{padding-left:24px}.outline__item--outline-4{padding-left:32px}.raw{flex-direction:column;gap:8px;width:380px;display:flex}.raw__header{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.raw__header p{margin:0}.raw__markers{grid-template-columns:repeat(4,1fr);gap:4px;margin:0;display:grid}.raw__markers div{text-align:center;border:1px solid hsl(var(--border));border-radius:6px;padding:4px}.raw__markers dt{font:700 13px Courier Prime,Courier New,monospace}.raw__markers dd{color:hsl(var(--muted-foreground));margin:0;font-size:12px}.raw__body{border:1px solid hsl(var(--border));border-radius:6px;flex:1;min-height:0;display:flex;overflow:auto}.raw__gutter,.raw__text{margin:0;padding:8px;font:12px/1.5 Courier Prime,Courier New,monospace}.raw__gutter{text-align:right;color:hsl(var(--muted-foreground));background:hsl(var(--muted) / .5);-webkit-user-select:none;user-select:none;position:sticky;left:0}.raw__text{white-space:pre;flex:1}.raw__text--wrap{white-space:pre-wrap;overflow-wrap:anywhere}.dialog{border:1px solid hsl(var(--border));background:hsl(var(--card));width:min(560px,100vw - 32px);color:inherit;border-radius:12px;padding:0}.dialog::backdrop{background:#00000073}.dialog--full{border-radius:0;width:100vw;max-width:none;height:100vh;max-height:none;margin:0}.dialog--wide{width:min(980px,100vw - 32px);height:min(760px,100vh - 32px)}.dialog--wide[open]{flex-direction:column;display:flex}.dialog__header{border-bottom:1px solid hsl(var(--border));background:hsl(var(--card));justify-content:space-between;align-items:center;padding:12px 16px;display:flex;position:sticky;top:0}.dialog__header h2{margin:0;font-size:16px}.dialog__body{flex-direction:column;gap:16px;padding:16px;display:flex}.share-row p{margin:2px 0 6px}.share-row__field{gap:8px;display:flex}.share-row__field input{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));min-width:0;color:inherit;flex:1;padding:0 8px;font:12px ui-monospace,monospace}.settings-group{border:1px solid hsl(var(--border));border-radius:var(--radius);flex-direction:column;gap:10px;margin:0;padding:12px;display:flex}.settings-group legend{padding:0 6px;font-size:13px;font-weight:600}.settings-group p{margin:0}.settings-field{flex-direction:column;gap:4px;font-size:13px;font-weight:500;display:flex}.settings-field select{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));min-height:34px;color:inherit;font:inherit;padding:4px 8px}.settings-checks{flex-direction:column;gap:6px;display:flex}.settings-checks__label{font-size:13px;font-weight:500}.settings-check{cursor:pointer;align-items:center;gap:8px;font-size:13px;display:flex}.settings-group:disabled{opacity:.7}.settings-group:disabled .settings-check{cursor:default}.history{flex:1;min-height:0;display:flex}.history__list{border-right:1px solid hsl(var(--border));flex-shrink:0;width:260px;padding:10px;overflow-y:auto}.history__list ul{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.history__item{border-radius:var(--radius);width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;display:flex}.history__item:hover{background:hsl(var(--muted) / .6)}.history__item--active{background:hsl(var(--muted));border-color:hsl(var(--border))}.history__viewer{flex-direction:column;flex:1;gap:10px;min-width:0;padding:12px;display:flex;overflow:hidden}.history__bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.history__bar .segmented{margin-left:0}.history__pre,.history__diff{border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--background));flex:1;min-height:0;margin:0;padding:12px;font:12px/1.5 Courier New,Courier,monospace;overflow:auto}.history__pre{white-space:pre-wrap}.history__diff-line{white-space:pre-wrap;border-radius:3px;gap:8px;padding:0 4px;display:flex}.history__diff-line--add{background:hsl(var(--ok) / .16)}.history__diff-line--del{background:hsl(var(--danger) / .16)}.history__diff-sign{-webkit-user-select:none;user-select:none;color:hsl(var(--muted-foreground));flex-shrink:0}.preview-page{background:hsl(var(--muted));justify-content:center;min-height:calc(100% - 57px);padding:32px 16px;display:flex}.preview-page .screenplay-preview{color:#111;background:#fff;width:100%;max-width:8.5in;padding:1in 1in 1in 1.5in;box-shadow:0 2px 12px #00000026}@media (width<=760px){.side-panel{z-index:40;width:min(320px,86vw);position:fixed;top:0;bottom:0;box-shadow:0 12px 36px #00000047}.side-panel--left{left:0}.side-panel--right{right:0}.side-panel__close{display:inline-flex}.history{flex-direction:column}.history__list{border-right:0;border-bottom:1px solid hsl(var(--border));width:100%;max-height:180px}.segmented{margin-left:0}.doc__header{padding:8px 12px}.toolbar{padding:6px 12px}}.preview-sheets{flex-direction:column;align-items:center;gap:24px;width:100%;display:flex}.preview-sheet{color:#111;background:#fff;flex-shrink:0;width:8.5in;max-width:100%;height:11in;font-family:Courier Prime,Courier New,Courier,monospace;font-size:12pt;line-height:1;position:relative;overflow:hidden;box-shadow:0 2px 14px #0000002e}.preview-sheet--courier{font-family:Courier New,Courier,monospace}.preview-sheet__number,.preview-sheet__line{white-space:pre;line-height:12pt;position:absolute}.preview-sheet__number{text-align:right}.sp-bold{font-weight:700}.sp-italic{font-style:italic}.sp-underline{text-decoration:underline}.preview-sheet--title{flex-direction:column;justify-content:space-between;padding:3.5in 1in 1in 1.5in;display:flex}.preview-title__center{text-align:center;margin-left:-.5in;line-height:12pt}.preview-title__block{margin-bottom:12pt}.preview-title__title{margin-bottom:36pt}.preview-title__author{margin-bottom:24pt}.preview-title__bottom{line-height:12pt}
