@font-face{font-family:Fredoka;src:url('/assets/fonts/fredoka-600.ttf') format('truetype');font-weight:600;font-display:swap}@font-face{font-family:Fredoka;src:url('/assets/fonts/fredoka-700.ttf') format('truetype');font-weight:700;font-display:swap}@font-face{font-family:DynaPuff;src:url('/assets/fonts/dynapuff-variable.ttf') format('truetype');font-weight:400 700;font-display:swap}@font-face{font-family:Nunito;src:url('/assets/fonts/nunito-400.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Nunito;src:url('/assets/fonts/nunito-700.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--ink:#302344;--muted:#74677e;--cream:#fbf7ff;--paper:#fff;--line:#ded2ec;--accent:#bd4869;--accent-light:#ffe9f1;--nav:#f1e8ff;--navline:#dfcfee;--navtext:#766084;--shadow:0 4px 0 #e8d8f6;--bounce:cubic-bezier(.34,1.56,.64,1)}
body{font-family:Nunito,'Trebuchet MS',sans-serif;background:#fbf7ff;color:var(--ink)}.app-shell{min-height:0;grid-template-columns:258px minmax(0,1fr);position:relative;background:transparent}.sidebar{background:#f1e8fff0;color:var(--navtext);border-right:1px solid #dfcfee;padding:24px 18px;gap:0}.studio-brand{display:flex;flex-direction:column;gap:4px;text-decoration:none;padding:0 8px 22px;align-items:center}.studio-brand img{width:200px;max-width:100%;height:auto;transform:rotate(-2deg);transition:transform .3s var(--bounce)}.studio-brand:hover img{transform:rotate(2deg) scale(1.04)}.studio-brand .sub{color:#7d47bc;font:600 11px Fredoka,sans-serif;letter-spacing:2px}.project-meta{padding:19px 9px 23px}.project-title{font-family:Fredoka,sans-serif;color:#7d47bc;font-size:23px}.project-meta small{color:#80658f}.side-eyebrow,.side-heading span{color:#9277a6}.side-section{flex:none;margin-bottom:20px}.side-row{color:#766084;border:2px solid transparent;transition:transform .23s var(--bounce),background .2s,box-shadow .2s;border-radius:15px}.side-row .row-text{font-family:Fredoka,sans-serif;font-weight:600;font-size:13px}.side-row .side-number{color:#976ab6}.side-row.active{background:#fff0b4;color:var(--ink);border:2px solid var(--ink);box-shadow:2px 3px 0 var(--ink);transform:rotate(-1deg)}.scene-row.active{background:#ddeeff}.side-row:hover{background:#e8dcff;transform:translateX(3px)}.side-row .side-more{color:#80658f}.scene-row.active .scene-dot{background:#9865d8;border-color:#9865d8}.side-tool{color:#7b568d;font-family:Fredoka,sans-serif;font-size:13px;padding:9px 11px}.side-tool:hover{background:#e4d7ff}.tiny-icon{background:#fff;border:2px solid var(--ink);color:var(--ink);box-shadow:1px 2px 0 var(--ink)}.save-mini{color:#806a93;font-size:11px}.hatroom-link{color:#7d47bc;padding:7px 10px;font-weight:700;text-decoration:none}.hatroom-link:hover{text-decoration:underline}.side-spacer{min-height:8px}.sidebar-foot{gap:3px;padding-top:9px}.main{background:transparent;padding:0}.topbar{height:auto;min-height:78px;padding:14px 26px;background:#fffdfcf0;border-bottom:2px solid var(--ink);gap:9px;flex-wrap:wrap}.breadcrumb{min-width:100px;font-size:12px;color:#9277a6}.breadcrumb strong{color:#5d3b7a}.save-status{font-size:11px;color:#74677e}.button,.tiny-icon{font-family:Fredoka,sans-serif;font-weight:600;transition:transform .23s var(--bounce),box-shadow .2s,background .2s}.button{border:2px solid var(--ink);box-shadow:2px 3px 0 var(--ink);border-radius:14px;color:var(--ink);background:#fff;min-height:39px;text-decoration:none}.button.primary{background:#e4d7ff;color:var(--ink);border-color:var(--ink)}.button.orange{background:#ffcf68;color:var(--ink);border-color:var(--ink)}.button:hover,.button.primary:hover{background:#fff0b4;border-color:var(--ink);transform:translateY(-3px) rotate(-1deg);box-shadow:3px 6px 0 var(--ink)}.button:active,.tiny-icon:active{transform:translate(2px,3px) scale(.98);box-shadow:none}.button.flat{box-shadow:none;border-color:transparent;background:transparent}.focus-toggle{background:#e4d7ff}.focus-toggle[aria-pressed=true]{background:#ddf7e9}.scene-heading{margin:24px 26px 14px;border:2px solid #d8b8ef;border-radius:26px;background:#f0e3fff2;box-shadow:0 5px 0 #e8d8f6;padding:24px 28px;position:relative}.scene-heading h2{font-family:Fredoka,sans-serif;color:#684298;font-weight:600;font-size:37px;letter-spacing:-.6px}.section-kicker{color:#9d6bc0}.scene-location{color:#80658f}.scene-location button{color:#7d47bc}.stats{color:#80658f}.scene-tools .search-box{border:2px solid #d9c5e9;border-radius:15px}.dialogue-area{background:transparent;padding:24px 34px;scrollbar-color:#b5a0d0 #f1e8ff}.dialogue-inner{max-width:840px}.transcript-guide{color:#9775aa}.transcript-guide:before,.transcript-guide:after{border-color:#d7c3e5}.bubble{border:2px solid #d8c3e9;border-radius:4px 20px 20px 20px;box-shadow:0 4px 0 #e8d8f6;background:#fffefef5;color:#302344}.bubble,.speaker,.emotion,.action-text,#bodyInput,#emotionInput{font-family:'Courier Prime','Courier New',Courier,monospace;font-size:16px;line-height:1.55}.speaker{text-transform:uppercase;font-weight:700}.emotion{font-size:14px;color:#80658f}.action-text{color:#594b66}.action-beat{border-left:3px solid #c9a6e2}.avatar{border:2px solid #30234455;box-shadow:2px 3px 0 #30234422;font-family:Fredoka,sans-serif}.bubble:has(+ .beat-buttons){transition:box-shadow .2s}.beat-content:hover .bubble{box-shadow:0 6px 0 #ddc9ef}.empty{padding:45px 20px 65px}.empty-icon{background:#fff0b4;border:2px solid #d0ad55;box-shadow:2px 3px 0 #e6d39d}.empty h3{font-family:Fredoka,sans-serif;font-weight:600;color:#684298}.empty p{font-size:13px;color:#80658f}.composer{background:#fffdfcf5;border-top:2px solid #dec9ed;padding:13px 34px 18px;box-shadow:0 -5px 20px #30234406}.editor-box{border:2px solid #d8b8ef;border-radius:19px;box-shadow:0 4px 0 #e8d8f6}.editor-meta{border-bottom:1px solid #e5d5f0;background:#faf5ff}.editor-meta label{color:#9770b1}.editor-meta select{font-family:Fredoka,sans-serif;color:#684298;font-weight:600}.editor-box textarea{font-size:16px;min-height:94px;padding:15px 18px;color:#302344}.tab{font-family:Fredoka,sans-serif;color:#8d6a9e}.tab.active{background:#fff0b4;color:#705627;border:1px solid #d0ad55;box-shadow:0 2px 0 #e6d39d}.tab:hover{background:#eee4ff}.caption{color:#9775aa!important}.hint{color:#80658f}.modal,.shot-modal{background:#fffafefc;border:2px solid var(--ink);border-radius:24px;box-shadow:5px 7px 0 #30234444}.modal h3,.shot-head h3{font-family:Fredoka,sans-serif;color:#684298}.modal p{color:#80658f;font-size:13px}.studio-modal{width:min(660px,96vw);max-width:660px;max-height:88dvh;overflow:auto;padding:25px}.studio-modal h4{font-family:DynaPuff,Fredoka,sans-serif;color:#7d47bc;font-size:16px;font-weight:500;margin:24px 0 12px}.setting-row{display:flex;align-items:center;gap:7px;border-bottom:1px solid #ecdef5;padding:8px 0;font-size:13px}.setting-row>span{flex:1}.record-key{min-width:115px;background:#f1e8ff;font-family:Nunito,sans-serif}.clear-key{border:0;background:transparent;font-size:22px;color:#9775aa}.pair-select{display:flex;gap:12px}.pair-select label{display:flex;flex-direction:column;flex:1;gap:5px;min-width:0}.studio-modal select{border:2px solid #d8b8ef;border-radius:12px;padding:8px;background:#fff;color:#684298}.check-setting{display:flex;align-items:center;gap:10px;padding:11px 0;line-height:1.5;font-size:13px}.check-setting input{accent-color:#9865d8;width:18px;height:18px;flex:none}.team-status{background:#eee1ff;padding:14px;border-radius:15px;font:600 18px Fredoka,sans-serif;color:#684298}.team-actions{display:flex;gap:10px;flex-wrap:wrap;margin:17px 0}.member-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:10px 0}.sync-conflict{padding:16px;background:#fff0b4;border:2px solid #d0ad55;border-radius:16px;margin:20px 0}.sync-conflict .button{margin:5px}.recoveries{margin-top:25px;color:#80658f}.recovery-download{margin:4px}.live-strip{position:fixed;bottom:0;left:0;padding:4px 12px;background:#ddf7e9;border:1px solid #a5d6ba;color:#267158;font-size:10px;border-radius:0 10px 0 0;max-width:100vw;z-index:10;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}#teamDot.connected{display:inline-block;width:7px;height:7px;background:#43916b;border-radius:50%;margin-left:5px}.header-hidden .scene-heading{display:none}.studio-focus .app-shell{grid-template-columns:minmax(0,1fr)}.studio-focus .sidebar,.studio-focus .scene-heading,.studio-focus .topbar .breadcrumb,.studio-focus .topbar #takeScreenshot,.studio-focus .topbar #exportText,.studio-focus .topbar #printScript{display:none}.studio-focus .topbar{min-height:52px;padding:8px 20px;justify-content:flex-end}.studio-focus .topbar .mobile-menu{display:none}.studio-focus .dialogue-area{padding-top:25px}.studio-viewer .beat-buttons,.studio-viewer .side-more,.studio-viewer #editLocation{display:none}.studio-viewer .composer{opacity:.75}.animations-off *, .animations-off *:before,.animations-off *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:1120px){.app-shell{grid-template-columns:225px minmax(0,1fr)}.topbar{padding:12px 18px}.topbar .breadcrumb{flex-basis:100%}.scene-heading{margin:18px}.scene-heading h2{font-size:30px}.scene-tools .search-box{width:145px}.composer,.dialogue-area{padding-left:24px;padding-right:24px}.button{padding:9px 11px}.compose-head{flex-wrap:wrap}.compose-head .caption{display:none}}
@media(max-width:820px){.app-shell{display:block}.sidebar{width:min(292px,85vw)}.topbar{min-height:65px}.topbar .breadcrumb{flex-basis:auto}.scene-heading{padding:20px}.scene-heading h2{font-size:29px}.pair-select{flex-wrap:wrap}.save-status{display:flex}.topbar .save-status{display:none}.main{height:100dvh}.studio-focus .topbar .save-status{display:flex}.studio-focus .sidebar.open{display:flex}.live-strip{font-size:9px}}
@media(max-width:580px){.scene-heading{margin:14px 12px 8px}.topbar{gap:8px;padding:10px 12px}.topbar .breadcrumb{flex-basis:calc(100% - 50px)}.topbar .button{font-size:11px;padding:7px 9px;min-height:34px}.scene-heading h2{font-size:28px}.dialogue-area,.composer{padding-left:15px;padding-right:15px}.composer{padding-bottom:19px}.editor-meta{gap:7px}.compose-head{gap:3px}.tab{padding:7px 8px;font-size:11px}.editor-box textarea{min-height:70px}.modal-head h3{font-size:24px}.setting-row{font-size:12px}.record-key{min-width:95px;font-size:11px}.studio-modal{padding:20px}.bubble,.action-text{font-size:14px}.side-section{margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{#printSheet,#printSheet *{font-family:'Courier New',Courier,monospace!important;font-size:12pt!important}.live-strip{display:none!important}.bubble{box-shadow:none}}
.export-wrap{position:relative}.option-menu{position:absolute;right:0;top:calc(100% + 9px);width:205px;padding:7px;background:#fff;border:2px solid #302344;border-radius:15px;box-shadow:3px 5px 0 #30234433;z-index:100}.option-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:11px;border-radius:9px;color:#684298;font-family:Fredoka,sans-serif}.option-menu button:hover,.option-menu button:focus-visible{background:#eee1ff}.floating-menu{position:fixed;width:160px}.tiny-icon{display:flex;align-items:center;justify-content:center;padding:0;line-height:1;font-family:Arial,sans-serif;font-size:21px}.side-row-button{min-height:35px}.action-beat{background:#fffdf7f5;border:2px solid #dac4eb;border-radius:17px;padding:15px 18px;box-shadow:0 4px 0 #e8d8f6}.studio-brand{position:relative;isolation:isolate}.example-link{background:none;border:0;color:#7d47bc;text-decoration:underline;cursor:pointer}.example-dialog{max-width:760px;width:92vw;max-height:87dvh;border:2px solid #302344;border-radius:24px;padding:26px;color:#302344;background:#fbf7ff;overflow:auto}.example-dialog::backdrop{background:#30234488}.example-dialog h3{font:600 25px Fredoka,sans-serif}.example-dialog p{line-height:1.65}.example-dialog .beat-content{margin:20px 30px}.example-dialog .close-modal{float:right}.studio-focus .topbar{min-height:42px;padding:4px 18px}.studio-focus .topbar .button{min-height:30px;padding:5px 11px}.studio-focus .composer{padding:5px 24px 10px}.studio-focus .compose-head{margin:0 0 4px}.studio-focus .tab{padding:4px 8px}.studio-focus .editor-meta{min-height:30px;padding:4px 12px}.studio-focus .editor-box textarea{min-height:40px;height:48px;max-height:25vh;padding:7px 12px;resize:vertical}.studio-focus .composer-foot{margin-top:6px}.studio-focus .composer-foot .button{padding:6px 10px;min-height:32px}.studio-focus .dialogue-area{padding-top:15px;padding-bottom:15px}.studio-focus .hint{font-size:10px}@media print{html,body{background:#fff!important;background-image:none!important}#pastel-water,.ambient-sparkles,.shooting-stars,.water-glitter-layer{display:none!important}}
.topbar{position:relative;z-index:20}.studio-focus .topbar #exportOptions button{display:block}
/* Match Hat Room's rainbow sweep on the logo artwork itself. */
.studio-brand{transform:none;overflow:hidden}.studio-brand img,.studio-brand:hover img{transform:none}.logo-art{position:relative;display:block;width:200px;max-width:100%;line-height:0;isolation:isolate;overflow:hidden;transform:rotate(-2deg);transition:transform .3s var(--bounce)}.logo-art img{display:block;width:100%;height:auto}.logo-art::after{content:'';position:absolute;inset:0;background:linear-gradient(108deg,transparent 32%,#ff9abd4a 40%,#ffe58bc9 44%,#b8ffe6cf 47%,#fff 50%,#b5dbffda 53%,#e1aeffd4 56%,transparent 64%);background-size:300% 100%;background-position:100% 0;-webkit-mask-image:url('/assets/toasted-logo-transparent.png');mask-image:url('/assets/toasted-logo-transparent.png');-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;mix-blend-mode:screen;pointer-events:none;opacity:0}
@keyframes logo-rainbow-glimmer{0%{opacity:0;background-position:100% 0}18%{opacity:1}75%{opacity:1}100%{opacity:0;background-position:0% 0}}
@media(hover:hover) and (pointer:fine){.studio-brand:hover .logo-art{transform:rotate(2deg) scale(1.06)}.studio-brand:hover .logo-art::after{animation:logo-rainbow-glimmer 1s ease-in-out infinite}}.studio-brand:focus-visible .logo-art::after,.studio-brand.logo-tap .logo-art::after{animation:logo-rainbow-glimmer 1s ease-in-out 1}
@keyframes logo-tap-bounce{0%,100%{transform:rotate(-2deg) scale(1)}16.6667%,70%{transform:rotate(2deg) scale(1.06)}}.studio-brand.logo-tap .logo-art{animation:logo-tap-bounce 1.5s var(--bounce) 1}
/* Fixed sidebar rows prevent controls jumping when scrollbars or content change. */
html,body{overflow:hidden}.app-shell{width:100%;min-width:0}.sidebar{display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;min-width:0;gap:16px}.studio-brand{padding-bottom:16px}.sidebar-tree{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding:4px 5px 8px}.sidebar-foot{min-width:0;margin:0;overflow:hidden}.side-tool{min-height:36px;overflow-wrap:anywhere}.save-mini{margin-top:7px;font-size:10px}.main{min-height:0}.script-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain}.script-scroll .dialogue-area{overflow:visible;min-height:0;flex:none}.scene-heading{position:relative;flex:none}.script-scroll .scene-heading{margin:18px 26px 10px;padding:19px 25px}.script-scroll .dialogue-area{padding-top:14px}
/* Dragging changes only the composer, leaving the script's scroll position intact. */
.composer,.studio-focus .composer{position:relative;box-sizing:border-box;height:var(--composer-height,215px);min-height:145px;max-height:65dvh;padding:15px 24px 12px;flex:none}.studio-focus .composer{height:var(--composer-height,165px);padding:12px 24px 10px}.composer-inner{height:100%;display:flex;flex-direction:column;min-height:0}.compose-head,.composer-foot{flex:none}.composer .editor-box{flex:1;min-height:44px;display:flex;flex-direction:column}.composer .editor-meta{flex:none;min-height:30px;padding:5px 12px}.composer .editor-box textarea,.studio-focus .composer .editor-box textarea{flex:1;height:auto!important;min-height:24px;max-height:none;resize:none;padding:8px 12px}.composer-foot{margin-top:8px}.composer-resize{position:absolute;top:0;left:0;right:0;height:12px;z-index:2;cursor:ns-resize;touch-action:none;display:flex;justify-content:center;align-items:center;color:#9970b5;font:14px Arial}.composer-resize:before,.composer-resize:after{content:'';width:22px;height:2px;background:#cbb2df;margin:0 5px;border-radius:2px}.composer-resize:focus-visible{outline:2px solid #9865d8;outline-offset:0}.resizing-composer,.resizing-composer *{cursor:ns-resize!important;user-select:none!important}.reading-setting{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0}.reading-setting select{margin-left:auto}.reading-setting input[type=range]{width:100%;accent-color:#9865d8}.reading-setting output{margin-left:auto}
/* Density affects the transcript only; the PDF keeps screenplay formatting. */
.script-scroll .bubble,.script-scroll .speaker,.script-scroll .action-text{font-size:var(--dialogue-size,14px)}body[data-density=compact] .script-scroll .beat{margin-bottom:10px;gap:9px}body[data-density=compact] .script-scroll .bubble{padding:9px 13px;line-height:1.4}body[data-density=compact] .script-scroll .beat-top{margin-bottom:3px}body[data-density=compact] .script-scroll .beat-buttons{margin-top:2px}body[data-density=compact] .script-scroll .beat-buttons button{padding:3px 7px}body[data-density=compact] .script-scroll .action-beat{margin-top:8px;margin-bottom:12px;padding:9px 13px}body[data-density=compact] .script-scroll .avatar{height:31px;width:31px;border-radius:11px}body[data-density=roomy] .script-scroll .bubble{padding:20px 22px;line-height:1.9}body[data-density=roomy] .script-scroll .beat{margin-bottom:28px}
.pdf-preview{width:95vw;max-width:1100px;height:92dvh;max-height:92dvh;padding:15px;border:2px solid #302344;border-radius:18px;background:#fff;color:#302344}.pdf-preview[open]{display:flex;flex-direction:column;gap:10px}.pdf-preview::backdrop{background:#30234499}.pdf-preview .pdf-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:none}.pdf-preview h3{margin:0 auto 0 0;font:600 22px Fredoka,sans-serif}.pdf-preview p{margin:0;font-size:12px;color:#74677e}.pdf-preview iframe{width:100%;flex:1;min-height:0;border:1px solid #ded2ec;background:#fff}
@media(max-width:820px){.sidebar{display:grid}.studio-focus .sidebar.open{display:grid}.composer,.studio-focus .composer{padding-left:15px;padding-right:15px}.script-scroll .scene-heading{margin:12px;padding:17px}.logo-art{max-width:100%}}@media(max-height:600px){.sidebar{gap:8px;padding-top:12px;padding-bottom:12px}.save-mini{display:none}.studio-brand .logo-art{width:140px}.studio-brand{padding-bottom:8px}.composer,.studio-focus .composer{height:var(--composer-height,150px)}.compose-head .caption{display:none}}@media(prefers-reduced-motion:reduce){.logo-art::after,.studio-brand.logo-tap .logo-art{animation:none!important}}
/* Soft character colors, shared by desktop and the mobile conversation layout. */
.speech-icon{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;margin-right:4px}.script-scroll .beat .bubble{background:#fff;background:color-mix(in srgb,var(--character-color,#9865d8) 14%,white);border-color:color-mix(in srgb,var(--character-color,#9865d8) 38%,white)}
.script-scroll .action-beat,body[data-density=compact] .script-scroll .action-beat{width:fit-content;min-width:min(230px,100%);max-width:min(650px,100%);margin:10px auto 15px;padding:9px 16px;border-radius:14px;text-align:center}.script-scroll .action-label{font-size:9px;line-height:1.2;letter-spacing:.7px;margin-bottom:4px}.script-scroll .action-text{font-size:max(12px,calc(var(--dialogue-size,14px) - 1px));line-height:1.45;text-align:center}.script-scroll .action-beat .beat-buttons{justify-content:center}
.composer,.studio-focus .composer{min-height:64px}.composer-collapsed .composer,.studio-focus.composer-collapsed .composer{padding:13px 20px 7px}.composer-collapsed .composer .compose-head,.composer-collapsed .composer .editor-meta,.composer-collapsed .composer .composer-foot{display:none}.composer-collapsed .composer .editor-box{min-height:0;border-radius:13px}.composer-collapsed .composer .editor-box textarea{padding:7px 11px;min-height:0}
/* A compact conversation layout, with all existing editor controls retained. */
@media(max-width:600px){.topbar{min-height:54px;padding:8px 12px;gap:7px}.topbar .breadcrumb{flex-basis:auto;min-width:0;font-size:10px}.topbar .button{min-height:32px;padding:6px 10px;font-size:11px}.script-scroll .scene-heading{margin:10px 9px;padding:14px;border-radius:20px}.scene-heading h2{font-size:25px}.scene-heading .section-kicker{font-size:8px;letter-spacing:1px}.scene-heading .stats{font-size:10px;gap:10px;padding-top:8px}.script-scroll .dialogue-area{padding:12px 11px 16px}.transcript-guide{margin-bottom:14px;font-size:9px}.script-scroll .beat,body[data-density=compact] .script-scroll .beat{gap:7px;margin-bottom:12px}.script-scroll .avatar,body[data-density=compact] .script-scroll .avatar{width:27px;height:27px;border-radius:10px;font-size:11px;border-width:1px;box-shadow:1px 2px 0 #30234422}.script-scroll .beat-content{max-width:calc(100% - 35px)}.script-scroll .speaker{font-size:12px;letter-spacing:.2px}.script-scroll .emotion{font-size:11px;line-height:1.3}.script-scroll .beat-top{gap:6px;margin-bottom:4px}.script-scroll .beat .bubble,body[data-density=compact] .script-scroll .beat .bubble{font-size:var(--dialogue-size,14px);line-height:1.45;padding:9px 12px;border-radius:5px 17px 17px 17px;border-width:1px;box-shadow:0 2px 0 #30234412}.script-scroll .beat-buttons{gap:1px;margin-top:3px;opacity:1}.script-scroll .beat-buttons button{font-size:9px;padding:4px 6px}.script-scroll .action-beat,body[data-density=compact] .script-scroll .action-beat{max-width:94%;min-width:0;margin:10px auto 13px;padding:8px 12px;border-width:1px;box-shadow:0 2px 0 #e8d8f6}.script-scroll .action-text{font-size:max(12px,calc(var(--dialogue-size,14px) - 1px));line-height:1.4}.script-scroll .action-label{font-size:8px}.composer,.studio-focus .composer{height:var(--composer-height,166px);padding:13px 11px 9px}.compose-head{gap:4px;flex-wrap:wrap;margin-bottom:6px}.compose-head .tab{font-size:10px;padding:5px 7px}.compose-head .caption{display:none}.composer .editor-meta{gap:6px;padding:4px 8px;min-height:28px}.editor-meta label{font-size:8px}.editor-meta select{font-size:12px;max-width:100px}.editor-meta input{font-size:12px;min-width:20px}.composer-foot{margin-top:5px}.composer-foot .button{min-height:29px;padding:5px 9px;font-size:11px}.composer .hint{font-size:9px}.composer .editor-box textarea{font-size:14px;padding:7px 10px}.composer-collapsed .composer{padding:13px 11px 7px}.live-strip{max-width:100%;font-size:9px}.option-menu{max-width:calc(100vw - 16px)}.studio-modal{padding:18px;max-height:88dvh}.reading-setting select{max-width:100%}.setting-row{font-size:11px}.record-key{min-width:87px;font-size:10px}.sidebar{width:min(275px,88vw)}}
@media(max-width:600px){.topbar{flex-wrap:nowrap;min-height:54px;height:54px}.topbar .breadcrumb{flex:1 1 0;width:0;min-width:0}.topbar .mobile-menu,.topbar #focusMode,.topbar .export-wrap{flex:none}.topbar #focusMode{font-size:10px;padding:6px 8px}.topbar #exportMenu{font-size:10px;padding:6px 8px}.studio-focus .topbar{justify-content:flex-end}}
.composer-collapsed .composer .editor-meta{display:none!important}
/* Action text determines the card height; hidden tools reserve no blank space. */
.script-scroll .action-beat{position:relative;min-height:0;height:auto}.script-scroll .action-beat .beat-buttons{position:absolute;right:4px;bottom:calc(100% + 3px);margin:0;padding:3px 5px;border:1px solid #ded2ec;border-radius:9px;background:#fff;z-index:3;opacity:0;pointer-events:none}.script-scroll .action-beat:hover .beat-buttons,.script-scroll .action-beat:focus-within .beat-buttons{opacity:1;pointer-events:auto}
@media(max-width:600px){.script-scroll .action-beat .beat-buttons{position:static;margin:4px 0 0;padding:0;border:0;background:transparent;opacity:1;pointer-events:auto}}
/* Writing tools retain the established Toasted colors and screenplay font. */
.feature-dialog{color:var(--ink);background:#fffafc;width:min(650px,94vw);max-width:94vw;max-height:90dvh;border:2px solid var(--ink);border-radius:22px;padding:22px;overflow:auto;box-shadow:5px 7px 0 #30234433;overscroll-behavior:contain}.feature-wide{width:min(1000px,95vw)}.feature-dialog::backdrop{background:#30234488}.feature-dialog>header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.feature-dialog h3{margin:0;font:600 24px Fredoka,sans-serif;color:#684298}.feature-dialog h4{font:600 18px Fredoka,sans-serif}.feature-dialog h5{font-size:16px}.feature-body>p{font-size:13px;line-height:1.6;color:var(--muted)}.feature-form{display:flex;flex-direction:column;gap:15px}.feature-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}.feature-form input,.feature-form textarea,.feature-form select,.inline-form input,.inline-form textarea,.inline-form select{width:100%;min-width:0;border:2px solid #d8b8ef;border-radius:10px;background:#fff;color:var(--ink);padding:10px;font-size:16px}.feature-form textarea,.script-preview,.import-preview,.inline-form textarea{font-family:'Courier New',Courier,monospace;line-height:1.5}.feature-actions{display:flex;gap:12px;flex-wrap:wrap}.feature-form>.button{align-self:flex-start}.feature-dialog blockquote{margin:0 0 18px;border-left:3px solid #c9a6e2;background:#f2e8ff;padding:12px;font:14px/1.5 'Courier New',monospace;white-space:pre-wrap;overflow-wrap:anywhere}.export-scope{display:flex;flex-direction:column;gap:5px;padding:8px 10px;font-size:11px;color:#74677e}.export-scope select{max-width:100%;width:100%;border:1px solid #d8b8ef;border-radius:8px;background:#faf5ff;padding:7px;color:#684298;font-size:13px}
.avatar{overflow:hidden;flex-shrink:0}.avatar img{display:block;width:100%;height:100%;object-fit:cover}.cast-row{flex-wrap:wrap;gap:10px;padding:14px 0}.cast-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px;width:100%;padding-left:45px}.cast-color-label{display:flex;align-items:center;gap:6px;font-size:12px}.cast-color-label input{width:36px;height:32px;padding:2px;border:1px solid #d8b8ef;border-radius:8px}.portrait-upload{position:relative;overflow:hidden;display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;font-size:12px;cursor:pointer}.portrait-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.portrait-upload:focus-within{outline:3px solid #9865d8}
.script-scroll [data-entry]{position:relative}.beat-buttons [data-drag-entry]{touch-action:none;cursor:grab}.beat-buttons [data-drag-entry]:active{cursor:grabbing}.drop-before:before,.drop-after:after{content:'';height:4px;background:#9865d8;position:absolute;left:0;right:0;border-radius:4px;z-index:5}.drop-before:before{top:-5px}.drop-after:after{bottom:-5px}.entry-dragging{opacity:.5}.dragging-entry{user-select:none}.dragging-entry .beat-buttons{opacity:1}.inline-form{display:flex;flex-direction:column;gap:8px;text-align:left;min-width:0}.inline-form>div{display:flex;gap:8px;flex-wrap:wrap}.inline-form input,.inline-form select{font:14px Nunito,sans-serif;padding:7px}.inline-form textarea{resize:vertical;min-height:88px;font-size:16px;max-height:45dvh}.inline-error{font:12px Nunito,sans-serif;color:#a3294f}.inline-editing>.beat-content>.beat-buttons,.inline-editing>.beat-buttons{display:none}.script-scroll .action-beat.inline-editing{width:min(650px,100%)}.inline-editing .action-text{font-style:normal}.entry-presence{display:block;font:10px Nunito,sans-serif;background:#ddf7e9;color:#267158;border-radius:8px;padding:3px 7px;width:fit-content;max-width:100%;position:absolute;right:0;top:-17px;pointer-events:none}.studio-viewer .beat-buttons{display:flex}.studio-viewer .beat-buttons button:not([data-beat=comment]):not([data-beat=copy]){display:none}
.history-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px}.history-list{display:flex;flex-direction:column;gap:9px;max-height:60dvh;overflow:auto;padding:3px 7px 7px 0}.history-list .button{text-align:left;flex:none}.history-list small{display:block;font:11px Nunito,sans-serif;margin-top:5px}.history-preview{min-width:0}.script-preview{margin-top:16px;max-height:60dvh;overflow:auto;background:#fff;padding:18px;border:1px solid #ded2ec;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}.preview-line{margin:16px 15px;text-align:center}.preview-line small{display:block}.preview-line p{margin-top:3px}.preview-action{font-style:italic}.import-preview{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.import-preview section{border-top:1px solid #ded2ec;padding-top:8px}.suggestion-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}.suggestion-compare>div{background:#fff;padding:10px;border:1px solid #dac4eb;border-radius:9px;min-width:0}.suggestion-compare p{font-family:'Courier New',monospace;white-space:pre-wrap;overflow-wrap:anywhere}.suggestion-compare del{background:#ffe0e7;color:#80233c}.suggestion-compare ins{background:#d8f5e3;color:#175637;text-decoration:none}.suggestion-compare small{font-weight:700}.line-comment{padding:13px 0;border-top:1px solid #ded2ec}.line-comment small{display:block;color:var(--muted);font-size:11px}.line-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.line-comment.resolved{opacity:.65}.comment-list{margin-bottom:20px;max-height:40dvh;overflow:auto}
@media(max-width:820px){.app-shell,.main{height:var(--studio-vh,100dvh);min-height:0}.sidebar{height:var(--studio-vh,100dvh);bottom:auto}.sidebar.open{overscroll-behavior:contain}.sidebar-foot{flex:none}.studio-focus .topbar .mobile-menu{display:block}.composer,.studio-focus .composer{min-height:180px;padding-bottom:max(9px,env(safe-area-inset-bottom))}.feature-dialog{max-height:calc(var(--studio-vh,100dvh) - 20px)}.mobile-keyboard .topbar{height:44px;min-height:44px;padding-top:4px;padding-bottom:4px}.mobile-keyboard .composer,.mobile-keyboard.studio-focus .composer{height:var(--composer-height,230px);min-height:220px}.mobile-keyboard .live-strip{display:none}.composer-foot{padding-top:0}.script-scroll{scroll-padding-bottom:12px}.feature-form input,.feature-form select,.studio-modal select,.modal input,.modal textarea{font-size:16px}}
@media(max-width:600px){.composer,.studio-focus .composer{height:var(--composer-height,248px);min-height:220px;max-height:none;padding:17px 10px max(10px,env(safe-area-inset-bottom))}.compose-head{display:grid;grid-template-columns:1fr 1.1fr 1.3fr;gap:4px;flex:none;margin-bottom:7px}.compose-head .tab,.studio-focus .compose-head .tab{min-width:0;min-height:32px;padding:6px 4px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compose-head #pairLabel{display:block;overflow:hidden;text-overflow:ellipsis}.composer .editor-meta,.studio-focus .composer .editor-meta{display:grid!important;grid-template-columns:60px minmax(0,1fr);gap:1px 6px;padding:4px 8px;min-height:62px}.composer .editor-meta[style*="none"]{display:none!important}.editor-meta label{font-size:9px}.editor-meta select,.editor-meta input{font-size:16px;max-width:100%;width:100%;min-width:0;min-height:26px;padding:1px 0}.editor-meta .divider{display:none}.composer .editor-box textarea,.studio-focus .composer .editor-box textarea{font-size:16px;min-height:44px;line-height:1.4;padding:7px 9px}.composer-foot,.studio-focus .composer-foot{min-height:36px;align-items:center;margin-top:6px;justify-content:flex-end}.composer-foot .hint{display:none}.composer-foot .button,.studio-focus .composer-foot .button{font-size:12px;min-height:34px;padding:6px 11px}.composer-resize{height:16px;font-size:16px}.composer-resize:before,.composer-resize:after{width:35px}.composer-collapsed .composer .compose-head{display:grid}.composer-collapsed .composer .composer-foot{display:flex}.composer-collapsed .composer .editor-meta{display:grid!important}.composer-collapsed .composer .editor-meta[style*="none"]{display:none!important}.script-scroll .beat-buttons{display:flex;gap:2px}.script-scroll .beat-buttons button{font-size:10px;padding:7px 6px;min-height:30px;touch-action:manipulation}.script-scroll .beat-buttons [data-drag-entry]{touch-action:none}.script-scroll .beat-content{min-width:0;max-width:calc(100% - 34px);flex:1}.script-scroll .bubble{overflow-wrap:anywhere}.feature-dialog{padding:17px;width:95vw;border-radius:17px}.feature-dialog h3{font-size:21px}.history-layout{grid-template-columns:minmax(0,1fr)}.history-list{max-height:150px}.script-preview{max-height:48dvh}.suggestion-compare{grid-template-columns:1fr}.cast-controls{padding-left:0}.export-scope select{font-size:16px}.sidebar .side-tool{min-height:36px;padding:7px 9px}.sidebar .save-mini{display:none}.studio-viewer .composer{display:none}.entry-presence{font-size:9px;top:-14px}}
.entry-more{position:relative;font:10px Nunito,sans-serif}.entry-more summary{cursor:pointer;list-style:none;min-height:25px;min-width:30px;display:flex;align-items:center;justify-content:center;color:#80658f;border-radius:7px}.entry-more summary::-webkit-details-marker{display:none}.entry-more summary:hover,.entry-more summary:focus-visible{background:#eee1ff}.entry-more .entry-extra{position:absolute;right:0;top:100%;min-width:115px;background:#fff;border:1px solid #dac4eb;border-radius:10px;padding:5px;box-shadow:2px 3px 0 #30234422;z-index:15}.entry-more .entry-extra button{display:block;text-align:left;width:100%;font-size:11px;min-height:29px;color:#684298}.entry-more:not([open])>.entry-extra{display:none}.beat:has(.entry-more[open]) .beat-buttons,.action-beat:has(.entry-more[open]) .beat-buttons{opacity:1;pointer-events:auto}.script-scroll [data-entry]:has(.entry-more[open]){z-index:16}.beat-buttons [data-drag-entry]{font-size:17px;padding:2px 6px;min-width:30px}.studio-viewer .entry-more{display:block}.studio-viewer .entry-extra button[data-beat=copy]{display:block}
@media(max-width:600px){.entry-more summary{min-height:30px;min-width:32px}.entry-more .entry-extra button{min-height:36px;font-size:12px}.script-scroll .action-beat .beat-buttons{margin-top:3px}.script-scroll .beat-buttons{align-items:center}.script-scroll .beat-buttons [data-drag-entry]{font-size:18px}}

@media(max-width:820px){.overlay{height:var(--studio-vh,100dvh);bottom:auto;padding:12px}.overlay .modal{max-height:calc(var(--studio-vh,100dvh) - 24px)}.toast{bottom:max(12px,env(safe-area-inset-bottom));right:12px}}
.settings-navigation{align-items:center}.feature-dialog .sync-conflict{font-size:13px;line-height:1.6}

/* Writing controls stay next to their entry; action height follows its text. */
.script-scroll .action-beat{max-width:min(650px,calc(100% - 58px))}
.script-scroll .action-beat>[data-drag-entry]{position:absolute;right:-33px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:28px;height:32px;padding:0;border:0;border-radius:8px;background:#fff9;color:#684298;font-size:20px;cursor:grab;touch-action:none}
.script-scroll .action-beat>[data-drag-entry]:active{cursor:grabbing}.script-scroll .action-beat>[data-drag-entry]:focus-visible{outline:2px solid #9865d8}
.settings-team{padding:20px 0 2px;margin-top:18px;border-top:1px solid #ded2ec}.studio-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.studio-team-member{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px;border:1px solid #dac4eb;border-radius:16px;background:#f3eaff}.studio-team-member .avatar{display:grid;place-items:center;background:#dfccf4}.studio-team-member small{color:#684298}.focus-exit{display:none}
@media(max-width:820px){
 .app-shell{position:fixed;top:var(--studio-vtop,0px);left:0;width:100%;height:var(--studio-vh,100dvh)}
 .topbar{justify-content:flex-start;padding-left:5px}.topbar #mobileMenu{order:-1;flex:0 0 34px;width:34px;margin:0;padding:0;align-self:center;text-align:center}.topbar .breadcrumb{margin-right:auto}
 .studio-focus .topbar{display:none}.studio-focus .focus-exit{display:grid;place-items:center;position:absolute;top:7px;right:9px;z-index:20;width:34px;height:34px;padding:0;border:1px solid #dac4eb;border-radius:50%;background:#fff;color:#684298;font:26px/1 Nunito,sans-serif;box-shadow:1px 2px 0 #30234422}.studio-focus .script-scroll{padding-top:42px}
 .mobile-keyboard .composer,.studio-focus.mobile-keyboard .composer{height:var(--composer-height,136px);min-height:0;flex:0 0 var(--composer-height,136px);padding:7px 9px 5px}
 .mobile-keyboard .composer-inner{height:100%;display:flex;flex-direction:column;gap:4px;min-height:0}.mobile-keyboard .composer-resize{display:none}
 .mobile-keyboard .composer .compose-head{display:flex;flex-wrap:nowrap;gap:3px;min-height:24px;margin:0;flex:none}.mobile-keyboard .compose-head .tab{min-height:24px;padding:2px 7px;font-size:10px}.mobile-keyboard .compose-head .caption{display:none}
 .mobile-keyboard .composer .editor-meta{display:none!important}.mobile-keyboard .composer .editor-box{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:12px}.mobile-keyboard .composer .editor-box textarea{height:auto;flex:1;min-height:0;max-height:none;padding:7px 9px;font-size:16px;resize:none}
 .mobile-keyboard .composer .composer-foot{display:flex;min-height:30px;padding:0;margin:0;flex:none;justify-content:flex-end}.mobile-keyboard .composer-foot .hint{display:none}.mobile-keyboard .composer-foot .button{min-height:28px;height:28px;padding:3px 10px;font-size:11px}
 .mobile-keyboard.keyboard-direction .composer .editor-meta{display:flex!important;flex:0 0 30px;min-height:30px;height:30px;padding:2px 8px;gap:5px}.mobile-keyboard.keyboard-direction .editor-meta label,.mobile-keyboard.keyboard-direction .editor-meta select,.mobile-keyboard.keyboard-direction .editor-meta .divider{display:none}.mobile-keyboard.keyboard-direction .editor-meta input{font-size:16px;min-width:0;width:100%;height:26px}
 .mobile-keyboard .scene-heading{display:none}.mobile-keyboard .script-scroll .dialogue-area{padding-top:8px}.studio-focus.mobile-keyboard .script-scroll{padding-top:42px}
}

.dialogue-segment{display:block;white-space:pre-wrap}.dialogue-segment+.dialogue-segment{margin-top:7px}.dialogue-parenthetical{font-style:italic;text-align:center;color:#74677e}.shared-speakers{flex:none;border:1px solid #dac4eb;border-radius:8px;padding:4px 7px;color:#684298;background:#f3eaff;font:11px Nunito,sans-serif}.inline-form select[multiple]{min-height:85px}@media(max-width:600px){.editor-meta .shared-speakers{grid-column:1/-1;font-size:10px;padding:2px 4px}.composer .editor-meta{min-height:79px}.mobile-keyboard.keyboard-direction .shared-speakers{display:none}}

@media(max-width:820px){.topbar .save-status{display:flex;flex:none;max-width:85px;font-size:9px;gap:4px}.topbar #saveLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-focus .topbar{display:none}}

.shared-item{display:block;text-decoration:none}.shared-item strong,.shared-item small{display:block;overflow:hidden;text-overflow:ellipsis}.shared-item small{font-size:10px;opacity:.7}.share-members{display:grid;gap:12px}.share-members label{display:flex;align-items:center;justify-content:space-between;gap:12px}.share-members select{font:16px Nunito,sans-serif;border:1px solid #dac4eb;border-radius:8px;padding:7px;background:#fff;color:#684298}#sharedItemsSection{max-height:230px;overflow:auto;border-top:1px solid #dac4eb;padding-top:12px}.studio-viewer .composer{display:none}

.script-scroll .unassigned-dialogue .bubble{background:#ededf0!important;border-color:#b9b9c1!important;color:#444}.unassigned-dialogue .avatar{background:#a7a7ad!important}.assign-character{border:1px solid #b9b9c1;border-radius:7px;padding:3px 7px;background:#eeeef1;color:#555;font:inherit;cursor:pointer}
/* Keep writing and Send in the same row, even when the composer is compressed. */
.composer .composer-inner{display:flex;flex-direction:column;min-height:0;height:100%}.composer .editor-box{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(32px,1fr);flex:1;min-height:0;overflow:visible}.composer .editor-meta{grid-column:1/-1;grid-row:1}.composer .editor-box textarea{grid-column:1;grid-row:2;width:100%;min-width:0;min-height:32px;height:100%;resize:none}.composer-send{grid-column:2;grid-row:2;display:flex;align-self:end;gap:5px;padding:5px}.composer-send .button{white-space:nowrap;min-height:32px;padding:5px 9px;font-size:11px}.composer .composer-foot{display:none!important}.pair-edit{border:0;background:transparent;color:#684298;padding:4px;cursor:pointer;flex:none}.speaker-picker{position:relative}.speaker-picker summary{cursor:pointer;border:1px solid #dac4eb;border-radius:9px;padding:7px 10px;list-style:none;font:14px Nunito,sans-serif;background:#fff}.speaker-picker summary:after{content:' ▾'}.speaker-checks{position:absolute;z-index:40;top:100%;left:0;right:0;max-height:220px;overflow:auto;background:#fff;border:1px solid #dac4eb;border-radius:9px;padding:8px;box-shadow:2px 3px 8px #30234425}.character-check,.feature-form label:has(input[type=checkbox])>span{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;min-height:32px;text-align:left}.character-check input[type=checkbox],.feature-form input[type=checkbox]{appearance:auto;width:16px!important;height:16px!important;min-width:16px;flex:0 0 16px;margin:0;padding:0}.speaker-checks .character-check span{flex:1}.pair-select select:disabled{opacity:.45;color:#999}.composer-collapsed .composer .compose-head,.composer-collapsed .composer .editor-meta{display:none!important}.composer-collapsed .composer .editor-box{grid-template-rows:minmax(32px,1fr)}.composer-collapsed .composer .editor-box textarea,.composer-collapsed .composer .composer-send{grid-row:1}.composer-collapsed .composer{padding:13px 9px 5px}.composer-collapsed .composer-send .button{min-height:28px;height:28px}.composer .compose-head{min-width:0}
@media(max-width:820px){.composer,.studio-focus .composer{min-height:64px}.mobile-keyboard .composer .editor-box{display:grid}.mobile-keyboard .composer .editor-box textarea{min-height:32px}.mobile-keyboard .composer-send{padding:3px}.mobile-keyboard .composer-send .button{min-height:28px;height:28px}.composer .compose-head{display:flex;flex-wrap:nowrap}.compose-head #pairToggle{flex:1;min-width:0}.compose-head .tab{padding:4px;font-size:10px}.pair-edit{padding:3px}.composer .editor-box textarea{min-height:32px}}

.pair-controls{display:inline-flex;align-items:center;gap:2px;flex:0 1 auto;min-width:0}.pair-controls #pairToggle{flex:0 1 auto;margin:0;padding-right:2px;min-width:0}.pair-controls .pair-edit{margin:0;padding:2px 3px}.direction-trigger{border:0;background:transparent;color:#74677e;font:700 10px Nunito,sans-serif;cursor:pointer;white-space:nowrap;padding:3px}.white-workspace,.white-workspace .app-shell,.white-workspace .main,.white-workspace .script-scroll,.white-workspace .dialogue-area{background:var(--workspace-background,#fff)!important;color:#302344}.white-workspace #pastel-water,.white-workspace .script-scroll:before,.white-workspace .script-scroll:after{display:none!important}.white-workspace .transcript-guide{color:var(--workspace-guide,#302344)}.white-workspace .transcript-guide:before,.white-workspace .transcript-guide:after{background:var(--workspace-guide,#302344);opacity:.3}.white-workspace .scene-heading{background:#f6f0fc!important}@media(max-width:600px){.compose-head .pair-controls{flex:1;min-width:0}.compose-head .pair-controls #pairToggle{flex:0 1 auto}.direction-trigger{text-align:left;font-size:9px}}

.inline-direction-field{position:relative;display:block;min-width:0}.inline-form .inline-direction-field input{padding-right:36px}.inline-direction-field .direction-trigger{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:26px;height:26px;padding:0;text-align:center;font-size:14px;border-radius:6px}.inline-direction-field .direction-trigger:hover,.inline-direction-field .direction-trigger:focus-visible{background:#f3eaff;color:#684298}
/* Compact transcript entries keep a precise gap without hidden toolbar space. */
body[data-density=compact] #dialogueList{display:flex;flex-direction:column;gap:.6px}
body[data-density=compact] #dialogueList>.beat,body[data-density=compact] #dialogueList>.action-beat{margin-top:0;margin-bottom:0}
body[data-density=compact] #dialogueList .beat-content{position:relative}
body[data-density=compact] #dialogueList .beat-content>.beat-buttons{position:absolute;right:0;bottom:calc(100% + 2px);margin:0;background:#fff;border-radius:8px;z-index:4;opacity:0;pointer-events:none}
body[data-density=compact] #dialogueList .beat:hover .beat-content>.beat-buttons,body[data-density=compact] #dialogueList .beat:focus-within .beat-content>.beat-buttons{opacity:1;pointer-events:auto}
body[data-density=compact] #dialogueList .bubble,body[data-density=compact] #dialogueList>.action-beat{box-shadow:none}
/* Match the next dialogue's speaker-label space above an intervening action. */
body[data-density=compact] #dialogueList>.beat+.action-beat{margin-top:calc(var(--dialogue-size,14px) * 1.6 + 3px)}

.breakdown-link{border:0;background:transparent;color:#684298;font:inherit;text-decoration:underline;cursor:pointer;padding:0}.breakdown-controls{display:flex;gap:12px;flex-wrap:wrap}.breakdown-controls label{display:flex;flex:1;min-width:120px;flex-direction:column;gap:5px;font-size:12px;font-weight:700}.breakdown-controls select{min-width:0;width:100%;border:1px solid #d8b8ef;background:#fff;color:#302344;border-radius:9px;padding:8px;font:14px Nunito,sans-serif}.breakdown-table{width:100%;border-collapse:collapse;font-size:14px}.breakdown-table th,.breakdown-table td{padding:10px 6px;border-bottom:1px solid #e8d8f6;text-align:right}.breakdown-table th:first-child{text-align:left;overflow-wrap:anywhere}.breakdown-note{font-size:11px!important;color:#74677e;line-height:1.5}

.composer .script-jump{position:absolute;right:max(24px,calc((100% - 840px)/2));bottom:calc(100% + 10px);top:auto;display:flex;flex-direction:row;gap:8px;z-index:17}.script-jump button{display:grid;place-items:center;width:36px;height:36px;padding:7px;border:2px solid #684298;border-radius:50%;background:#eee1ff;color:#684298;box-shadow:0 3px 0 #b99bd3;cursor:pointer}.script-jump svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.script-jump button:hover,.script-jump button:focus-visible{background:#fff0b4;outline:2px solid #9865d8;outline-offset:2px}.script-jump button:active{transform:translateY(2px);box-shadow:0 1px 0 #b99bd3}@media(max-width:600px){.composer .script-jump{right:15px;bottom:calc(100% + 8px)}}@media print{.script-jump{display:none!important}}

.mobile-composer-speakers,.mobile-action-label,.mobile-entry-toggle{display:none}
@media(max-width:820px){
 .topbar #saveLabel{display:none}.topbar .save-status{flex:0 0 auto;min-width:8px;gap:0}.topbar .breadcrumb{display:flex;flex-direction:column;flex:1;min-width:0;margin:0;white-space:normal;gap:2px;line-height:1.2}.topbar .breadcrumb strong,.topbar .breadcrumb .chev{display:none}.breadcrumb .crumb-episode,.breadcrumb .crumb-scene{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.topbar{flex-wrap:nowrap;gap:6px}.topbar .button{padding:5px 8px;min-height:32px;font-size:11px}
 .composer .compose-head,.mobile-keyboard .composer .compose-head{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;min-height:32px;gap:4px;align-items:center;scrollbar-width:none;touch-action:pan-x}.compose-head::-webkit-scrollbar{display:none}.composer .compose-head>.tab,.composer .compose-head>.direction-trigger{flex:none;min-height:28px;padding:3px 6px;font-size:10px;white-space:nowrap}.composer .compose-head .mobile-composer-speakers{display:block;max-width:90px;overflow:hidden;text-overflow:ellipsis;background:#f3eaff;border:1px solid #dac4eb;border-radius:8px;text-align:left}.composer .compose-head .caption{display:none}.composer .compose-head .pair-controls{flex:none;max-width:180px}.compose-head .pair-controls #pairToggle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-action-label{display:none}.mobile-action-label{display:inline}.composer .editor-meta,.mobile-keyboard.keyboard-direction .composer .editor-meta{display:none!important}
 .script-scroll [data-entry] .beat-buttons{opacity:0!important;pointer-events:none!important}.script-scroll [data-entry].mobile-actions-open .beat-buttons{opacity:1!important;pointer-events:auto!important}.script-scroll [data-entry].inline-editing .beat-buttons{display:none!important}.mobile-entry-toggle{display:block;position:absolute;top:0;right:0;border:0;border-radius:8px;padding:2px 6px;min-height:26px;min-width:30px;background:#f5eeff;color:#684298;font:700 12px Nunito,sans-serif;z-index:5;cursor:pointer;touch-action:pan-y}.action-beat>.mobile-entry-toggle{right:-30px;top:0}.inline-editing .mobile-entry-toggle{display:none}.mobile-actions-open .mobile-entry-toggle{background:#e4d7ff}
}

@media(max-width:820px){.script-scroll .mobile-entry-toggle{display:grid;place-items:center;width:30px;height:28px;min-width:30px;padding:0;border:0;background:transparent;box-shadow:none;color:#80658f}.mobile-entry-toggle svg{display:block;width:18px;height:18px;fill:currentColor;pointer-events:none}.script-scroll .mobile-entry-toggle:focus-visible{outline:1px solid #9865d8;outline-offset:0}.script-scroll .mobile-entry-toggle[aria-expanded=true]{background:#eee1ff66}.script-scroll .action-beat>.mobile-entry-toggle{top:0;right:0}.script-scroll .action-beat .beat-buttons{position:absolute;right:0;bottom:calc(100% + 4px);margin:0;padding:3px 5px;background:#fff;border:1px solid #ded2ec;border-radius:9px}.script-scroll .action-beat>[data-drag-entry]{background:transparent}}
.example-dialog .example-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.example-heading small{font:700 10px Nunito,sans-serif;letter-spacing:1.5px;color:#9277a6}.example-heading h3{margin:5px 0}.example-dialog .example-intro{font-size:13px;color:#74677e}.example-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.example-tabs button{flex:1;min-width:130px;padding:9px;border:1px solid #dac4eb;border-radius:12px;background:#f3eaff;color:#684298;font:500 13px Fredoka,sans-serif;cursor:pointer}.example-tabs button[aria-selected=true]{background:#fff0b4;border:2px solid #684298}.example-tabs button:focus-visible{outline:2px solid #9865d8;outline-offset:2px}.example-summary h4{font:600 24px Fredoka,sans-serif;margin:6px 0}.example-summary p{font-size:13px}.example-tags{display:flex;flex-wrap:wrap;gap:6px}.example-tags span{padding:4px 8px;border-radius:20px;background:#eee1ff;color:#684298;font:11px Nunito,sans-serif}.example-tips,.example-toolkit{margin:16px 0;padding:12px;border:1px solid #dac4eb;border-radius:12px;background:#fff}.example-tips summary,.example-toolkit summary{cursor:pointer;font:600 14px Fredoka,sans-serif;color:#684298}.example-tips li,.example-toolkit dd{font:13px/1.65 Nunito,sans-serif;margin:10px 0}.example-tips ul{padding-left:18px}.example-toolkit dt{font:700 13px Nunito,sans-serif;margin-top:14px;color:#684298}.example-toolkit dd{margin-left:0}.example-script{padding:10px 0}.example-scene>header{margin:20px 0;padding:13px 16px;border:1px solid #dac4eb;border-radius:16px;background:#f0e3ff}.example-scene>header small{font:700 10px Nunito,sans-serif;letter-spacing:1px;color:#9277a6}.example-scene>header h4{margin:5px 0;font:600 20px Fredoka,sans-serif;color:#684298}.example-scene>header p{margin:0;font:12px 'Courier Prime',monospace;color:#684298}.example-dialog .example-script .beat{margin:0 0 18px;gap:10px}.example-dialog .example-script .beat-content{margin:0;min-width:0}.example-script .avatar{display:grid;place-items:center;flex:none;width:30px;height:30px;background:var(--character-color);border-radius:10px;color:#302344}.example-script .bubble{padding:10px 13px;background:color-mix(in srgb,var(--character-color) 14%,white);border-color:color-mix(in srgb,var(--character-color) 38%,white);font:14px/1.6 'Courier Prime',monospace;overflow-wrap:anywhere}.example-script .speaker{font-size:12px}.example-script .emotion{font-size:11px}.example-dialog .example-script .action-beat{width:fit-content;max-width:90%;height:auto;min-height:0;margin:18px auto;padding:9px 16px;text-align:center}.example-script .action-label{font-size:9px;font-weight:700;color:#a27d69;letter-spacing:1px;text-transform:uppercase}.example-script .action-text{font:italic 13px/1.6 'Courier Prime',monospace;white-space:pre-wrap;font-weight:400}.example-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}.example-pager span{font:12px Nunito,sans-serif;color:#9277a6}@media(max-width:600px){.example-dialog{width:94vw;max-width:94vw;padding:16px}.example-tabs{gap:5px}.example-tabs button{min-width:0;font-size:11px;padding:8px 5px}.example-script .bubble{font-size:13px;padding:9px 10px}.example-dialog .example-script .action-beat{max-width:94%;padding:9px 12px}.example-heading h3{font-size:22px}}
.example-dialog .example-close-row{justify-content:flex-end}.example-close-row+.example-tabs{margin-top:0}.example-story-header{margin:18px 0 0}.example-story-header h3{margin:4px 0}.example-story-header p{margin:0}
