:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans,Yu Gothic,sans-serif;color:#181818;background:#f2f2f2;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{background:#f2f2f2;color:#181818}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit}input,textarea,select{width:100%;border:1px solid #d8d8d8;border-radius:9px;padding:10px 11px;background:#fff;color:#181818;outline:none}input:focus,textarea:focus,select:focus{border-color:#111;box-shadow:0 0 0 3px #00000012}button{border:1px solid #d6d6d6;border-radius:9px;padding:9px 12px;background:#fff}button:hover{background:#f8f8f8;border-color:#aaa}button:disabled{cursor:not-allowed;opacity:.45}.eyebrow{margin:0;color:#777;font-size:10px;font-weight:800;letter-spacing:.18em}.muted{color:#848484}.service-home{min-height:100vh}.home-header{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:48px;align-items:end;padding:72px clamp(24px,7vw,92px) 64px;background:#fff;border-bottom:1px solid #ddd}.home-header h1{margin:9px 0 0;font-size:clamp(40px,6vw,78px);line-height:.98;letter-spacing:-.055em}.home-header h1 span{color:#666}.home-lead{display:grid;gap:22px}.home-lead p{margin:0;max-width:470px;color:#555;font-size:16px;line-height:1.8}.primary-link{display:inline-flex;width:max-content;min-height:46px;align-items:center;padding:0 17px;background:#171717;border:1px solid #171717;border-radius:10px;color:#fff;text-decoration:none;font-weight:800}.home-grid{width:min(1180px,calc(100% - 48px));margin:24px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.home-grid article,.home-section{background:#fff;border:1px solid #dedede;border-radius:14px}.home-grid article{padding:24px}.home-grid article>span{font-size:11px;color:#888}.home-grid h2{margin:28px 0 8px;font-size:24px}.home-grid p{margin:0;color:#606060;line-height:1.75}.home-section{width:min(1180px,calc(100% - 48px));margin:12px auto 0;padding:24px}.section-title h2{margin:4px 0 18px;font-size:26px}.home-announcement{display:grid;grid-template-columns:260px 1fr;gap:26px;padding:16px 0;border-top:1px solid #eee}.home-announcement h3{margin:0 0 6px;font-size:16px}.home-announcement small{color:#888}.home-announcement p{margin:0;color:#555;line-height:1.7}.empty-message{margin:0;color:#888}.download-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.download-grid>div{display:grid;gap:5px;padding:18px;border:1px solid #e2e2e2;border-radius:10px}.download-grid b{font-size:18px}.download-grid span{color:#666}.download-grid a{margin-top:8px;text-decoration:none;font-weight:750}.home-footer{width:min(1180px,calc(100% - 48px));margin:18px auto 0;padding:10px 0 34px;display:flex;justify-content:space-between;gap:20px;color:#777;font-size:12px}.home-footer nav{display:flex;gap:16px}.home-footer a{text-decoration:none}.home-footer a:hover{text-decoration:underline}.consent-page{min-height:100vh;display:grid;place-items:center;padding:24px}.consent-card{width:min(620px,100%);background:#fff;border:1px solid #ddd;border-radius:16px;padding:32px;box-shadow:0 12px 40px #0000000f}.consent-card h1{margin:8px 0 12px;font-size:32px}.consent-card>p{color:#555;line-height:1.8}.consent-links{display:flex;gap:15px;margin:20px 0}.consent-links a{font-weight:700}.check-row{display:flex;align-items:center;gap:9px;margin:11px 0}.check-row input{width:auto}.primary-button{width:100%;margin-top:12px;background:#171717;color:#fff;border-color:#171717}.studio{min-height:100vh;display:grid;grid-template-rows:auto auto 1fr auto}.studio-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 18px;background:#171717;color:#fff}.brand-block{display:flex;align-items:center;gap:10px;font-size:13px}.brand-link{font-weight:850;text-decoration:none}.studio-divider{color:#777}.studio-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.studio-actions button,.file-button{min-height:36px;padding:0 11px;border-radius:8px}.studio-actions button{background:#fff;color:#171717;border-color:#fff}.file-button{display:inline-flex;align-items:center;border:1px solid #555;color:#fff;background:#242424;cursor:pointer}.file-button input{display:none}.project-bar{display:flex;gap:14px;align-items:center;padding:10px 18px;background:#fff;border-bottom:1px solid #ddd}.project-title{width:min(430px,45vw);border:0;padding:6px 0;font-size:18px;font-weight:800;border-radius:0}.project-title:focus{box-shadow:none;border-bottom:1px solid #111}.project-status{font-size:11px;color:#8a8a8a;white-space:nowrap}.project-tools{margin-left:auto;display:flex;align-items:center;gap:10px}.active-toggle{background:#171717;color:#fff;border-color:#171717}.autosave-label{display:flex;align-items:center;gap:6px;font-size:11px;color:#666;white-space:nowrap}.autosave-label input{width:auto}.editor-layout{min-height:0;display:grid;grid-template-columns:245px minmax(0,1fr);background:#ededed}.editor-layout.with-preview{grid-template-columns:245px minmax(0,1fr) minmax(320px,.72fr)}.editor-sidebar{min-width:0;overflow:auto;padding:14px;background:#fafafa;border-right:1px solid #d8d8d8}.side-section{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid #e3e3e3}.side-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.side-heading h2,.side-section>h2{margin:0;font-size:12px;letter-spacing:.04em}.small-button{width:26px;height:26px;padding:0}.marker-palette{display:grid;gap:5px;margin-bottom:9px}.marker-palette button{display:grid;gap:2px;text-align:left;padding:8px 9px}.marker-palette b{font-size:11px}.marker-palette span{font-size:10px;color:#777}.marker-entry,.outline-entry{display:flex;align-items:center;width:100%;gap:9px;margin:4px 0;padding:7px 8px;border:0;background:transparent;text-align:left}.marker-entry:hover,.outline-entry:hover{background:#eee}.marker-dot{width:8px;height:8px;border-radius:50%;flex:none;background:#888}.marker-scene{background:#555}.marker-kp{background:#222}.marker-secret{background:#777}.marker-ho{background:#aaa}.marker-check{background:#444}.marker-note{background:#999}.marker-entry span:nth-child(2){min-width:0;display:grid}.marker-entry b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.marker-entry small{font-size:9px;color:#999}.outline-entry{font-size:11px;color:#444}.depth{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;background:#e3e3e3;font-size:9px;color:#777}.outline-entry{padding-left:3px}.outline-entry:has(.depth-2){padding-left:11px}.outline-entry:has(.depth-3){padding-left:20px}.info-section label{display:grid;gap:5px;margin-top:9px;font-size:10px;color:#777}.info-section input{font-size:11px}.side-empty{margin:0;color:#999;font-size:11px;line-height:1.6}.side-warning{margin:10px 0 0;font-size:10px;color:#b24c4c}.source-pane,.preview-pane{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto 1fr auto;background:#fff}.preview-pane{border-left:1px solid #d8d8d8}.pane-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:0 15px;border-bottom:1px solid #e5e5e5;background:#fff}.pane-header div{display:flex;align-items:baseline;gap:9px}.pane-header b{font-size:12px}.pane-header span,.pane-meta{font-size:10px;color:#999}.format-toolbar{display:flex;gap:4px;padding:7px 10px;border-bottom:1px solid #e8e8e8;overflow-x:auto}.format-toolbar button{flex:none;min-width:32px;padding:6px 8px;border:0;border-radius:6px;font-size:11px}.format-toolbar button:hover{background:#eee}.fullmd-editor{min-height:0;height:100%;border:0;border-radius:0;padding:22px 24px;resize:none;background:#fff;color:#202020;font-family:SFMono-Regular,Consolas,Liberation Mono,Yu Gothic UI,monospace;font-size:14px;line-height:1.8;tab-size:2}.fullmd-editor:focus{box-shadow:none}.editor-hint{padding:7px 13px;border-top:1px solid #eee;font-size:10px;color:#999}.markdown-preview{min-height:0;overflow:auto;padding:24px 26px 40px;line-height:1.8}.markdown-preview h2{margin:0 0 14px;font-size:27px;letter-spacing:-.03em;border-bottom:1px solid #e6e6e6;padding-bottom:9px}.markdown-preview h3{margin:28px 0 9px;font-size:20px}.markdown-preview h4{margin:22px 0 7px;font-size:16px}.markdown-preview p{margin:9px 0;color:#3f3f3f}.markdown-preview ul{padding-left:1.35em}.markdown-preview li{margin:4px 0;color:#3f3f3f}.markdown-preview blockquote{margin:14px 0;padding:10px 13px;border-left:3px solid #bbb;background:#f7f7f7;color:#666}.markdown-preview pre{overflow:auto;padding:13px;border-radius:9px;background:#f1f1f1}.markdown-preview code{font-family:SFMono-Regular,Consolas,monospace}.scenario-marker{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:16px 0;padding:9px 11px;border:1px dashed #c7c7c7;border-radius:8px;background:#fafafa;color:#444}.scenario-marker span{font-size:11px;font-weight:800}.scenario-marker small{font-size:9px;letter-spacing:.08em;color:#999;text-transform:uppercase}.scenario-marker-secret{background:#f3f3f3}.scenario-marker-kp{border-left:3px solid #333}.scenario-marker-check{border-left:3px solid #777}.studio-footer{display:flex;gap:13px;align-items:center;padding:10px 15px;background:#171717;color:#aaa;font-size:10px}.studio-footer a{text-decoration:none}.studio-footer a:hover{color:#fff}.legal-page{min-height:100vh;padding:28px 16px;background:#f2f2f2}.legal-shell{width:min(900px,100%);margin:0 auto}.legal-header{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:14px;padding:10px 0}.legal-header h1{margin:5px 0 0;font-size:38px}.legal-back{padding:9px 12px;border:1px solid #d4d4d4;border-radius:9px;background:#fff;text-decoration:none;font-weight:700}.legal-content{background:#fff;border:1px solid #ddd;border-radius:14px;padding:clamp(20px,4vw,40px);box-shadow:0 7px 24px #00000009}.legal-content h2{margin:29px 0 9px;padding-top:5px;border-top:1px solid #eee;font-size:20px}.legal-content p,.legal-content li{color:#444;line-height:1.9}.legal-content blockquote{margin:20px 0 0;padding:12px 14px;background:#f7f7f7;border-left:3px solid #bbb;color:#666}.legal-shell>footer{padding:14px 2px;color:#888;font-size:11px}@media(max-width:1000px){.home-header{grid-template-columns:1fr;padding-top:54px}.home-grid{grid-template-columns:1fr}.editor-layout.with-preview{grid-template-columns:220px minmax(0,1fr)}.preview-pane,.project-status{display:none}}@media(max-width:720px){.home-header{padding:42px 20px}.home-header h1{font-size:44px}.home-grid,.home-section{width:calc(100% - 24px)}.home-footer{width:calc(100% - 24px);flex-direction:column}.home-announcement{grid-template-columns:1fr;gap:7px}.download-grid{grid-template-columns:1fr}.studio-header{align-items:flex-start;flex-direction:column}.studio-actions{width:100%}.project-bar{flex-wrap:wrap}.project-title{width:100%}.project-tools{width:100%;margin-left:0}.editor-layout,.editor-layout.with-preview{grid-template-columns:1fr}.editor-sidebar{max-height:240px;border-right:0;border-bottom:1px solid #d8d8d8}.source-pane{min-height:560px}.legal-header{align-items:flex-start;flex-direction:column}.legal-back{width:100%;text-align:center}}@media(max-width:480px){.home-header h1{font-size:36px}.home-lead p{font-size:14px}.primary-link{width:100%;justify-content:center}.studio-footer{flex-wrap:wrap}}.template-modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:24px;background:#00000085}.template-modal{width:min(1080px,100%);max-height:min(88vh,850px);overflow:auto;padding:26px;border-radius:18px;background:#fff;box-shadow:0 26px 90px #00000040}.template-modal-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.template-modal-head h2{margin:5px 0 8px;font-size:27px}.template-modal-head p{margin:0;color:#666;line-height:1.7}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-card{display:grid;grid-template-columns:180px minmax(0,1fr);gap:17px;padding:11px;text-align:left;border:1px solid #ddd;border-radius:13px;background:#fff}.template-card:hover{border-color:#999;background:#fff}.template-card.selected{border:2px solid #171717;padding:10px}.template-thumb{min-height:220px;overflow:hidden;border:1px solid #d9d9d9;border-radius:9px;background:#fff}.template-thumb-cover{display:grid;align-content:center;justify-items:center;gap:8px;min-height:130px;padding:15px;text-align:center}.template-thumb-cover span{font-size:8px;letter-spacing:.18em;opacity:.65}.template-thumb-cover b{font-size:17px;line-height:1.05}.template-thumb-cover small{font-size:8px;opacity:.55}.template-thumb-body{padding:12px;border-top:1px solid #ddd}.template-thumb-body strong{display:block;font-size:11px}.template-thumb-body p{margin:7px 0 0;font-size:9px;line-height:1.5;color:#666}.template-card-copy{display:grid;align-content:center;gap:6px}.template-card-copy strong{font-size:20px}.template-card-copy>span{font-size:10px;color:#888}.template-card-copy p{margin:2px 0 0;color:#666;font-size:12px;line-height:1.7}.markdown-preview{background:#fff}.scenario-cover{min-height:400px;display:grid;align-content:center;justify-items:center;gap:13px;margin:-24px -26px 34px;padding:45px 30px;text-align:center;border-bottom:1px solid #ddd}.scenario-cover .cover-kicker{font-size:9px;letter-spacing:.28em;color:#777;font-weight:800}.scenario-cover h1{margin:8px 0;font-size:40px;line-height:1.06;letter-spacing:-.04em}.cover-author{margin:0;font-size:13px;color:#666}.scenario-cover small{font-size:10px;color:#888}.cover-brand{margin-top:35px;font-size:9px;letter-spacing:.16em;color:#999}.template-classic .scenario-cover{background:#fff}.template-classic .scenario-cover h1{padding-bottom:15px;border-bottom:3px solid #181818}.template-classic h2{border-bottom:3px solid #181818}.template-classic h3{position:relative;padding-left:13px}.template-classic h3:before{content:"";position:absolute;left:0;top:.3em;width:3px;height:1.1em;background:#181818}.template-archive .scenario-cover{background:#f7f6f1}.template-archive .scenario-cover h1{font-family:Georgia,Yu Mincho,serif;font-weight:700}.template-archive .scenario-cover:after{content:"ARCHIVE";font-size:9px;letter-spacing:.3em;color:#999}.template-archive h2{padding-bottom:8px;border-bottom:1px solid #888}.template-archive h3{font-family:Georgia,Yu Mincho,serif}.template-noir .scenario-cover{background:#171717;color:#fff;border-bottom:0}.template-noir .scenario-cover .cover-kicker,.template-noir .cover-author,.template-noir .scenario-cover small,.template-noir .cover-brand{color:#bbb}.template-noir .scenario-cover h1{font-size:46px}.template-noir h2{background:#171717;color:#fff;padding:9px 11px}.template-noir h3{border-left:4px solid #171717;padding-left:10px}.template-noir blockquote{background:#ededed;border-left-color:#171717}.template-novel .scenario-cover{min-height:500px;background:#fbfaf7}.template-novel .scenario-cover h1{max-width:8em;font-family:Georgia,Yu Mincho,serif;font-size:48px;line-height:1.15;font-weight:500}.template-novel .scenario-cover .cover-kicker{letter-spacing:.38em}.template-novel h2{font-family:Georgia,Yu Mincho,serif;font-weight:600;border-bottom:1px solid #ccc}.template-novel p{line-height:2}.template-novel h3{font-family:Georgia,Yu Mincho,serif;font-weight:600}.template-classic.template-thumb{background:#fff}.template-archive.template-thumb{background:#f7f6f1}.template-noir.template-thumb{background:#171717;color:#fff}.template-novel.template-thumb{background:#fbfaf7}.template-noir .template-thumb-body{border-top-color:#333}.template-noir .template-thumb-cover{background:#171717}.template-novel .template-thumb-body,.template-novel .template-thumb-cover{font-family:Georgia,Yu Mincho,serif}@media(max-width:800px){.template-modal{padding:19px}.template-grid{grid-template-columns:1fr}}@media(max-width:520px){.template-modal-backdrop{padding:10px}.template-card{grid-template-columns:1fr}.template-thumb{min-height:180px}.template-thumb-cover{min-height:105px}.scenario-cover{min-height:330px;margin:-20px -17px 25px}.scenario-cover h1{font-size:32px}}.toolbar-separator{width:1px;height:22px;margin:0 4px;background:#ddd}.page-break-button,.pdf-button{font-weight:800}.paper-preview{min-height:100%;padding:28px;background:#d8d8d8;overflow:auto}.paper-page{position:relative;box-sizing:border-box;width:210mm;min-height:297mm;margin:0 auto 24px;padding:18mm 17mm 19mm;background:#fff;color:#202020;box-shadow:0 3px 18px #00000024;overflow:hidden}.paper-page-content{min-height:0}.paper-page-number{position:absolute;left:17mm;right:17mm;bottom:8mm;padding-top:3mm;border-top:1px solid #ddd;text-align:center;font-size:8px;color:#999}.paper-page .scenario-cover{min-height:260mm;margin:-18mm -17mm 15mm;padding:25mm 17mm;box-sizing:border-box}.paper-page .scenario-cover h1{font-size:34px}.paper-page .markdown-preview,.paper-page-content{line-height:1.85}.paper-page-content h1{margin:0 0 18px;font-size:30px}.paper-page-content h2{margin:25px 0 12px;font-size:23px}.paper-page-content h3{margin:20px 0 8px;font-size:17px}.paper-page-content p{margin:8px 0}.paper-page-content img{max-width:100%;height:auto}.paper-page-content table{width:100%;border-collapse:collapse;margin:14px 0;font-size:12px}.paper-page-content th,.paper-page-content td{border:1px solid #bbb;padding:6px 8px;text-align:left}.paper-page-content pre{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #ddd;border-radius:4px}.paper-page-content blockquote{break-inside:avoid}@media(max-width:1200px){.paper-preview{padding:18px}.paper-page{transform-origin:top center}}@media(max-width:720px){.paper-preview{padding:12px}.paper-page{width:100%;min-height:141.42857vw;padding:7vw 6vw 8vw}.paper-page .scenario-cover{min-height:calc(100vw * 1.4142857 - 15vw);margin:-7vw -6vw 7vw;padding:12vw 6vw}.paper-page-number{left:6vw;right:6vw;bottom:3vw}}@media print{@page{size:A4 portrait;margin:0}html,body,#root{width:210mm;margin:0;background:#fff!important}.studio{display:block;min-height:0}.studio-header,.project-bar,.editor-sidebar,.source-pane,.studio-footer{display:none!important}.editor-layout,.editor-layout.with-preview{display:block;min-height:0;background:#fff}.preview-pane{display:block!important;border:0}.preview-pane>.pane-header{display:none}.paper-preview{display:block;padding:0;background:#fff;overflow:visible}.paper-page{width:210mm;min-height:297mm;height:297mm;margin:0;padding:18mm 17mm 19mm;box-shadow:none;overflow:hidden;page-break-after:always;break-after:page}.paper-page:last-child{page-break-after:auto;break-after:auto}.paper-page .scenario-cover{min-height:260mm}.template-modal-backdrop{display:none!important}}@media(min-width:1001px){.editor-layout.with-preview{grid-template-columns:minmax(0,44%) minmax(0,56%)}.editor-layout.with-preview .editor-sidebar{display:none}.editor-layout.with-preview .source-pane{border-right:1px solid #d8d8d8}.editor-layout.with-preview .preview-pane{border-left:0}}.marker-toolbar{display:flex;align-items:center;gap:7px;padding:7px 10px;border-bottom:1px solid #e8e8e8;background:#fff;overflow-x:auto;white-space:nowrap}.marker-chip{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:30px;padding:4px 9px;border:1px solid #ddd;border-radius:999px;background:#fff;color:#454545;font-size:11px}.marker-chip:hover{border-color:#aaa;background:#f8f8f8}.outline-chip{margin-left:auto;flex:none;padding:5px 8px;color:#999;font-size:10px}@media(max-width:1000px){.editor-layout.with-preview{grid-template-columns:minmax(0,1fr)}.editor-layout.with-preview .editor-sidebar{display:none}}.paper-preview{box-sizing:border-box;min-width:0;min-height:100%;overflow:auto;padding:24px;background:#e5e3df;display:flex;flex-direction:column;align-items:center;gap:24px}.paper-page{box-sizing:border-box;flex:none;width:auto;height:min(297mm,calc(100% - 48px));aspect-ratio:210 / 297;margin:0;padding:18mm 17mm 19mm;overflow:hidden;max-width:calc(100% - 48px)}.paper-page-content{min-width:0;overflow-wrap:anywhere}.paper-page .scenario-cover{box-sizing:border-box;width:auto;min-height:0;height:100%;aspect-ratio:auto;margin:-18mm -17mm 15mm;padding:25mm 17mm}@media(max-width:720px){.paper-preview{padding:12px;gap:16px}.paper-page{width:calc(100% - 16px);height:auto;min-height:calc((100vw - 40px) * 1.4142857);max-width:none;aspect-ratio:210 / 297;padding:7vw 6vw 8vw}.paper-page .scenario-cover{margin:-7vw -6vw 7vw;height:auto;min-height:calc((100vw - 40px) * 1.4142857 - 15vw)}}@media print{.marker-toolbar{display:none!important}}
