:root{--bg:#f5f4ef;--paper:#fffefa;--ink:#283c37;--muted:#738078;--line:#e1e5dd;--green:#315c4b;--mint:#edf2eb;--radius:18px;font-family:"Segoe UI","Yu Gothic UI","Meiryo",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,summary{cursor:pointer}button,input,textarea,select,a,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,summary:focus-visible,a:focus-visible,.zip-drop:focus-visible{outline:3px solid #8ba991;outline-offset:4px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #8ba991;outline-offset:2px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.topbar{height:78px;max-width:1160px;margin:auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between}.wordmark{color:var(--ink);text-decoration:none;font-size:20px;letter-spacing:-.6px;display:flex;align-items:baseline;gap:5px}.wordmark b{font-weight:650}.brand-dot{height:6px;width:6px;background:#c18464;border-radius:50%;margin-left:5px}.local-status{font-size:12px;color:var(--muted)}main{max-width:920px;margin:auto;padding:36px 32px 24px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}h1{font-size:27px;letter-spacing:.03em;margin:0;font-weight:600;line-height:1.5}.flow-counter{font-size:12px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.wizard-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:46px;gap:8px}.wizard-step{display:flex;align-items:center;gap:9px;border:0;border-bottom:2px solid var(--line);padding:13px 5px;background:none;color:var(--muted);text-align:left;min-width:0}.wizard-step strong{font-size:12px;font-weight:500;white-space:nowrap}.step-index{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e8ebe4;font-size:10px;flex:none;font-variant-numeric:tabular-nums}.wizard-step[aria-current="step"]{border-color:var(--green);color:var(--green)}.wizard-step[aria-current="step"] strong{font-weight:650}.wizard-step[aria-current="step"] .step-index{background:var(--green);color:white}.wizard-step.finished .step-index{background:#dce8db;color:var(--green)}.wizard-step:disabled{opacity:.62}.flow-heading{margin-bottom:25px}.flow-heading h2{font-size:25px;font-weight:600;letter-spacing:.02em;margin:0 0 10px;line-height:1.5}.flow-heading p{color:var(--muted);font-size:14px;line-height:1.9;margin:0;max-width:650px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-bottom:18px}h3{font-size:16px;font-weight:600;line-height:1.7;margin:0 0 20px}p{line-height:1.8}.field-hint{font-size:12px;line-height:1.8;color:var(--muted);margin:8px 0 0}.optional{font-size:11px;color:var(--muted);font-weight:400;margin-left:9px}label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}.field{min-width:0}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.label-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.label-row label{margin:0}.field-block{margin-top:28px}textarea,input[type="text"],input[type="number"],select{width:100%;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:#fcfcf8}textarea{display:block;resize:vertical;font-size:14px;line-height:1.9;padding:14px 16px;min-height:100px}textarea::placeholder,input::placeholder{color:#879389}input[type="text"],input[type="number"],select{font-size:14px;padding:12px 14px;min-height:46px}input[type="file"]{font-size:12px;max-width:100%}input[type="file"]::file-selector-button{padding:9px 12px;border:1px solid var(--line);border-radius:7px;margin-right:12px;background:var(--mint);color:var(--green);cursor:pointer}input[type="range"]{width:100%;accent-color:var(--green)}textarea[readonly]{background:#eceeea;color:#637269;border-color:#e1e4de}textarea:disabled{opacity:.7}.range-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}output{font-size:12px;color:var(--muted)}
.mood-fieldset{border:0;padding:0;margin:0;min-width:0}.mood-fieldset legend{font-size:15px;font-weight:600;padding:0}.mood-fieldset>.field-hint{margin:6px 0 16px}.mood-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mood-button{position:relative;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:11px;padding:18px 14px;background:#fafbf6;color:#5e7064;min-width:0;transition:background .15s,border-color .15s}.mood-button>svg{color:var(--mood-color);width:19px;height:19px}.mood-button strong{font-size:13px;font-weight:500;white-space:normal;line-height:1.6;min-width:0}.mood-button[aria-pressed="true"]{background:#e8f0e5;border-color:#87a384;color:var(--green)}.mood-button[aria-pressed="true"] strong{font-weight:650}.mood-button:hover{border-color:#9aaf96}.mood-check{margin-left:auto;width:15px;height:15px;flex:none}.mood-check svg{width:15px;height:15px;opacity:0}.mood-button[aria-pressed="true"] .mood-check svg{opacity:1}.selection-meta{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:12px;gap:10px}
summary{font-size:13px;color:#5d7568;line-height:1.8;list-style:none;display:flex;align-items:center;gap:8px;min-height:44px}summary::-webkit-details-marker{display:none}summary:before{content:'+';font-size:17px;font-weight:400;width:14px;flex:none;color:#829282}details[open]>summary:before{content:'−'}details summary:hover{color:var(--green)}.settings-details,.disclosure,.help-disclosure{border-top:1px solid var(--line);margin-top:20px;padding-top:8px}.details-body{display:flex;flex-direction:column;gap:20px;padding:14px 0 8px}.help-disclosure{margin:10px 0 24px;padding:8px 4px}.help-disclosure p,.disclosure>p{font-size:13px;color:var(--muted)}.instruction-list{font-size:13px;color:var(--muted);line-height:2;padding-left:22px;margin:10px 0}.instruction-list li{margin-bottom:6px}.world-card{padding:12px 0}.world-card h3{font-size:18px;margin:10px 0}.world-top{font-size:10px;color:var(--muted)}.world-moods{display:flex;gap:8px;font-size:11px;color:var(--muted)}.world-facts{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.world-facts span{font-size:11px;color:var(--muted)}.world-facts p{font-size:13px;margin:5px 0}.world-card>p{font-size:12px;color:var(--muted)}.palette{display:flex;gap:5px}.palette span{height:8px;width:34px;border-radius:8px}
.primary-button,.copy-button,.secondary-button,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;border-radius:10px;font-size:13px;line-height:1.6;padding:12px 20px;text-decoration:none;transition:background .15s;max-width:100%}.primary-button{background:var(--green);color:#fffefa;border:1px solid var(--green);font-weight:550}.primary-button:hover{background:#244736}.copy-button,.secondary-button{background:var(--mint);color:var(--green);border:1px solid #d9e2d6}.copy-button:hover,.secondary-button:hover{background:#e0eadc}.text-button{background:none;border:0;color:#5d7568;padding:8px 4px;min-height:40px}.text-button:hover{color:#254735;text-decoration:underline}button:disabled{cursor:default;opacity:.48}button:disabled:hover{transform:none}.helper-actions,.request-actions,.suno-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.request-toolbar h3{margin:8px 0 4px;font-size:17px}.destination-chip{font-size:11px;color:var(--muted)}.request-actions{margin-top:20px}.request-guide{font-size:13px;color:var(--muted);margin:14px 0 0}.request-panel #request-text{margin-top:10px;min-height:250px;font-size:12px}.request-panel .helper-actions{margin-top:12px}.request-panel .field-hint:empty{display:none}.request-details .field-hint{margin:0}.prompt-notice{font-size:13px;line-height:1.8;color:#8a663b;background:#faf2e4;border:1px solid #ebddc6;border-radius:10px;padding:12px 15px;margin:14px 0}.helper-report{font-size:12px;line-height:1.9;color:var(--muted);margin:12px 0}.helper-report:empty{display:none}.helper-report[data-error="true"]{color:#9a593e}.request-panel #request-notice{margin-top:18px}
.answer-import{border:0}.answer-import>summary{font-size:15px;color:var(--ink);font-weight:550}.answer-import textarea{margin-top:14px}.editor-heading{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin:24px 0 20px}.editor-heading h3{margin:0}.music-parts{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;margin-top:24px}.part-box{min-width:0}.part-box textarea{font-size:13px}.music-parts #lyrics{min-height:370px}.music-parts #song-styles{min-height:200px}.tagged-preview{margin-top:16px}.tagged-preview textarea{margin-top:10px}.confirm-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.suno-panel{background:#eef3e9}.suno-panel h3{margin-bottom:3px}.suno-actions{margin-top:20px}.suno-actions .copy-button{background:var(--paper);flex:1}.song-title-row{display:flex;align-items:center;gap:16px;font-size:13px}.suno-panel .disclosure{margin-top:14px}.mv-settings form{display:flex;flex-direction:column;gap:22px}.mv-settings h3{margin-bottom:24px}.checkbox-label{display:flex;align-items:center;gap:10px;font-size:13px;margin:0;font-weight:500;min-height:36px}.checkbox-label input{width:17px;height:17px;accent-color:var(--green);margin:0}.reference-field #reference-controls{margin-top:18px;padding:18px;background:#f5f7f0;border-radius:10px}.reference-preview{margin-top:15px}.reference-preview img{width:100px;height:110px;object-fit:contain;display:block;background:#e6ebdf;border-radius:8px;margin-bottom:10px}.reference-preview strong{font-size:12px;overflow-wrap:anywhere}.stage-source pre,pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.9 "Segoe UI","Yu Gothic UI",sans-serif;max-height:300px;overflow:auto}
.zip-drop{display:flex;flex-direction:column;align-items:center;gap:14px;padding:45px 20px;background:#f7f9f2;border:1.5px dashed #a3b598;border-radius:14px;text-align:center}.zip-drop>svg{width:32px;height:32px;color:#7c9474}.zip-drop strong{font-size:19px;font-weight:550;line-height:1.6}.zip-drop>span{font-size:13px;color:var(--muted);line-height:1.8}.zip-drop label{margin:10px 0 0;cursor:pointer}.zip-drop:focus-within{outline:2px solid #8ba991;outline-offset:3px}.manual-bundle label{margin:18px 0 10px}.video-row{border-top:1px solid var(--line);padding:18px 0;margin-top:18px}.video-row-header{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.video-row-header label{font-size:12px;margin:0}.video-row-header input{width:70px}.video-row-header span{font-size:11px;overflow-wrap:anywhere;color:var(--muted)}
.scene-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 22px}.scene-progress strong{font-size:14px;font-weight:550}.scene-progress span{font-size:12px;color:var(--muted)}.scene-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.scene-card{background:#fbfcf7;border:1px solid var(--line);border-radius:12px;min-width:0;align-self:start}.scene-summary{padding:14px;display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;list-style:none}.scene-summary:before{display:none}.scene-summary>img{grid-column:1/-1;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;border-radius:8px;background:#e7ece0}.scene-summary strong{font-size:12px;font-weight:550;display:block}.scene-summary small{font-size:11px;color:var(--muted);display:block;margin-top:4px}.scene-summary>span:last-child{font-size:17px;color:var(--muted)}.scene-content{padding:0 16px 18px}.scene-content>img,.scene-content video{width:100%;display:block;max-height:240px;object-fit:contain;border-radius:8px;background:#e7ece0}.scene-content textarea{font-size:12px}.scene-content label{font-size:12px;margin:14px 0 8px}.scene-content .helper-actions{gap:8px;margin:12px 0}.scene-content .copy-button,.scene-content .secondary-button{font-size:12px;padding:9px 12px}.scene-filename{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.scene-content video+.secondary-button{margin-top:12px}.scenes-panel>.help-disclosure{border:0;margin:0;padding:0}.scene-content input{max-width:100%}
.flow-navigation{display:flex;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:24px;margin-top:30px}.flow-navigation p{font-size:12px;color:var(--muted);line-height:1.8;flex:1;text-align:right;margin:0}.flow-navigation .primary-button{flex:none}.page-footer{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#829080;margin:45px 0 0;padding:18px 0 4px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;max-width:min(90vw,600px);background:#2e4f41;color:#fffefa;padding:14px 24px;border-radius:12px;font-size:13px;text-align:center;line-height:1.8;box-shadow:0 8px 30px #223e3226}
@media(max-width:700px){.topbar{height:65px;padding:0 24px}.local-status{display:none}main{padding:25px 20px 20px}h1{font-size:23px}.intro{margin-bottom:20px}.wizard-nav{gap:5px;margin-bottom:30px}.wizard-step{flex-direction:column;align-items:center;gap:7px;padding:10px 0}.wizard-step strong{font-size:11px}.flow-heading h2{font-size:22px}.flow-heading p{font-size:13px}.panel{padding:22px}.mood-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mood-button{padding:16px}.field-pair{gap:14px}.music-parts{grid-template-columns:1fr;gap:22px}.music-parts #lyrics{min-height:280px}.editor-heading{display:block}.editor-heading .field-hint{display:block}.scene-cards{grid-template-columns:1fr}.flow-navigation{gap:12px;flex-wrap:wrap}.flow-navigation p{order:3;flex-basis:100%;text-align:left}.flow-navigation .primary-button{margin-left:auto;font-size:12px;padding:12px 15px}.page-footer{font-size:10px;line-height:1.7}.scene-progress{align-items:flex-start;flex-direction:column}.zip-drop{padding:34px 16px}.zip-drop strong{font-size:17px}.confirm-row .primary-button{width:100%}.request-actions .primary-button{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(min-width:701px) and (max-width:850px){.mood-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Action cards and navigation layout; colors are themed in neon.css. */
:root{--advance:#b45731;--advance-hover:#974626}
.panel,.scene-card,.suno-panel{background:#fff}
.panel :is(.primary-button,.copy-button,.secondary-button,.text-button){background:var(--green);color:#fff;border:1px solid var(--green);text-decoration:none;min-height:44px;padding:10px 16px;border-radius:10px}
.panel :is(.primary-button,.copy-button,.secondary-button,.text-button):hover:not(:disabled){background:#244736;border-color:#244736;color:#fff;text-decoration:none}
.panel input[type="file"]::file-selector-button{background:var(--green);color:#fff;border-color:var(--green)}
.flow-navigation{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;position:sticky;bottom:0;z-index:15;background:#fff;padding:18px 22px;margin-top:30px;column-gap:18px}
#flow-back{grid-column:1;grid-row:1;justify-self:start}
#next-hint{grid-column:2;grid-row:1}
.advance-button{grid-column:3;grid-row:1;justify-self:end;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;max-width:100%;padding:13px 24px;border:1px solid var(--advance);border-radius:11px;background:var(--advance);color:#fff;font-size:14px;font-weight:600;line-height:1.6;box-shadow:0 4px 12px #99532d20;transition:background .15s}
.advance-button:hover:not(:disabled){background:var(--advance-hover);border-color:var(--advance-hover)}
.advance-button:disabled{background:#e3d7cc;color:#897666;border-color:#e3d7cc;opacity:1;box-shadow:none}
@media(max-width:700px){.flow-navigation{column-gap:12px;row-gap:10px;padding:14px 16px}#next-hint{grid-column:1/-1;grid-row:1;text-align:left}#flow-back{grid-row:2}.advance-button{grid-row:2;font-size:13px;padding:12px 18px;min-height:48px}}

/* One guide follows the current task; the character never covers the controls. */
.wizard-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.wizard-step{gap:12px;padding:16px 12px}
.wizard-step strong{font-size:16px;white-space:normal;line-height:1.6}
.step-index{width:28px;height:28px;font-size:12px}
@media(max-width:700px){.wizard-nav{gap:12px}.wizard-step{flex-direction:row;align-items:center;gap:9px;padding:12px 4px}.wizard-step strong{font-size:14px}.step-index{width:25px;height:25px}}
.character-guide{display:flex;align-items:center;gap:24px;margin:16px 0 26px}
.character-guide>img{width:132px;height:160px;object-fit:contain;flex:none}
.guide-bubble{position:relative;flex:1;min-width:0;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px 24px}
.guide-bubble:before{content:'';position:absolute;left:-9px;top:calc(50% - 9px);width:16px;height:16px;background:#fff;border-left:1px solid var(--line);border-bottom:1px solid var(--line);transform:rotate(45deg)}
.guide-bubble p{color:var(--ink);font-size:14px;line-height:1.95;white-space:pre-line;max-width:none;margin:0}
.answer-import.panel{margin-top:0;padding:24px 28px;background:#fff}
.answer-import.panel>summary:before{display:none}
.project-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:38px;padding:18px 22px}
.project-tools>span{font-size:12px;color:var(--muted);line-height:1.8}
.project-tools .helper-actions{justify-content:flex-end;gap:10px}
.project-tools button{font-size:12px;white-space:nowrap}
.project-dialog{width:min(90vw,500px);max-height:85vh;color:var(--ink);margin:auto;padding:30px}
.project-dialog::backdrop{background:#263b3659;backdrop-filter:blur(3px)}
.project-dialog p{font-size:14px;line-height:1.95}
.project-dialog .helper-actions{justify-content:flex-end;margin-top:24px}
.project-dialog h3{font-size:20px;margin-bottom:14px}
@media(max-width:700px){.character-guide{gap:14px;margin:12px 0 22px}.character-guide>img{width:90px;height:124px}.guide-bubble{padding:15px 17px;border-radius:14px}.guide-bubble p{font-size:13px;line-height:1.8}.answer-import.panel{padding:22px}.project-tools{flex-wrap:wrap;padding:18px}.project-tools .helper-actions{width:100%}.project-dialog{padding:24px}}
@media(max-width:700px){#settings-form>.field-pair{grid-template-columns:1fr;gap:20px}}
.choice-fieldset{border:0;padding:0;margin:0;min-width:0}
.choice-fieldset+.choice-fieldset{margin-top:20px}
.choice-fieldset legend{font-size:14px;font-weight:600;margin-bottom:10px;padding:0}
.choice-grid{display:flex;flex-wrap:wrap;gap:6px;max-height:148px;overflow-y:auto;padding:3px;scrollbar-width:thin;scrollbar-color:#9bada4 transparent;overscroll-behavior:contain}
.choice-panel-button{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;min-height:34px;max-width:100%;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:#fafbf6;color:var(--ink);line-height:1.5;transition:background .15s,border-color .15s}
.choice-panel-button strong{font-size:12px;font-weight:500;white-space:nowrap}
.choice-rank{display:inline-block;flex:none;width:12px;font-size:10px;text-align:center}
.choice-panel-button:hover{border-color:#87a384}
.choice-panel-button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff}
.choice-panel-button:focus-visible{outline:3px solid #b5c9bc;outline-offset:1px}
.choice-fieldset .selection-meta{margin-top:7px}
@media(max-width:700px){.choice-panel-button{min-height:38px;padding:6px 10px}.choice-fieldset+.choice-fieldset{margin-top:18px}.choice-fieldset .selection-meta{font-size:10px}}
