.idea-workflow-page{background:var(--paper)}
.flow-main{max-width:1540px;margin:0 auto;padding:34px 32px 48px}
.flow-introduction{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}
.flow-eyebrow{font-size:9px;letter-spacing:.22em;color:var(--gold);margin:0 0 12px}
.flow-introduction h2{font:32px/1.4 var(--serif);letter-spacing:.06em;margin:0 0 9px;font-weight:400}
.flow-introduction p:last-child{margin:0;color:var(--muted);font-size:12px;line-height:1.8}
.flow-preview-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);padding:9px 12px;font-size:11px;color:#b6a789;white-space:nowrap}
.flow-preview-badge>span{width:5px;height:5px;border-radius:50%;background:var(--gold);opacity:.7}
.flow-workspace{display:grid;grid-template-columns:236px minmax(0,1fr);border:1px solid var(--line);background:var(--panel);min-height:760px}
.flow-rail{min-width:0;padding:26px 20px;background:#0e0c09;border-right:1px solid var(--line)}
.flow-genre{margin:0 0 26px;padding:0;border:0;min-width:0}
.flow-genre legend{font-size:11px;color:var(--muted);margin-bottom:11px}
.flow-genre>div{display:flex;border:1px solid var(--line);padding:3px;gap:3px}
.flow-genre button{flex:1;min-height:37px;border:0;background:none;color:var(--muted);font-size:12px}
.flow-genre button[aria-pressed=true]{background:#c8a24a20;color:var(--gold-light)}
.flow-stage-list{padding:0;margin:0;list-style:none}
.flow-stage-list li{position:relative;padding-bottom:8px}
.flow-stage-list li:not(:last-child)::after{content:"";position:absolute;left:17px;top:41px;height:calc(100% - 34px);width:1px;background:#c8a24a30;pointer-events:none}
.flow-stage-button{width:100%;display:flex;align-items:center;gap:11px;padding:10px 7px 10px 0;text-align:left;border:0;background:transparent;border-radius:2px;min-height:65px}
.flow-stage-number{position:relative;z-index:1;display:grid;place-items:center;width:35px;height:35px;flex:none;border:1px solid #b2a48a40;background:#0e0c09;color:#aa9c7e;font:15px Georgia,serif}
.flow-stage-copy{display:flex;min-width:0;flex-direction:column;gap:6px}
.flow-stage-copy strong{font-size:13px;font-weight:400;color:#c4bba7;line-height:1.5}
.flow-stage-copy small{font-size:10px;color:#8f826c;line-height:1.4}
.flow-stage-button[aria-current=step] .flow-stage-number{color:#20190d;background:var(--gold-light);border-color:var(--gold-light)}
.flow-stage-button[aria-current=step] .flow-stage-copy strong{color:var(--gold-light)}
.flow-stage-button[data-status=stale] .flow-stage-copy small{color:#d9a586}
.flow-stage-button[data-status=skipped] .flow-stage-copy{opacity:.65}
.flow-stage-button:hover{background:#c8a24a09}
.flow-rail-note{font-size:10px;color:#8d8069;line-height:1.9;margin:23px 0 13px;padding-top:20px;border-top:1px solid var(--line)}
.flow-backup{font-size:10px;line-height:1.8;text-align:left}
.flow-editor{min-width:0;padding:32px 36px 24px}
.flow-stage-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.flow-step-caption{font:10px Georgia,serif;letter-spacing:.14em;color:var(--gold);margin:0 0 10px}
.flow-stage-heading h2{font:30px/1.5 var(--serif);font-weight:400;letter-spacing:.05em;margin:0;outline-offset:5px}
.flow-stage-status{font-size:10px;color:var(--muted);padding:5px 8px;border:1px solid var(--line);white-space:nowrap}
.flow-stage-description{color:var(--muted);font-size:12px;line-height:1.9;margin:12px 0 25px;max-width:780px}
.flow-input-section{min-width:0}
.flow-field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px;min-height:25px}
.flow-field-heading label{font-size:13px;line-height:1.7;color:#d4c8b2}
.flow-field-heading>span{font-size:10px;color:var(--muted)}
.flow-field-heading .text-button{font-size:11px;flex:none}
#ideaInput{min-height:290px;font-size:15px;background:#12100d;line-height:2}
#outputInput{min-height:390px;font-size:14px;background:#12100d;line-height:2}
.flow-essentials-mode{border:0;border-top:1px solid var(--line);margin:25px 0 0;padding:20px 0 0;min-width:0}
.flow-essentials-mode legend{font-size:12px;color:#c6b89a;padding:0 12px 0 0}
.flow-essentials-mode>p{font-size:11px;color:var(--muted);line-height:1.8;margin:0 0 13px}
.flow-essentials-mode label{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.8;margin:12px 0;cursor:pointer;width:fit-content}
.flow-essentials-mode input{width:16px;height:16px;accent-color:var(--gold);flex:none;padding:0;margin:0}
.flow-essentials-mode .flow-mode-note{color:#b19d73;margin:14px 0 0;font-size:10px}
.flow-essentials-fields{display:grid;grid-template-columns:1fr 1fr;gap:21px 20px;margin-top:24px}
.flow-essential label{display:block;font-size:12px;color:#d2c4a7;margin-bottom:9px}
.flow-essential textarea{min-height:96px;font-size:13px}
.flow-upstream{border:1px solid #c8a24a28;margin:0 0 25px;background:#0c0b08;min-width:0}
.flow-upstream summary{padding:13px 15px;font-size:11px;color:#bca982;cursor:pointer;line-height:1.8}
.flow-upstream pre{font:12px/1.9 var(--sans);color:#b1a691;white-space:pre-wrap;overflow-wrap:anywhere;max-height:250px;overflow:auto;margin:0;padding:0 16px 16px}
.flow-empty{font-size:12px;line-height:1.8;color:#817761;margin:0;padding:0 16px 15px}
.flow-prompt-state{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding-bottom:19px;margin-bottom:20px}
.flow-prompt-state>span{font-size:11px;color:var(--muted);line-height:1.8}
.flow-prompt-state button{font-size:12px;white-space:nowrap}
.flow-prompt-state button:disabled{opacity:.6}
.flow-stale,.flow-requirements{font-size:11px;line-height:1.9;color:#dab18d;background:#271b102e;border-left:2px solid #9f744b;padding:11px 14px;margin-bottom:22px;overflow-wrap:anywhere}
.flow-requirements{margin-top:21px;margin-bottom:0;color:#b7aa90;border-left-color:#7c6638;background:#c8a24a07}
.flow-stale .text-button{display:flex;margin-top:7px;font-size:11px}
.flow-stage-footer{display:flex;align-items:center;gap:18px;border-top:1px solid var(--line);padding-top:22px;margin-top:25px}
.flow-stage-footer>span{margin-left:auto;color:#a3916d;font-size:11px;line-height:1.8;text-align:right;max-width:220px}
.flow-stage-footer .gold-button{flex:none;min-width:112px}
.flow-reader-link{text-align:right;margin:15px 0 0;font-size:11px}
.flow-storage-notice{margin-inline:32px;overflow-wrap:anywhere}
.flow-storage-notice .text-button{margin-left:14px}
.idea-workflow-page .writer-project-bar .project-actions{gap:18px}
.idea-workflow-page .writer-project-bar .save-indicator{font-size:10px}
@media(min-width:1600px){.flow-main{padding-top:42px}.flow-editor{padding:36px 48px}.flow-workspace{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:1000px){.flow-main{padding:26px 22px 32px}.flow-workspace{grid-template-columns:208px minmax(0,1fr)}.flow-rail{padding:24px 15px}.flow-editor{padding:28px 23px}.flow-introduction h2{font-size:28px}.flow-preview-badge{font-size:10px;padding:8px}.flow-stage-copy strong{font-size:12px}.flow-stage-status{white-space:normal;max-width:130px;line-height:1.7}.flow-storage-notice{margin-inline:22px}}
@media(max-width:720px){.flow-main{padding:22px 12px 26px}.flow-introduction{align-items:flex-start;flex-direction:column;gap:16px;margin:0 3px 22px}.flow-introduction h2{font-size:27px}.flow-eyebrow{font-size:8px}.flow-preview-badge{font-size:10px}.flow-workspace{display:block;min-height:0}.flow-rail{padding:18px 15px 16px;border-right:0;border-bottom:1px solid var(--line)}.flow-genre{margin-bottom:17px}.flow-genre>div{max-width:220px}.flow-stage-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 9px}.flow-stage-list li{padding:0}.flow-stage-list li::after{display:none}.flow-stage-button{min-height:57px;padding:7px 5px;gap:9px;border:1px solid transparent}.flow-stage-button[aria-current=step]{border-color:var(--line);background:#c8a24a08}.flow-stage-number{width:28px;height:30px;font-size:12px}.flow-stage-copy{gap:3px}.flow-stage-copy strong{font-size:11px}.flow-stage-copy small{font-size:9px}.flow-rail-note{display:none}.flow-backup{margin-top:14px;font-size:10px}.flow-editor{padding:25px 17px 20px}.flow-stage-heading{align-items:flex-start;gap:12px}.flow-stage-heading h2{font-size:26px}.flow-stage-status{max-width:115px;font-size:9px;margin-top:6px}.flow-stage-description{font-size:11px;margin-bottom:22px}.flow-essentials-fields{grid-template-columns:1fr;gap:17px}.flow-essentials-mode label{font-size:11px}.flow-field-heading{align-items:flex-start;flex-wrap:wrap;gap:4px}.flow-field-heading label{font-size:12px}.flow-field-heading .text-button{font-size:10px}#ideaInput{min-height:260px;font-size:14px}#outputInput{min-height:360px;font-size:14px}.flow-prompt-state{gap:10px}.flow-prompt-state>span{font-size:10px}.flow-prompt-state button{font-size:11px;padding:8px 10px}.flow-stage-footer{gap:10px;flex-wrap:wrap}.flow-stage-footer>span{font-size:10px;max-width:140px}.flow-stage-footer .gold-button{min-width:100px;font-size:12px}.flow-stage-footer>.text-button{font-size:11px}.flow-storage-notice{margin-inline:12px}.flow-stage-footer>span:empty{display:none}.idea-workflow-page .project-actions{flex-wrap:wrap}.idea-workflow-page .project-actions .outline-button{flex:none}.flow-upstream pre{max-height:220px}}
@media(max-width:360px){.flow-stage-list{grid-template-columns:1fr}.flow-stage-button{min-height:49px}.flow-stage-copy{flex-direction:row;align-items:center;gap:10px}.flow-stage-footer>span{order:3;max-width:none;flex-basis:100%;text-align:left;margin:0}.flow-stage-footer .gold-button{margin-left:auto}}
.flow-mode-switch{display:flex;align-items:center;gap:16px;margin-bottom:20px;font-size:13px;color:var(--text-muted)}.flow-mode-switch select{font:inherit;color:var(--text);background:rgba(255,255,255,.64);border:1px solid rgba(101,138,185,.3);border-radius:9px;min-width:210px;padding:10px 12px}.flow-mode-switch select:focus-visible{outline:2px solid #658ab9;outline-offset:2px}
