/* Project-first adaptation: the original wizard and archive remain the source of truth. */
.cinema-workbench .projects-view{max-width:1256px;margin:0 auto;width:100%;padding:8px 36px 48px}
.project-home-toolbar,.project-search-row,.project-card-top,.project-card-foot,.project-card-progress,.project-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.project-home-toolbar{margin-bottom:26px}.project-home-toolbar h2{font-size:22px;margin:0 0 8px}.project-home-toolbar p,.project-note{font-size:12px;color:#92929e;margin:0;line-height:1.7}
.project-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.project-stats>div{background:linear-gradient(135deg,#202026,#19191f);border:1px solid #303039;border-radius:16px;padding:22px 26px}.project-stats span{display:block;color:#a3a3af;font-size:12px;margin-bottom:10px}.project-stats strong{font-size:32px;font-weight:500;letter-spacing:-1px;color:#eeeaf5}
.project-search-row{margin-bottom:12px}.project-search-row input{max-width:400px!important;height:40px}.project-note{min-height:24px;margin-bottom:16px}.project-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}.project-card{padding:23px;border-radius:16px;border:1px solid #32323b;background:#1b1b22;min-width:0;transition:border-color .25s,transform .25s}.project-card:hover{border-color:#6a607b;transform:translateY(-2px)}.project-card.is-current{border-color:#706481;background:linear-gradient(140deg,#282333,#1c1c23)}.project-card small{color:#94929f;font-size:11px}.project-book{display:grid;place-items:center;width:40px;height:44px;background:#35303f;color:#d6c4eb;font-size:26px;border-radius:9px}.project-card h2{font-size:18px;margin:20px 0 9px;overflow-wrap:anywhere}.project-card p{color:#9e9aa9;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-card-progress{font-size:11px;padding:16px 0 19px;color:#c0b6cf}.project-card-foot{border-top:1px solid #ffffff0c;padding-top:15px;flex-wrap:wrap}.project-card-foot button{white-space:nowrap}.project-empty{grid-column:1/-1;border:1px dashed #43404e;border-radius:16px;padding:55px;text-align:center;color:#b7b0c5}.project-empty p{font-size:13px;color:#92909e}
.project-create-form{padding:24px;border:1px solid #6c5c80;background:#24202d;border-radius:16px;margin-bottom:24px;display:grid;grid-template-columns:minmax(100px,150px) minmax(160px,1fr) auto;gap:16px;align-items:center}.project-create-form p{grid-column:1/-1;margin:0;color:#c3b0d8;font-size:12px}.project-create-form[hidden]{display:none}
.project-context-bar{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:12px;width:min(calc(100% - 72px),1184px);margin:0 auto 20px;padding:14px 16px;background:#1d1c24;border:1px solid #33303d;border-radius:12px}.project-context-bar[hidden]{display:none}.project-context-bar input{width:220px!important;max-width:40%;font-weight:600}.project-context-bar span{font-size:11px;color:#aaa4b5;flex:1;min-width:160px}
.cinema-workbench .project-adaptation-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:start}.project-directory{background:#1a1921;border:1px solid #302d3a;border-radius:14px;padding:20px 14px;position:sticky;top:0;max-height:calc(100dvh - 260px);overflow:auto}.project-kicker{font-size:9px;letter-spacing:1.6px;color:#8f819f}.project-directory h2{font-size:16px;line-height:1.6;margin:8px 0 20px;overflow-wrap:anywhere}.project-directory nav{display:flex;flex-direction:column;gap:6px}.cinema-workbench .project-directory nav button{display:flex;justify-content:flex-start;gap:12px;border:1px solid transparent;background:transparent;color:#94909f;text-align:left;padding:11px;border-radius:8px;font-size:11px}.project-directory nav strong{font-weight:500;font-size:12px}.cinema-workbench .project-directory nav button.is-active{background:#383040;border-color:#6b577b;color:#f0e2ff}.project-directory nav button:disabled{opacity:.38}.project-directory nav button.is-complete:not(.is-active){color:#c2b3d3}.project-directory-heading{border-top:1px solid #ffffff0c;margin-top:22px;padding:18px 2px 12px;font-size:12px}.project-directory-heading small{font-size:10px;color:#93899f}.cinema-workbench .project-episode{display:flex;align-items:flex-start;flex-direction:column;gap:5px;width:100%;background:transparent;border:0;border-radius:7px;color:#a8a0b3;padding:10px;text-align:left;margin:3px 0}.project-episode span{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.project-episode small{font-size:10px;color:#8c8498}.cinema-workbench .project-episode.has-draft{background:#24212b;color:#e2d6ef}.project-directory-empty,.project-directory-tools p{font-size:11px;line-height:1.7;color:#8f879c}.project-directory-tools{margin-top:22px;border-top:1px solid #ffffff0c;padding-top:16px}.project-directory-tools button{width:100%}.project-writing-area{min-width:0}.project-writing-area .novel-wizard-nav{display:none!important}.project-writing-area .novel-wizard{margin-bottom:14px}.project-writing-area .novel-step{border-radius:14px!important}.project-writing-area .novel-step-head{align-items:flex-start;gap:12px}.project-writing-area .novel-step-head p{max-width:640px;line-height:1.7}.project-writing-area textarea{border-radius:10px!important}
@media(max-width:1050px){.cinema-workbench .project-adaptation-layout{grid-template-columns:185px minmax(0,1fr);gap:14px}.project-create-form{grid-template-columns:1fr}.project-context-bar span{flex-basis:100%}}
@media(max-width:760px){.project-home-toolbar{align-items:flex-start}.project-stats{gap:8px}.project-stats>div{padding:16px 12px}.project-stats strong{font-size:26px}.project-search-row{align-items:stretch;flex-direction:column}.cinema-workbench .project-adaptation-layout{display:flex;flex-direction:column}.project-directory{position:static;width:100%;max-height:280px}.project-directory nav{display:grid;grid-template-columns:repeat(2,1fr)}.project-writing-area{width:100%}.project-context-bar input{max-width:60%;flex:1}.project-create-form{padding:16px}}
@media(prefers-reduced-motion:reduce){.project-card{transition:none}.project-card:hover{transform:none}}
.cinema-workbench .project-episode.is-current{box-shadow:inset 2px 0 #bc9ddd;background:#352c42}
.project-card-foot{flex-wrap:wrap;gap:8px}.project-card-foot>small{flex:1 1 100%}
.cinema-workbench .project-delete{color:#df9d97;border-color:#654541}
.project-trash{margin-top:25px;border-top:1px solid #38313f;padding-top:18px;color:#aaa2b5;font-size:12px}
.project-trash>summary{cursor:pointer;color:#d7c4a5;padding:8px 0}
.project-trash>p{line-height:1.8}.project-trash-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #302b36}
.project-trash-row>span{overflow-wrap:anywhere;min-width:0}.project-trash-row>button{flex-shrink:0}
@media(max-width:1179.98px){.cinema-workbench .projects-view{padding-inline:24px}.project-context-bar{width:calc(100% - 48px)}}
@media(max-width:759.98px){.cinema-workbench .projects-view{padding-inline:14px}.project-context-bar{width:calc(100% - 28px)}.project-home-toolbar{flex-wrap:wrap}.project-cards{grid-template-columns:1fr}.project-stats span{font-size:10px}.project-context-bar input{width:160px!important}}
@media(max-width:759.98px){.project-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.project-stats>div{min-width:0;padding:12px 8px}.project-stats span{line-height:1.5;min-height:30px;overflow-wrap:anywhere}.project-stats strong{font-size:24px}.project-empty{padding:28px 12px}.project-home-toolbar h2{font-size:19px}.project-search-row input{width:100%;min-width:0}.project-create-form{min-width:0;gap:12px}.project-create-form input{min-width:0;width:100%}.project-create-form .mini-actions{flex-wrap:wrap}.project-create-form p{overflow-wrap:anywhere}.project-context-bar input{max-width:100%;min-width:0}.project-context-bar span{min-width:0;overflow-wrap:anywhere}}
