.generation-workspace{--gw-bg:#1b1c21;--gw-panel:#23252c;--gw-border:#383b42;--gw-muted:#7c8997;color:#f4fbff;max-width:1200px;margin:0 auto;padding:20px 24px 24px;min-height:calc(100vh - 150px)}
.generation-workspace .gw-history-scopes{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 12px}.generation-workspace .gw-history-scopes button,.generation-workspace [data-gw-history-refresh],.generation-workspace .gw-history-search-form button,.generation-workspace .gw-history-pagination button{min-height:34px;padding:7px 12px;border:1px solid #3e4857;border-radius:8px;background:#232b37;color:#d6e2f3;font-size:12px}.generation-workspace .gw-history-scopes button.active{background:#3b4a61;border-color:#829fc6;color:#fff}.generation-workspace .gw-history-search-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.generation-workspace .gw-history-search-form input{flex:1;min-width:180px;margin:0;padding:10px 12px;background:#1b1f27;border:1px solid #3b4554;border-radius:8px;color:#e2ebf7;font-size:13px}.generation-workspace .gw-history-note{font-size:11px;color:#94a5bc;line-height:1.7;margin:12px 0}.generation-workspace .gw-history-feedback{min-height:18px;color:#a9d9ca;font-size:12px;line-height:1.7}.generation-workspace .gw-history-feedback.error{color:#efb6b4}.generation-workspace .gw-history-empty{padding:35px 15px;text-align:center;color:#98a8bd;font-size:13px}.generation-workspace .gw-history-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin:24px 0;font-size:12px;color:#aebed2}.generation-workspace .gw-history-pagination select{margin-left:7px;padding:6px 8px;border:1px solid #414d61;border-radius:7px;background:#252d3a;color:#dfebfa}.generation-workspace [data-gw-history-favorite][aria-pressed=true]{color:#f1d28d;border-color:#796d4b}.generation-workspace [data-gw-history-trash]{color:#dba9aa}.generation-workspace [data-gw-history-restore]{color:#abddcd}
.generation-workspace button,.generation-workspace input,.generation-workspace select,.generation-workspace textarea{font:inherit}.generation-workspace button{cursor:pointer}.generation-workspace button:disabled{cursor:not-allowed;opacity:.45}.generation-workspace button:focus-visible,.generation-workspace input:focus-visible,.generation-workspace select:focus-visible,.generation-workspace textarea:focus-visible{outline:2px solid #7ca8ff;outline-offset:2px}.generation-workspace button{background:transparent;border:0;color:inherit}.generation-workspace [hidden]{display:none!important}.gw-feed{max-width:1050px;margin:0 auto 28px}.gw-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.gw-feed-heading>div{display:flex;gap:15px;align-items:baseline}.gw-feed-heading h1{font-size:21px;font-weight:600;margin:0}.gw-feed-heading span,.gw-feed-heading input{font-size:12px;color:var(--gw-muted)}.gw-feed-heading input,.gw-picker-search,.gw-style-panel>input{border:1px solid var(--gw-border);border-radius:9px;background:var(--gw-bg);padding:10px 12px;color:#f4fbff;min-width:210px}.gw-history-filters,.gw-picker-tabs{display:flex;gap:6px;margin-top:18px;flex-wrap:wrap}.gw-history-filters button,.gw-picker-tabs button{padding:7px 13px;border-radius:8px;font-size:13px;color:var(--gw-muted)}.gw-history-filters button.active,.gw-picker-tabs button.active{background:#30343c;color:#f4fbff}.gw-welcome{text-align:center;padding:70px 12px 60px}.gw-welcome>span{display:block;font-size:50px;color:#bbd5fe}.gw-welcome h2{font-size:28px;font-weight:500;letter-spacing:1px}.gw-welcome p{color:#b1bbc7}.gw-welcome small{display:block;color:var(--gw-muted);font-size:12px}.gw-date{font-size:13px;font-weight:500;color:var(--gw-muted);margin:30px 0 12px}.gw-job{border:1px solid #2e3239;background:#17181d;border-radius:15px;padding:17px;margin:12px 0}.gw-job-top{display:flex;align-items:center;gap:10px;color:var(--gw-muted);font-size:12px;flex-wrap:wrap}.gw-job-top time{margin-left:auto}.gw-job-kind{border:1px solid #454c56;padding:2px 7px;border-radius:5px;color:#dce8fa}.gw-job-status{border-radius:5px;padding:2px 7px;background:#272d35}.gw-job-status.done{color:#9ce9c9;background:#17372c}.gw-job-status.failed{color:#ffacae;background:#442b2e}.gw-job-prompt{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:#e4e9f0;margin:14px 0;font-size:14px;max-height:180px;overflow:auto}.gw-job video{display:block;width:auto;max-width:100%;max-height:520px;border-radius:10px;background:#0d0e10}.gw-job audio{display:block;width:min(100%,520px);margin:20px 0}.gw-result-image{display:block;max-width:100%;max-height:540px;border-radius:9px;object-fit:contain}.gw-text-result{font:14px/1.9 inherit;white-space:pre-wrap;overflow-wrap:anywhere;max-height:440px;overflow:auto;padding:17px;background:#101115;border-radius:8px}.gw-result-message{padding:28px 12px;border-radius:8px;background:#1d2026;color:var(--gw-muted);text-align:center;font-size:13px}.gw-result-message.error{color:#ffb1b1}.gw-job-actions{display:flex;align-items:center;gap:7px;margin-top:13px;flex-wrap:wrap}.gw-job-actions button,.gw-job-more button,.gw-feedback>button{border:1px solid var(--gw-border);border-radius:7px;padding:6px 10px;font-size:12px;color:#c0cfdf}.gw-job-more{display:flex;gap:9px;align-items:center;margin-top:12px;border-top:1px solid #30343c;padding-top:12px;flex-wrap:wrap}.gw-job-more>span{color:var(--gw-muted);font-size:12px}.gw-feedback{margin-top:15px;border-top:1px solid var(--gw-border);padding-top:16px;font-size:13px}.gw-feedback p{color:var(--gw-muted)}.gw-feedback>div{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.gw-feedback label{display:flex;gap:5px;align-items:center}.gw-load-more{display:block!important;margin:25px auto;padding:9px 24px!important;border:1px solid var(--gw-border)!important;border-radius:9px}.gw-search-empty{text-align:center;padding:40px;color:var(--gw-muted)}.gw-composer-wrap{position:static;margin:0 auto 28px;width:100%;max-width:1050px;min-width:0}.gw-composer{border:1px solid var(--gw-border);border-radius:22px;background:rgba(31,33,39,.97);padding:14px 17px;box-shadow:0 12px 45px #0004;backdrop-filter:blur(24px)}.gw-composer.dragover{outline:2px solid #8cbaff;box-shadow:0 0 0 8px #81b1ff1a}.gw-type-tabs{display:flex;align-items:center;gap:3px;border-bottom:1px solid #383b4260;padding-bottom:11px}.gw-type-tabs button{padding:8px 13px;color:#8494a8;font-size:13px;border-radius:8px}.gw-type-tabs button.active{color:#f4fbff;background:#3a404d}.gw-type-tabs .gw-expand{margin-left:auto;font-size:19px;padding:3px 10px}.gw-reference-tools{display:flex;gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap}.gw-reference-tools button{padding:6px 9px;background:#30333b;border-radius:7px;font-size:12px;color:#c3d0e0}.gw-reference-tools>span{font-size:11px;color:var(--gw-muted);margin-left:auto}.gw-references{display:flex;gap:8px;min-height:42px;align-items:center;margin:10px 0;flex-wrap:wrap}.gw-empty-reference{font-size:12px;color:#6d7b8e}.gw-reference-chip{display:flex;align-items:center;gap:6px;position:relative;max-width:170px;background:#323641;border-radius:7px;padding:4px 5px;font-size:11px}.gw-reference-chip img,.gw-reference-chip>span:first-child{width:32px;height:32px;object-fit:cover;border-radius:4px;display:grid;place-items:center}.gw-reference-chip>span{max-width:95px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gw-reference-chip button{font-size:16px;line-height:1;padding:3px}.gw-composer textarea{display:block;width:100%;border:0;background:transparent;resize:vertical;min-height:88px;max-height:50vh;padding:5px 2px 12px;line-height:1.8;color:#f4fbff;font-size:14px;box-sizing:border-box}.gw-composer textarea.expanded{min-height:270px}.gw-composer textarea::placeholder{color:#788494}.gw-parameter-row{display:flex;align-items:flex-end;gap:7px;flex-wrap:wrap;margin-top:5px}.gw-control{display:flex;flex-direction:column;gap:4px;min-width:85px}.gw-control>span{font-size:10px;color:var(--gw-muted);padding-left:3px}.gw-control select{border:1px solid var(--gw-border);border-radius:8px;color:#e6edf7;background:#252830;padding:8px 24px 8px 9px;font-size:12px;max-width:218px}.gw-control select option{background:#252830}.gw-fixed-parameter{color:#96a4b6;font-size:12px;padding:9px}.gw-additional-row{display:flex;gap:13px;align-items:center;flex-wrap:wrap;font-size:12px;color:#a1b3ca;min-height:15px;margin-top:12px}.gw-additional-row>label:not(.gw-control){display:flex;align-items:center;gap:5px}.gw-additional-row input{accent-color:#a4c4ff;width:auto;margin:0}.gw-additional-row button{font-size:12px;color:#93a6c3}.gw-submit-row{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-top:10px}.gw-service-state{color:#d0a965;font-size:12px}.gw-service-state small{color:var(--gw-muted);display:block;margin-top:3px;font-size:10px}.gw-submit-row>button{width:37px;height:37px;border-radius:50%;background:linear-gradient(130deg,#4371fc,#b29be8 75%,#e5e5fb);font-size:25px;line-height:1;flex-shrink:0}.gw-picker,.gw-style-panel{background:#23252c;border:1px solid #414650;border-radius:18px;padding:19px;margin-bottom:12px;box-shadow:0 12px 40px #0008;max-height:480px;overflow:auto}.gw-panel-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px}.gw-panel-heading>button{font-size:24px;color:#9eafc2;padding:0 3px}.gw-picker-search{margin:14px 0;width:100%;box-sizing:border-box}.gw-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;max-height:240px;overflow:auto;padding:4px 2px}.gw-picker-item{display:flex!important;flex-direction:column;gap:5px;border:1px solid #424954!important;border-radius:9px;padding:8px!important;text-align:left;overflow:hidden;background:#1b1e25!important}.gw-picker-item.selected{border-color:#8bb5f4!important}.gw-picker-item img,.gw-picker-item>span:first-child{height:75px;width:100%;object-fit:cover;border-radius:4px;background:#30343b;display:grid;place-items:center;font-size:28px}.gw-picker-item>span:not(:first-child){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;font-size:12px}.gw-picker-item small{font-size:10px;color:#8193aa}.gw-picker-empty{grid-column:1/-1;min-height:100px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;color:#9cabbe;font-size:13px;padding:20px;text-align:center}.gw-picker-empty button{color:#9dc7ff;padding:8px 14px;border:1px solid var(--gw-border);border-radius:7px}.gw-picker-note{display:flex;gap:15px;align-items:center;justify-content:space-between;font-size:11px;color:#899aaf;border-top:1px solid var(--gw-border);margin-top:16px;padding-top:12px}.gw-picker-note button{color:#bdd7f8;border:1px solid var(--gw-border);border-radius:7px;padding:7px}.gw-style-panel>input{margin-top:18px;width:100%;box-sizing:border-box}.gw-picker-tabs>span{font-size:12px;padding:7px;color:#748092}.gw-frames{display:flex;gap:10px;align-items:center;margin:12px 0;flex-wrap:wrap}.gw-frame{display:flex;gap:8px;align-items:center;border:1px dashed #4b5260;border-radius:9px;padding:6px 9px;font-size:12px;color:#8fa3bd;min-height:40px}.gw-frame>button{font-size:12px;color:#c3d6f0}.gw-frames>small{font-size:11px;color:#7e8da0}.gw-file-input{display:none!important}@media(max-width:700px){.generation-workspace{padding:14px 2px}.gw-feed-heading{align-items:flex-start}.gw-feed-heading>div{display:block}.gw-feed-heading input{min-width:0;width:145px}.gw-welcome{padding:35px 10px}.gw-welcome h2{font-size:22px}.gw-composer-wrap{margin-bottom:24px}.gw-composer{padding:10px;border-radius:15px}.gw-type-tabs button{padding:7px;font-size:12px}.gw-control select{max-width:175px;font-size:11px}.gw-control{min-width:70px}.gw-reference-tools>span{display:none}.gw-parameter-row{gap:5px}.gw-job{padding:12px}.gw-job-top time{margin-left:0}.gw-job-actions button{font-size:11px;padding:5px 7px}.gw-picker{padding:12px}.gw-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.gw-picker-item img,.gw-picker-item>span:first-child{height:60px}.gw-picker-tabs{gap:0}.gw-picker-tabs button{font-size:11px;padding:7px 8px}.gw-picker-note{display:block;line-height:1.8}.gw-picker-note button{margin-left:10px}}
.generation-workspace .gw-reference-mention{display:block;max-width:100px;padding:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-size:11px;color:#d5e5fa}

.gw-feed-heading>div{flex-shrink:0}.gw-feed-heading h1{white-space:nowrap}.gw-feed-heading input{flex:1;max-width:360px;width:auto}

/* The editor and history share normal page flow, including short screens. */
.generation-workspace{min-width:0}
.generation-workspace>.gw-feed{width:100%;min-width:0;margin-bottom:28px}
.generation-workspace>.gw-composer-wrap{position:static;inset:auto;z-index:auto}
.generation-workspace .gw-composer{max-width:100%;box-shadow:0 8px 28px #0003;backdrop-filter:none}
.generation-workspace .gw-type-tabs{gap:4px;flex-wrap:wrap}
.generation-workspace .gw-type-tabs .gw-expand{min-height:32px;min-width:34px}
.generation-workspace .gw-parameter-row{gap:9px;margin-top:12px}
.generation-workspace .gw-control{min-width:88px;max-width:100%}
.generation-workspace .gw-control select{width:100%;max-width:100%;min-height:36px}
.generation-workspace .gw-submit-row{padding-top:13px;border-top:1px solid var(--gw-border)}
.generation-workspace .gw-reference-tools{margin-top:10px}
.generation-workspace .gw-reference-tools button{min-height:32px}
@media(max-width:700px){
  .generation-workspace .gw-feed-heading{flex-wrap:wrap;gap:10px}
  .generation-workspace .gw-feed-heading input{flex-basis:100%;width:100%;max-width:none}
  .generation-workspace .gw-parameter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .generation-workspace .gw-control{min-width:0}
  .generation-workspace .gw-fixed-parameter{grid-column:1/-1;padding:3px}
}
@media(max-width:430px){
  .generation-workspace .gw-parameter-row{grid-template-columns:1fr}
  .generation-workspace .gw-type-tabs button{padding:7px 9px}
}

.kg-draft-warning,.gw-archive-notice{padding:12px 14px;margin:12px 0;border:1px solid #72603d;border-radius:9px;background:#30291d;color:#e9d6a6;font-size:12px;line-height:1.7;overflow-wrap:anywhere;min-width:0}
.kg-draft-warning strong,.gw-archive-notice strong{display:block;font-size:13px}
.kg-draft-warning p{margin:6px 0;color:inherit}
.kg-draft-warning button{margin:5px 8px 0 0;padding:7px 10px;max-width:100%;white-space:normal}
.gw-archive-notice span{display:block}
.gw-archive-notice[data-state="done"]{border-color:#315d4d;background:#1b3028;color:#a4d5bf}
.gw-archive-notice[data-state="invalid"],.gw-archive-notice[data-state="deleted"]{border-color:#78474b;background:#38252a;color:#efb8bd}

/* Pricing remains visible before prompts are ready; only confirmed quotes enable submission. */
.kg-auto-price{display:flex;flex-direction:column;gap:3px;min-width:150px;color:var(--text,#eef1f6)}
.kg-auto-price strong{font-size:15px;font-weight:600}.kg-auto-price small{font-size:12px;color:var(--muted,#a8b1c0);line-height:1.5}
@media(max-width:640px){.kg-auto-price{flex-basis:100%}}

.kg-canvas-references .kg-graph-reference-error{color:var(--warning,#e6b46a);line-height:1.5}.kg-canvas-references [data-kg-prepare-graph]{margin:4px 0 8px}
