.manga-editor{--red:var(--editor-accent,#df3826);--text:var(--editor-text,#252b34);--soft:var(--editor-text-muted,#7e8592);--line:var(--editor-border,#ececee);--blue:#4196ff;--orange:#f17629;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;background:var(--editor-input,#fff);color:var(--text);font-family:inherit;font-size:13px;line-height:1.5;min-height:0;flex:1 1;container-type:size}.manga-editor *{box-sizing:border-box}.manga-editor button{width:auto;margin:0;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:5px;background:transparent;border:1px solid transparent;border-radius:5px;color:inherit;font:inherit;cursor:pointer}.manga-editor button:hover:not(:disabled){background:var(--editor-hover,#f5f5f6)}.manga-editor button:disabled{opacity:var(--editor-disabled-opacity,.4);cursor:not-allowed}.manga-editor a:focus-visible,.manga-editor button:focus-visible,.manga-editor input:focus-visible,.manga-editor textarea:focus-visible{outline:2px solid var(--editor-focus,var(--blue));outline-offset:2px}.manga-editor .primary{background:var(--editor-primary,var(--red));color:white;border-color:var(--red);font-weight:700}.manga-editor .primary:hover:not(:disabled){background:var(--editor-primary-hover,#c82f20)}.manga-editor .secondary{background:var(--editor-surface,white);border:1px solid var(--editor-border,#e6e6e9);font-size:11px}.manga-editor .full-width{width:100%}.manga-editor .text-button{padding:8px 0;font-size:11px;color:var(--editor-text-muted,#687388)}.manga-editor .small-button{width:34px;height:36px;border-color:var(--editor-border,#ececef);padding:0;color:var(--editor-text-muted,#7a8391);font-size:20px}.manga-editor.editor-loading{align-items:center;justify-content:center;color:var(--editor-text-muted,#777)}:where(.manga-editor) .editor-top{flex:0 0 62px;display:flex;align-items:center;gap:20px;padding:0 21px;border-bottom:1px solid var(--editor-border,#ededee);background:var(--editor-surface,white);z-index:10}:where(.manga-editor) .editor-top strong{font-size:16px;letter-spacing:-.2px}:where(.manga-editor) .editor-top>span{color:var(--editor-text-muted,#7a8391);font-size:13px}.manga-editor .back-link{font-size:26px;line-height:1;color:var(--editor-text-muted,#7b8492);text-decoration:none}:where(.manga-editor) .save-status{display:inline-flex;gap:7px;align-items:center}:where(.manga-editor) .save-status i{width:7px;height:7px;border-radius:50%;background:var(--editor-surface-raised,#ccad51)}:where(.manga-editor) .save-status.saved i{background:var(--editor-surface-raised,#57a555)}:where(.manga-editor) .top-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.manga-editor .export-button{padding:10px 24px;letter-spacing:.5px;font-size:12px;min-height:37px}:where(.manga-editor) .export-wrap{position:relative}:where(.manga-editor) .export-menu{position:absolute;top:46px;right:0;width:max-content;min-width:210px;background:var(--editor-surface,white);border:1px solid var(--line);border-radius:7px;box-shadow:0 8px 30px #0002;padding:6px;z-index:50}:where(.manga-editor) .export-menu button{display:flex;width:100%;justify-content:flex-start;text-align:left;white-space:nowrap;font-size:12px}:where(.manga-editor) .editor-body{flex:1 1;min-height:0;display:grid;grid-template-columns:clamp(250px,19.4vw,380px) minmax(0,1fr) clamp(290px,19.4vw,390px)}:where(.manga-editor) .editor-body.left-collapsed{grid-template-columns:minmax(0,1fr) clamp(290px,19.4vw,390px)}:where(.manga-editor) .editor-body.right-collapsed{grid-template-columns:clamp(250px,19.4vw,380px) minmax(0,1fr)}:where(.manga-editor) .editor-body.left-collapsed.right-collapsed{grid-template-columns:minmax(0,1fr)}:where(.manga-editor) .editor-sidebar{min-width:0;background:var(--editor-surface,#fff);display:flex;flex-direction:column;min-height:0;z-index:3}:where(.manga-editor) .left-sidebar{border-right:1px solid var(--line)}:where(.manga-editor) .right-sidebar{border-left:1px solid var(--line)}:where(.manga-editor) .editor-tabs{display:flex;flex:0 0 50px;border-bottom:1px solid var(--editor-border,#f0f0f2)}.manga-editor .editor-tabs button{flex:1 1;border-radius:0;border:0;border-bottom:2px solid transparent;font-size:11px;color:var(--editor-text-muted,#7b8290);font-weight:600;letter-spacing:.25px}.manga-editor .editor-tabs button.active{border-bottom-color:var(--red);color:var(--red)}:where(.manga-editor) .sidebar-scroll{padding:16px 15px 35px;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:var(--editor-border,#bbb) transparent}.manga-editor p{margin:0 0 15px}.manga-editor .selected-label{color:var(--red);font-size:10px;letter-spacing:.6px;margin-bottom:6px;font-weight:600}.manga-editor .subtle{color:var(--soft);font-size:11px;line-height:1.65}.manga-editor .micro{font-size:10px;color:var(--soft);line-height:1.6;margin:7px 0 12px}:where(.manga-editor) .field-title{display:block;font-size:10px;font-weight:600;color:var(--editor-text-muted,#7a808d);margin:18px 0 9px;letter-spacing:.5px}:where(.manga-editor) .shape-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:8px}.manga-editor .shape-button{display:flex;min-width:0;flex-direction:column;min-height:clamp(50px,8cqh,72px);padding:5px 3px;background:var(--editor-surface-raised,#fafafa);border-color:var(--editor-border,#e9e9e9);border-radius:7px;gap:2px}:where(.manga-editor) .shape-button svg{width:28px;height:28px;color:var(--editor-text-muted,#636362)}:where(.manga-editor) .shape-button span{font-size:9px;font-weight:600}.manga-editor .shape-button.active{border:2px solid var(--editor-accent,#f34531);background:var(--editor-selected,#fcece7);color:var(--red);padding:4px 2px}:where(.manga-editor) .shape-button.active svg{color:var(--red)}:where(.manga-editor) .settings-block{display:block;padding:13px 14px;background:var(--editor-surface-raised,#f9f9f9);border-radius:7px;margin:16px 0}.manga-editor summary{cursor:pointer;font-size:11px;color:var(--editor-text,#333);font-weight:600}:where(.manga-editor) .settings-block summary span{float:right;color:var(--editor-text-muted,#84909d);font-size:10px;font-weight:400}:where(.manga-editor) .settings-block input[type=range]{width:100%;margin:15px 0 0;accent-color:var(--red)}:where(.manga-editor) .frame-readout{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:10px;color:var(--soft);margin:18px 0 10px}:where(.manga-editor) .frame-readout b{font-weight:400;color:var(--editor-text,#505967);margin-right:5px}:where(.manga-editor) .blue-dot,:where(.manga-editor) .orange-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--blue)}:where(.manga-editor) .orange-dot{background:var(--orange)}:where(.manga-editor) .button-row{display:flex;gap:8px}:where(.manga-editor) .section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}:where(.manga-editor) .section-heading b{font-size:10px;letter-spacing:.5px;color:var(--soft)}:where(.manga-editor) .asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-content:start}.manga-editor .asset-upload-category{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:10px;margin-top:6px}.manga-editor .asset-upload-category select{min-width:0;max-width:140px;border:1px solid var(--line);border-radius:4px;font:inherit;background:var(--editor-input,white);padding:4px}.manga-editor .asset-filters{flex-shrink:0;display:grid;gap:6px;padding:7px 0}.manga-editor .asset-categories{display:flex;flex-wrap:wrap;gap:4px}.manga-editor .asset-categories button{padding:4px 6px;font-size:10px;border:1px solid var(--line);background:var(--editor-surface-raised,#fafafa);border-radius:5px}.manga-editor .asset-categories button[aria-pressed=true]{background:var(--editor-selected,#fbeae7);color:var(--editor-accent,#d73928);border-color:var(--editor-accent,#d73928)}.manga-editor .asset-filters input{min-width:0;width:100%;padding:7px;border:1px solid var(--line);border-radius:5px;font:inherit;font-size:11px}.manga-editor .asset-empty{grid-column:1/-1;font-size:11px;color:var(--editor-text-muted,#747b87)}.manga-editor .asset-card{min-width:0;padding:5px;background:var(--editor-surface-raised,#fafafa);border-color:var(--line);flex-direction:column;gap:3px;line-height:1.2;cursor:grab}:where(.manga-editor) .asset-card img{width:100%;height:76px;object-fit:contain}:where(.manga-editor) .asset-card span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}:where(.manga-editor) .page-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.manga-editor .page-card{flex-direction:column;border-color:var(--line);background:var(--editor-surface-raised,#f8f8f8);padding:8px;font-size:11px}:where(.manga-editor) .page-card svg{width:100%;height:auto;border:1px solid var(--editor-border,#ddd)}.manga-editor .page-card.active{border-color:var(--red);color:var(--red)}:where(.manga-editor) .canvas-shell{min-width:0;min-height:0;background:var(--editor-workspace,#282828);position:relative;display:flex;flex-direction:column}:where(.manga-editor) .canvas-toolbar{flex:0 0 44px;display:flex;align-items:center;justify-content:space-between;padding:6px 18px;border-bottom:1px solid var(--editor-workspace-border,#ffffff0c);color:var(--editor-workspace-muted,#b0b0b0);font-size:10px}:where(.manga-editor) .mode-switch{display:flex;gap:3px}.manga-editor .mode-switch button{font-size:10px;padding:5px 8px;color:var(--editor-workspace-muted,#b9b9b9)}.manga-editor .mode-switch button.active{background:var(--editor-workspace-hover,#444);color:#fff}.manga-editor .mode-switch button:hover{background:var(--editor-workspace-hover,#3d3d3d)}:where(.manga-editor) .canvas-scroll{flex:1 1;overflow:auto;min-height:0;scrollbar-width:auto;scrollbar-color:var(--editor-workspace-border,#626262) var(--editor-workspace-border,#282828);overscroll-behavior:contain}:where(.manga-editor) .page-surround{padding:48px 60px 96px;display:flex;align-items:flex-start;justify-content:center}:where(.manga-editor) .editor-page{background:white;box-shadow:0 1px 8px #0003;flex:0 0 auto;overflow:visible;touch-action:none;-webkit-user-select:none;user-select:none}:where(.manga-editor) .panel-badge,:where(.manga-editor) .panel-hit{cursor:move}:where(.manga-editor) .contents-hit{cursor:default}:where(.manga-editor) .asset-hit{cursor:move}:where(.manga-editor) .asset-resize{cursor:nwse-resize}:where(.manga-editor) .mask-point{cursor:crosshair}:where(.manga-editor) .mask-point:hover{fill:#ff9e2b}:where(.manga-editor) .mask-point:focus{outline:none;stroke:#4c3d2a}:where(.manga-editor) .add-point{cursor:copy}:where(.manga-editor) .rotate-handle{cursor:grab}:where(.manga-editor) .zoom-controls{display:flex;align-items:center;gap:4px;position:absolute;right:18px;bottom:14px;padding:6px 7px;background:var(--editor-surface,#fff);border:1px solid var(--editor-border,#ededed);border-radius:8px;z-index:2;box-shadow:0 2px 12px #0001}.manga-editor .zoom-controls button{padding:5px;font-size:13px;color:var(--editor-text-muted,#7b8593)}:where(.manga-editor) .zoom-controls input{width:106px;accent-color:var(--red);height:15px}.manga-editor .zoom-controls .zoom-value{font-size:11px;min-width:40px}:where(.manga-editor) .selection-status{display:flex;align-items:center;gap:8px;padding:8px 10px;background:var(--editor-input,#fafafa);border-radius:6px;color:var(--editor-text,#535e6a);font-size:11px;margin-bottom:30px}:where(.manga-editor) .selection-status i{width:8px;height:8px;background:var(--red);border-radius:50%}.manga-editor h1{margin:0 0 14px;color:var(--editor-text,#282b2e);font-size:19px;font-family:Impact,Arial Narrow,Arial,sans-serif;letter-spacing:-.2px;font-weight:500}:where(.manga-editor) .reference-grid{display:flex;flex-wrap:wrap;gap:8px}.manga-editor .reference-add,:where(.manga-editor) .reference-tile{width:84px;height:84px;border:1px solid var(--editor-border,#efeff1);border-radius:7px;background:var(--editor-surface-raised,#fafafa)}.manga-editor .reference-add{font-size:25px;color:var(--editor-text-muted,#737c8c)}:where(.manga-editor) .reference-tile{position:relative;overflow:hidden}:where(.manga-editor) .reference-tile img{width:100%;height:100%;object-fit:contain}.manga-editor .reference-tile button{position:absolute;top:2px;right:2px;padding:0;width:20px;height:20px;background:var(--editor-surface,#fff);border-radius:50%}.manga-editor textarea{min-height:85px;width:100%;padding:12px;margin:0 0 14px;font-family:inherit;font-size:12px;line-height:1.6;color:var(--editor-text,#444e5b);background:var(--editor-input,#fafafa);border:1px solid var(--editor-border,#e5e5e8);border-radius:7px;resize:vertical}.manga-editor textarea::placeholder{color:var(--editor-text-muted,#828996)}:where(.manga-editor) .small-label{color:var(--editor-text-muted,#828895);font-size:10px;margin:16px 0 7px;font-weight:600}:where(.manga-editor) .choice-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.manga-editor .choice-grid button{border-color:var(--editor-border,#e5e5e7);background:var(--editor-surface,white);border-radius:5px;padding:6px 2px;font-size:10px}.manga-editor .choice-grid button.active{background:var(--editor-primary,var(--red));color:white;border-color:var(--red);font-weight:600}:where(.manga-editor) .choice-grid.resolution{grid-template-columns:repeat(4,minmax(0,1fr))}.manga-editor .generate-button{margin-top:0;min-height:49px;letter-spacing:.6px;font-family:Impact,Arial Narrow,Arial,sans-serif;font-size:17px;font-weight:500}.manga-editor .generate-button:disabled{background:var(--editor-disabled-bg,#eee);color:var(--editor-disabled-text,#bfbfbf);border-color:var(--editor-disabled-bg,#eee);opacity:1}:where(.manga-editor) .model-note{display:flex;flex-direction:column;gap:3px;color:var(--editor-text-muted,#969aa2);font-size:9px;margin-top:5px;padding-bottom:15px;border-bottom:1px solid var(--line)}:where(.manga-editor) .model-note code{color:var(--editor-text-muted,#828995);font-size:10px}:where(.manga-editor) .setup-note{margin-top:10px!important;color:var(--editor-warning-text,#976433);background:var(--editor-warning-bg,#fff7e8);border-radius:5px;padding:10px;font-size:10px}:where(.manga-editor) .history-title{margin-top:19px}:where(.manga-editor) .version-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}:where(.manga-editor) .version-empty{grid-column:1/-1;padding:16px 12px;background:var(--editor-surface-raised,#fafafa);border:1px dashed var(--editor-border,#e8e8e8);border-radius:6px;color:var(--soft);font-size:10px}:where(.manga-editor) .version-card{border:2px solid transparent;border-radius:7px;overflow:hidden;position:relative;background:var(--editor-surface-raised,#eae8e3)}:where(.manga-editor) .version-card.active{border-color:var(--red)}.manga-editor .version-restore{padding:0;width:100%;display:flex;flex-direction:column;border:none;gap:0}:where(.manga-editor) .version-restore svg{display:block;width:100%;height:94px}:where(.manga-editor) .version-restore span{width:100%;padding:5px 23px 5px 5px;background:var(--editor-surface-raised,#676767);color:white;font-size:9px;text-align:left;white-space:nowrap}:where(.manga-editor) .version-card.active .version-restore span{background:var(--red)}.manga-editor .version-download{position:absolute;bottom:4px;right:4px;background:var(--editor-surface-raised,#0003);padding:0;border-radius:50%;width:19px;height:19px;color:white;font-size:14px}:where(.manga-editor) .layer-list{margin:16px 0 24px}:where(.manga-editor) .layer-row{display:flex;align-items:center;gap:2px;border:1px solid var(--editor-border,#ececec);border-radius:6px;margin:7px 0;padding:3px}:where(.manga-editor) .layer-row.active{border-color:var(--editor-purple-text,#9b79c6);background:var(--editor-purple-surface,#fcf9ff)}.manga-editor .layer-select{flex:1 1;justify-content:flex-start;min-width:0;padding:4px;gap:7px}:where(.manga-editor) .layer-select img{width:32px;height:38px;object-fit:contain}:where(.manga-editor) .layer-select span{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manga-editor .layer-row>button:not(.layer-select){padding:4px;color:var(--editor-text-muted,#7e8190)}:where(.manga-editor) .field-title input[type=color]{display:block;margin-top:12px;width:100%;height:32px;border:1px solid var(--editor-border,#eee);background:transparent;cursor:pointer}:where(.manga-editor) .editor-error{position:relative;background:var(--editor-error-bg,#fff5ef);border:1px solid var(--editor-error-border,#f1cebd);border-radius:6px;padding:12px 22px 12px 10px;margin-top:15px;color:var(--editor-error-text,#a0442a)}:where(.manga-editor) .editor-error>button{position:absolute;right:2px;top:2px;padding:0 5px}:where(.manga-editor) .generation-failure{padding:12px}:where(.manga-editor) .generation-failure>p{margin:0 0 10px;overflow-wrap:anywhere}:where(.manga-editor) .generation-failure>button{position:static;padding:8px 16px;min-height:36px}.manga-editor pre{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--editor-border,#e8e8e9);padding:10px;background:var(--editor-surface-raised,#f7f7f7);border-radius:5px;font:10px/1.6 monospace;max-height:220px;overflow:auto}:where(.manga-editor) .editor-error pre{background:none;padding:0;border:0;margin:0}:where(.manga-editor) .request-details{border-top:1px solid var(--line);padding-top:14px;margin-top:20px}:where(.manga-editor) .request-details summary{font-size:11px;color:var(--editor-text-muted,#697284)}:where(.manga-editor) .request-details b{font-size:10px}:where(.manga-editor) .request-details details{margin:10px 0}:where(.manga-editor) .audit-meta{font-size:10px;margin:12px 0;line-height:1.8;color:var(--editor-text-muted,#7c8290)}:where(.manga-editor) .input-dialog{border:1px solid var(--editor-border,#e1e1e1);border-radius:10px;background:var(--editor-input,white);color:var(--editor-text,#333);width:min(760px,92vw);max-height:90dvh;padding:20px;overflow:auto}:where(.manga-editor) .input-dialog::backdrop{background:var(--editor-input,#0009)}:where(.manga-editor) .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}:where(.manga-editor) .dialog-heading strong{font-size:14px}:where(.manga-editor) .dialog-heading button{font-size:22px}:where(.manga-editor) .input-dialog p{font-size:11px;color:var(--soft);margin:8px 0 16px}:where(.manga-editor) .input-dialog>img{display:block;max-width:100%;width:auto;max-height:62dvh;height:auto;margin:0 auto 20px;border:1px solid var(--editor-border,#dce2e9);object-fit:contain}.manga-editor [hidden]{display:none}:where(.manga-editor) .left-sidebar .left-content{padding:10px 12px;flex:1 1}:where(.manga-editor) .left-content .subtle{margin-bottom:8px;line-height:1.45;font-size:10px}:where(.manga-editor) .left-content .field-title{margin:9px 0 6px}:where(.manga-editor) .left-content .settings-block{margin:8px 0;padding:10px}:where(.manga-editor) .left-content .frame-readout{margin:8px 0}:where(.manga-editor) .left-content .section-heading{margin-bottom:6px}:where(.manga-editor) .left-content .mask-help{margin:8px 0}:where(.manga-editor) .mask-help .subtle{margin:6px 0}:where(.manga-editor) .left-content.left-assets{display:flex;flex-direction:column;overflow:hidden}:where(.manga-editor) .asset-tools{flex-shrink:0}:where(.manga-editor) .left-assets .asset-grid{flex:1 1;min-height:0;overflow:auto;scrollbar-width:thin;padding:2px 3px 8px 2px}.manga-editor .asset-transform{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;margin-bottom:9px}:where(.manga-editor) .asset-transform>b{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}:where(.manga-editor) .flip-controls{display:flex;grid-column:1/-1;gap:6px}.manga-editor .flip-controls button{flex:1 1;padding:6px 3px;font-size:10px;white-space:nowrap}.manga-editor .flip-controls button[aria-pressed=true]{border-color:var(--editor-border,#d55846);color:var(--editor-text-muted,#b73623);background:var(--editor-selected,#fbeae6)}:where(.manga-editor) .asset-transform .field-title{margin:0;align-self:center;font-size:9px;letter-spacing:.1px}:where(.manga-editor) .asset-transform input[type=range]{margin:0;height:20px;min-width:0}:where(.manga-editor) .asset-transform-footer{grid-column:1/-1;display:flex;align-items:center;gap:8px}:where(.manga-editor) .asset-transform-footer span{flex:1 1;font-size:9px;line-height:1.4;color:var(--editor-text-muted,#828895)}.manga-editor .asset-transform-footer button{padding:5px 7px;font-size:10px}.manga-editor .asset-selection-hint{padding:8px;margin-bottom:9px;font-size:10px;color:var(--editor-text-muted,#828895);background:var(--editor-input,#f8f8f9);border-radius:5px}:where(.manga-editor) .panel-prompt{position:relative}:where(.manga-editor) .panel-prompt textarea{margin-bottom:0}:where(.manga-editor) .mention-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:12;max-height:188px;overflow:auto;padding:4px;border:1px solid var(--editor-border,#e3e5e9);border-radius:8px;background:var(--editor-surface,white);box-shadow:0 8px 28px #1f29372b}.manga-editor .mention-menu button{display:flex;width:100%;padding:9px;justify-content:flex-start;border-radius:5px;gap:9px;text-align:left}:where(.manga-editor) .mention-menu b{font-size:11px;color:var(--editor-text-muted,#dd3828)}:where(.manga-editor) .mention-empty,:where(.manga-editor) .mention-menu span{font-size:10px;color:var(--editor-text-muted,#858c97)}:where(.manga-editor) .mention-empty{padding:9px}.manga-editor .mention-menu button.active{background:var(--editor-selected,#fcf0ed)}.manga-editor .mention-hint{font-size:9px;margin:6px 0 9px}:where(.manga-editor) .mention-attachments{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0 10px}:where(.manga-editor) .mention-chip{padding:3px 7px;background:var(--editor-surface-raised,#f3f5f8);color:var(--editor-text-muted,#526884);border:1px solid var(--editor-border,#e4e8ee);border-radius:4px;font:10px/1.5 monospace}:where(.manga-editor) .mention-chip.missing{background:var(--editor-surface-raised,#fff3ed);border-color:var(--editor-border,#f0cabb);color:var(--editor-text-muted,#a44d32)}:where(.manga-editor) .audit-panel-references{padding:9px;margin:8px 0;background:var(--editor-surface-raised,#f8f8f9);border-radius:5px}:where(.manga-editor) .audit-panel-references .text-button{display:block;text-align:left;padding:3px 0}:where(.manga-editor) .generation-surface{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--editor-surface-raised,#121d2c24);container-type:size}:where(.manga-editor) .generation-sheen{position:absolute;inset:0;background:linear-gradient(112deg,transparent 22%,#ffffff08 37%,#ffffff70 50%,#ffffff0c 62%,transparent 78%);transform:translateX(-130%);animation:hmph-editor-panel-sheen 4.8s ease-in-out infinite}:where(.manga-editor) .generation-card{position:relative;width:min(300px,calc(100% - 28px));padding:17px 19px 13px;border:1px solid var(--editor-border,#ffffffb0);border-radius:12px;background:var(--editor-progress-surface,#ffffffe0);box-shadow:0 8px 30px #1923331c;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--editor-text,#334053);font:13px/1.5 Arial,sans-serif}:where(.manga-editor) .generation-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}:where(.manga-editor) .generation-heading>span{color:var(--editor-text-muted,#7c8692);font-size:9px;font-weight:700;letter-spacing:1.1px}:where(.manga-editor) .generation-heading strong{font-size:25px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:1.15;letter-spacing:-.8px}:where(.manga-editor) .generation-status{position:relative;height:20px;margin:11px 0 13px;font-size:12px}:where(.manga-editor) .generation-status span{position:absolute;inset:0;opacity:0;transform:translateY(3px);transition:opacity .6s ease,transform .6s ease}:where(.manga-editor) .generation-status span.active{opacity:1;transform:translateY(0)}:where(.manga-editor) .generation-track{height:5px;width:100%;border-radius:4px;overflow:hidden;background:var(--editor-progress-track,#dce0e4)}:where(.manga-editor) .generation-fill{height:100%;background:linear-gradient(90deg,#bd3429,#e36954);border-radius:inherit;transition:width .12s linear}:where(.manga-editor) .generation-estimate{font-size:8px;color:var(--editor-text-muted,#949ca6);margin-top:8px;letter-spacing:.25px}:where(.manga-editor) .generation-surface.compact .generation-card{width:calc(100% - 8px);padding:6px;border-radius:5px}:where(.manga-editor) .generation-surface.compact .generation-estimate,:where(.manga-editor) .generation-surface.compact .generation-heading>span{display:none}:where(.manga-editor) .generation-surface.compact .generation-heading{justify-content:center}:where(.manga-editor) .generation-surface.compact .generation-heading strong{font-size:12px}:where(.manga-editor) .generation-surface.compact .generation-status{font-size:7px;height:18px;margin:4px 0;text-align:center}:where(.manga-editor) .generation-surface.compact .generation-track{height:3px}@keyframes hmph-editor-panel-sheen{0%,10%{transform:translateX(-130%)}80%,to{transform:translateX(130%)}}@media (prefers-reduced-motion:reduce){:where(.manga-editor) .generation-sheen{animation:none;transform:none;opacity:.3}:where(.manga-editor) .generation-fill,:where(.manga-editor) .generation-status span{transition:none}}@media (min-width:1800px){:where(.manga-editor) .sidebar-scroll{padding:18px 16px 35px}:where(.manga-editor) .page-surround{padding-top:48px}}@media (max-width:1100px){:where(.manga-editor) .editor-top{gap:12px}:where(.manga-editor) .editor-top>.save-status{max-width:130px;font-size:10px}:where(.manga-editor) .shape-grid{gap:7px}:where(.manga-editor) .sidebar-scroll{padding:12px 10px 30px}}@media (max-width:899px){:where(.manga-editor) .editor-top{padding:0 10px;gap:10px;flex-basis:56px}:where(.manga-editor) .editor-top>span{display:none}:where(.manga-editor) .editor-top strong{font-size:14px}:where(.manga-editor) .top-actions{gap:4px}.manga-editor .small-button{width:29px;height:32px}.manga-editor .export-button{padding:8px 10px;font-size:10px}:where(.manga-editor) .editor-body,:where(.manga-editor) .editor-body.left-collapsed,:where(.manga-editor) .editor-body.right-collapsed{grid-template-columns:minmax(0,1fr);position:relative}:where(.manga-editor) .editor-sidebar{position:absolute;top:0;bottom:0;width:290px;box-shadow:0 3px 20px #0003}:where(.manga-editor) .left-sidebar{left:0}:where(.manga-editor) .right-sidebar{right:0}:where(.manga-editor) .canvas-shell{grid-column:1}:where(.manga-editor) .canvas-toolbar{padding-inline:10px}:where(.manga-editor) .canvas-toolbar>span{display:none}}.manga-editor .editor-top>strong{min-width:0;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manga-editor .publish-button{padding:9px 14px}.manga-editor .page-item{min-width:0}.manga-editor .page-item .page-card{width:100%}.manga-editor .page-actions{display:flex;justify-content:center;gap:6px;padding:5px 0}.manga-editor .page-actions button{font-size:10px;padding:3px 6px;border:1px solid var(--editor-border,#ddd);border-radius:4px;background:var(--editor-surface,white)}@media (max-width:640px){.manga-editor .editor-top{flex-wrap:wrap;height:auto;min-height:72px;padding-block:6px;gap:5px}.manga-editor .editor-top>strong{max-width:135px}.manga-editor .top-actions{width:100%;justify-content:flex-end}}.manga-editor .asset-toolbar-object{overflow:visible}.manga-editor .asset-floating-toolbar{display:flex;align-items:center;justify-content:space-around;width:232px;height:42px;padding:4px;border:1px solid var(--editor-border,#dedee3);border-radius:9px;background:var(--editor-surface,white);box-shadow:0 5px 20px #0002}.manga-editor .asset-floating-toolbar button{width:40px;height:32px;border-radius:5px;font:22px/1 system-ui;color:var(--editor-text-muted,#505664)}.manga-editor .asset-floating-toolbar button:hover,.manga-editor .asset-floating-toolbar button[aria-pressed=true]{background:var(--editor-purple-surface,#f1e9fa);color:var(--editor-purple-text,#7142a5)}.manga-editor .asset-floating-toolbar button:last-child{color:var(--editor-accent,#c44636)}.manga-editor .layer-drag-handle{flex-shrink:0;padding:5px 2px;color:var(--editor-text-muted,#9298a4);cursor:grab}.manga-editor .layer-row.drop-above{border-top:3px solid var(--editor-border,#9561cf)}.manga-editor .layer-row.drop-below{border-bottom:3px solid var(--editor-border,#9561cf)}.manga-editor .background-label{display:block;font-size:9px;color:var(--editor-text-muted,#7b7190)}.manga-editor .page-color{display:flex;align-items:center;justify-content:space-between;margin:10px 0}.manga-editor .page-color input{width:64px;height:30px;padding:2px;border:1px solid var(--editor-border,#ddd);cursor:pointer}.manga-editor .asset-floating-toolbar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;vertical-align:middle}:where(.manga-editor) .no-pages{border-radius:10px;padding:28px 18px;background:var(--editor-surface-raised,#f8f8f8);text-align:center;color:var(--editor-text-muted,#77808d)}:where(.manga-editor) .no-pages strong{color:var(--editor-text,#242b34)}:where(.manga-editor) .page-layout-chooser{position:relative;min-height:100%;padding:clamp(32px,7vh,90px) 28px 36px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--editor-workspace-text,#eee);text-align:center}:where(.manga-editor) .page-layout-chooser h2{font-size:clamp(20px,2vw,30px);font-weight:850;letter-spacing:-.03em;margin:0 0 22px;color:#fff;outline:none}:where(.manga-editor) .page-layout-chooser>p{color:var(--editor-workspace-muted,#a7a7a7);max-width:680px;font-size:15px;line-height:1.6;margin:0 0 36px}.manga-editor .layout-close{position:absolute;right:16px;top:12px;background:none;border:0;color:var(--editor-workspace-muted,#aaa);font-size:25px}:where(.manga-editor) .page-layout-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;width:100%;max-width:960px;margin-bottom:32px}.manga-editor .page-layout-card{position:relative;transition:transform .18s ease,background-color .18s ease;transform-origin:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:20px 12px;min-width:0;background:var(--editor-workspace-raised,#333);border:2px solid transparent;border-radius:10px;color:var(--editor-workspace-muted,#808080)}.manga-editor .page-layout-card svg{width:100%;height:110px}.manga-editor .page-layout-card strong{color:var(--editor-workspace-text,#eee);font-size:13px}.manga-editor .page-layout-card:focus-visible,.manga-editor .page-layout-card:hover:not(:disabled){transform:scale(1.1);z-index:1;background:var(--editor-workspace-hover,#3d3d3d)}@media (prefers-reduced-motion:reduce){.manga-editor .page-layout-card{transition:none}}.manga-editor .page-layout-card[aria-pressed=true]{border-color:var(--red);color:var(--editor-workspace-muted,#df7e69);background:var(--editor-selected,#40332f)}.manga-editor .blank-layout,.manga-editor .use-layout{width:min(325px,100%);min-height:48px}.manga-editor .blank-layout{background:none;color:var(--editor-workspace-muted,#bbb);border:1px solid var(--editor-workspace-border,#595959);font-size:14px}:where(.manga-editor) .layout-or{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--editor-workspace-muted,#999);font-size:12px}:where(.manga-editor) .layout-or span{width:40px;height:1px;background:var(--editor-workspace-raised,#555)}@media (max-width:1200px){:where(.manga-editor) .page-layout-grid{gap:9px;grid-template-columns:repeat(3,minmax(0,1fr));max-width:520px}.manga-editor .page-layout-card{padding:12px 8px;gap:10px}.manga-editor .page-layout-card svg{height:84px}:where(.manga-editor) .page-layout-chooser{padding:44px 18px 24px}}@media (max-width:450px){:where(.manga-editor) .page-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.manga-editor .blank-layout:hover:not(:disabled),.manga-editor .layout-close:hover:not(:disabled){background:var(--editor-workspace-hover,#3d3d3d);color:#fff}.manga-editor .generation-cancel{pointer-events:auto;display:block;width:100%;min-height:34px;margin-top:12px;border:1px solid var(--editor-border,#bac2ca);border-radius:6px;background:var(--editor-surface,#fff);color:var(--editor-text,#39485a);font-size:12px;font-weight:600}.manga-editor .generation-cancel:disabled{background:var(--editor-disabled-bg,#e9ebee);color:var(--editor-disabled-text,#9bA2ab);cursor:not-allowed;opacity:.7}.manga-editor .generation-cancel-hint{font-size:9px;color:var(--editor-text-muted,#747e8b);margin-top:6px;text-align:center}.manga-editor .generation-surface.compact .generation-cancel{font-size:8px;min-height:18px;margin-top:5px;padding:1px}.manga-editor .generation-surface.compact .generation-cancel-hint{font-size:6px;margin-top:2px}.manga-editor .generation-notice{color:var(--editor-text-muted,#4b6571);font-size:12px}.manga-editor .generation-surface.compact .generation-card{width:calc(100% - 4px);padding:3px;display:grid;grid-template-columns:minmax(0,1fr) 27px;gap:3px}.manga-editor .generation-surface.compact .generation-heading{grid-column:1;grid-row:1}.manga-editor .generation-surface.compact .generation-heading strong{font-size:9px}.manga-editor .generation-surface.compact .generation-status{grid-column:1/-1;grid-row:2;height:14px;margin:0;line-height:7px}.manga-editor .generation-surface.compact .generation-track{grid-column:1/-1;grid-row:3}.manga-editor .generation-surface.compact .generation-cancel{grid-column:2;grid-row:1;margin:0}.manga-editor .generation-surface.compact .generation-cancel-hint{display:none}.manga-editor .editor-top{gap:12px}.manga-editor .drawing-toolbar{display:flex;align-items:center;gap:7px;margin-left:auto;flex-shrink:0}.manga-editor .editor-top>[data-cloud-status]{display:flex;align-items:center;gap:6px;min-width:0;max-width:340px;white-space:nowrap}.manga-editor .editor-top>[data-cloud-status]>[data-cloud-message]{min-width:0;overflow:hidden;text-overflow:ellipsis}.manga-editor .editor-top>[data-cloud-status]>:is(button,a){flex-shrink:0;padding:3px 8px;font-size:11px}.manga-editor .drawing-tool-buttons{display:flex;gap:2px;padding:2px;border:1px solid var(--editor-border,#e6e7eb);border-radius:7px}.manga-editor .drawing-tool-buttons button{height:30px;padding:4px 7px;gap:4px;border:0;font-size:14px}.manga-editor .drawing-tool-buttons button span{font-size:10px}.manga-editor .drawing-tool-buttons button[aria-pressed=true]{background:var(--editor-selected,#fbe9e6);color:var(--editor-accent,#c63c29);box-shadow:inset 0 0 0 1px #eac1b8}.manga-editor .drawing-toolbar select{width:62px;min-width:0;height:32px;border:1px solid var(--editor-border,#e5e6e9);border-radius:5px;padding:3px;font-size:11px;color:var(--editor-text,#242a33);background:var(--editor-input,white)}.manga-editor .brush-swatches{display:grid;grid-template-columns:repeat(3,14px);gap:3px}.manga-editor .brush-swatches button{width:14px;height:14px;min-height:0;padding:0;border:1px solid #a9acb2;border-radius:3px}.manga-editor .brush-swatches button[aria-pressed=true]{outline:2px solid #566477;outline-offset:1px}.manga-editor .drawing-toolbar input[type=color]{width:28px;height:32px;padding:2px;border:1px solid var(--editor-border,#d8dce1);border-radius:5px}.manga-editor .top-actions{margin-left:auto;gap:6px}.manga-editor .asset-grid-window{min-height:0;overflow:auto;flex:1 1;scrollbar-width:thin}.manga-editor .left-assets .virtual-asset-grid{flex:none;overflow:visible;grid-auto-rows:100px;gap:6px;padding-inline:2px}.manga-editor .virtual-asset-grid .asset-card{height:100px}.manga-editor .virtual-asset-grid .asset-card img{flex-shrink:0;height:72px}.manga-editor .virtual-asset-grid .asset-card span{flex-shrink:0}@media (max-width:1450px){.manga-editor .drawing-tool-buttons button span{display:none}.manga-editor .editor-top>strong{max-width:155px}.manga-editor .editor-top>.save-status{max-width:95px;white-space:nowrap;overflow:hidden;font-size:10px}}@media (max-width:1100px){.manga-editor .editor-top>.save-status{display:none}.manga-editor .editor-top{gap:8px}}@media (max-width:899px){.manga-editor .editor-top{flex-wrap:wrap;flex-basis:auto;padding-block:5px}.manga-editor .drawing-toolbar{order:3;margin:0 auto}.manga-editor .drawing-tool-buttons button span{display:inline}.manga-editor .top-actions{margin-left:auto}}@media (max-width:640px){.manga-editor .drawing-toolbar{order:3;width:100%;justify-content:center}.manga-editor .top-actions{width:auto}.manga-editor .editor-top>strong{max-width:92px;font-size:12px}.manga-editor .publish-button{padding-inline:7px}}:where(.manga-editor) .reference-label{position:absolute;top:5px;left:5px;padding:3px 6px;border-radius:4px;background:var(--editor-surface-raised,#d93828);color:white;font-size:10px;font-weight:700;line-height:1.2;pointer-events:none}:where(.manga-editor) .mention-group-heading{padding:7px 9px 3px;color:var(--editor-text-muted,#727b8b);font-size:9px;font-weight:700;letter-spacing:.08em}:where(.manga-editor) .mention-menu button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.manga-editor) .mention-menu button b{flex-shrink:0}:where(.manga-editor) .reference-message{color:var(--editor-warning-text,#985129)}.manga-editor .project-controls{display:flex;align-items:center;gap:7px;flex-shrink:0}.manga-editor .new-project-button{min-height:34px;white-space:nowrap;font-weight:600}.manga-editor .watermark-toggle{padding:5px 7px;gap:7px;font-size:11px;border-color:var(--line);min-height:34px;white-space:nowrap}.manga-editor .toggle-track{width:30px;height:18px;padding:2px;border-radius:20px;background:var(--editor-surface-raised,#b9bec6);transition:background .15s}.manga-editor .toggle-track>span{display:block;width:14px;height:14px;border-radius:50%;background:white;box-shadow:0 1px 2px #0002;transition:transform .15s}.manga-editor .watermark-toggle[aria-checked=true] .toggle-track{background:var(--red)}.manga-editor .watermark-toggle[aria-checked=true] .toggle-track>span{transform:translateX(12px)}.manga-editor .prompt-used{margin:14px 0;padding:11px;background:var(--editor-surface-raised,#f8f8fa);border:1px solid var(--line);border-radius:6px}.manga-editor .prompt-used .field-title{margin:0 0 8px;text-transform:uppercase;display:flex;justify-content:space-between;gap:8px}.manga-editor .prompt-used .field-title span{text-transform:none;font-weight:400}.manga-editor .prompt-used p,.manga-editor .prompt-used pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:11px;line-height:1.6;max-height:180px;overflow-y:auto}.manga-editor .panel-watermarks,.manga-editor .panel-watermarks *{pointer-events:none;-webkit-user-select:none;user-select:none}@media (max-width:1500px){.manga-editor .editor-top{flex-wrap:wrap;flex-basis:auto;padding-block:7px}.manga-editor .project-controls{margin-left:auto}.manga-editor .drawing-toolbar{margin-left:0}.manga-editor .top-actions{margin-left:auto}}@media (max-width:640px){.manga-editor .project-controls{gap:4px}.manga-editor .new-project-button{padding:5px 7px}.manga-editor .watermark-toggle{padding:5px;gap:5px}.manga-editor .top-actions{justify-content:flex-end;flex:1 0 100%}.manga-editor .drawing-toolbar{margin:0}}.manga-editor .editor-top{flex:0 0 auto;min-height:62px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;row-gap:8px}.manga-editor .text-toolbar{flex:1 1 100%;min-width:0;display:flex;align-items:center;flex-wrap:nowrap;overflow-x:auto;gap:7px;padding-top:7px;border-top:1px solid var(--line)}.manga-editor .text-toolbar label{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:var(--editor-text-muted,#677284);white-space:nowrap}.manga-editor .text-toolbar input[type=number],.manga-editor .text-toolbar select{height:30px;border:1px solid var(--editor-border,#e3e6eb);border-radius:5px;background:var(--editor-input,white);color:var(--editor-text,#252b34);padding:3px 5px;width:64px;font-size:12px}.manga-editor .text-toolbar select{width:150px}.manga-editor .text-toolbar input[type=color]{height:28px;width:28px;padding:2px;border:1px solid var(--editor-border,#e3e6eb);border-radius:4px;background:var(--editor-input,white)}.manga-editor .text-object-actions,.manga-editor .text-style-buttons{display:flex;align-items:center;gap:2px;border-left:1px solid var(--line);padding-left:5px}.manga-editor .text-toolbar button{min-height:30px;padding:4px 8px}.manga-editor .text-style-buttons button[aria-pressed=true]{color:var(--red);background:var(--editor-selected,#fcece7);border-color:var(--editor-accent,#edc1b8)}.manga-editor .text-font-note,.manga-editor .text-toolbar-hint{font-size:10px;color:var(--editor-text-muted,#7e8592)}.manga-editor .text-layer-icon{display:flex;align-items:center;justify-content:center;flex:none;background:var(--editor-purple-surface,#f1eafa);color:var(--editor-purple-text,#784bb2);width:34px;height:34px;border-radius:4px;line-height:1}.manga-editor .text-layer-icon>svg{display:block;flex:none}@media (max-width:700px){.manga-editor .text-toolbar{max-height:240px;overflow:auto}.manga-editor .text-font-note{display:none}}.manga-editor .text-toolbar>*{flex-shrink:0}.manga-editor .text-font-note{margin-left:auto;white-space:nowrap}@media (min-width:900px){.manga-editor .editor-top>[data-cloud-status]{flex:0 0 auto;width:118px;font-size:12px}.manga-editor .editor-top>[data-cloud-status]>button{padding:2px 6px;font-size:12px;line-height:1}.manga-editor .editor-top>.save-status{flex:0 0 auto;width:96px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.manga-editor .editor-top{position:relative}.manga-editor .editor-top>.text-toolbar{position:absolute;top:100%;left:clamp(250px,19.4vw,380px);right:clamp(290px,19.4vw,390px);height:44px;padding:0 14px;border-top:0;border-bottom:1px solid var(--editor-border,#ededee);background:var(--editor-surface,white);box-shadow:0 2px 6px #0000001f}.manga-editor:has(>.editor-body.left-collapsed) .editor-top>.text-toolbar{left:0}.manga-editor:has(>.editor-body.right-collapsed) .editor-top>.text-toolbar{right:0}.manga-editor .editor-top>.text-toolbar .text-font-note{display:none}.manga-editor .editor-top>.text-toolbar .text-toolbar-hint{flex-shrink:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manga-editor .editor-top>[data-cloud-status]:has(a){width:auto;max-width:340px}}@media (min-width:900px) and (max-width:1450px){.manga-editor .editor-top>.save-status{width:84px;font-size:10px}.manga-editor .editor-top>[data-cloud-status]{width:104px;font-size:10px}}.manga-editor .new-project-button .label-short{display:none}@media (min-width:900px) and (max-width:1800px){.manga-editor .drawing-tool-buttons button span{display:none}}@media (min-width:900px) and (max-width:1600px){.manga-editor .editor-top{gap:8px}.manga-editor .editor-top>strong{max-width:150px}.manga-editor .editor-theme-toggle .theme-icon{display:inline}.manga-editor .editor-theme-toggle .theme-label,.manga-editor .new-project-button .label-full{display:none}.manga-editor .new-project-button .label-short{display:inline}}@media (min-width:900px) and (max-width:1450px){.manga-editor .editor-top>strong{max-width:120px}.manga-editor .editor-top{gap:6px;padding-inline:14px}.manga-editor .editor-top>[data-cloud-status]{width:92px}.manga-editor .editor-top>.save-status{width:78px}.manga-editor .project-controls{gap:4px}.manga-editor .new-project-button{padding-inline:8px}.manga-editor .watermark-toggle{padding:5px;gap:5px}.manga-editor .drawing-toolbar{gap:4px}.manga-editor .drawing-tool-buttons button{padding:4px}.manga-editor .top-actions{gap:4px}.manga-editor .top-actions .small-button{width:30px}.manga-editor .publish-button{padding:9px 10px}.manga-editor .export-button{padding:10px 14px}.manga-editor .editor-top>.text-toolbar{gap:5px;padding-inline:10px}.manga-editor .editor-top>.text-toolbar select{width:118px}.manga-editor .editor-top>.text-toolbar input[type=number]{width:52px}}@media (min-width:900px) and (max-width:1350px){.manga-editor .editor-top>strong{max-width:110px}}.manga-editor .canvas-text-input{display:block;resize:none;overflow:hidden;outline:none;border-radius:0;background:transparent;caret-color:#4b22a3;touch-action:auto;user-select:text;-webkit-user-select:text}.manga-editor .canvas-text-input::selection{background:#a4c6ff99}.manga-editor .asset-card img,.manga-editor .layer-select img{background:var(--editor-thumbnail,transparent)}.manga-editor .asset-filters input,.manga-editor select{background-color:var(--editor-input,white);color:var(--editor-text,#252b34)}.manga-editor .export-progress{font-size:11px;color:var(--editor-text-muted,#7e8592)}html:has(.manga-editor[data-mobile=true]){scrollbar-gutter:auto}.manga-editor[data-mobile=true]{position:fixed;top:var(--mobile-top,0);left:0;right:0;height:var(--mobile-height,100dvh);width:100%;z-index:0;isolation:isolate;padding-top:env(safe-area-inset-top);padding-inline:env(safe-area-inset-left) env(safe-area-inset-right)}.manga-editor[data-mobile=true] .editor-top{flex:0 0 auto;min-height:48px;padding:4px 8px;gap:4px;flex-wrap:nowrap}.manga-editor[data-mobile=true] .back-link{display:flex;justify-content:center;align-items:center;flex:0 0 40px;min-height:40px}.manga-editor[data-mobile=true] .editor-top>strong{flex:1 1;min-width:0;max-width:none;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manga-editor[data-mobile=true] .desktop-sidebar-toggle,.manga-editor[data-mobile=true] .editor-top>span{display:none}.manga-editor[data-mobile=true] .top-actions{gap:2px;margin:0;width:auto;flex:0 0 auto}.manga-editor[data-mobile=true] .top-actions .small-button{width:40px;height:40px;border:0}.manga-editor[data-mobile=true] .publish-button{padding:8px;min-height:40px;font-size:11px}.manga-editor[data-mobile=true] .mobile-project-trigger{letter-spacing:1px;font-size:14px}.manga-editor[data-mobile=true] .mobile-editor-nav{display:flex;flex:0 0 auto;border-bottom:1px solid var(--line);padding:0 6px;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:none}.manga-editor[data-mobile=true] .mobile-editor-nav button{min-height:42px;flex:1 0 auto;padding:6px 9px;font-size:11px}.manga-editor[data-mobile=true] .editor-body{display:flex;position:static;min-width:0}.manga-editor[data-mobile=true] .canvas-shell{flex:1 1;width:100%}.manga-editor[data-mobile=true] .canvas-toolbar{flex:0 0 40px;gap:4px;padding:0 8px;justify-content:flex-start}.manga-editor[data-mobile=true] .canvas-toolbar>span:not(.generation-count){display:none}.manga-editor[data-mobile=true] .mode-switch button{min-height:40px;padding:5px 8px}.manga-editor[data-mobile=true] .mobile-panel-name{font-size:10px;color:var(--editor-workspace-muted,#b9b9b9)}.manga-editor[data-mobile=true] .canvas-scroll{overscroll-behavior:contain}.manga-editor[data-mobile=true] .page-surround{padding-top:24px}.manga-editor[data-mobile=true] .mobile-tool-rail{flex:0 0 auto;min-width:0;z-index:11;background:var(--editor-surface,white);border-top:1px solid var(--line);padding:3px 6px max(3px,env(safe-area-inset-bottom))}.manga-editor[data-mobile=true] .drawing-toolbar{width:100%;margin:0;gap:7px;flex-wrap:wrap;justify-content:flex-start}.manga-editor[data-mobile=true] .drawing-tool-buttons{flex:1 0 100%;min-width:0;border:0;padding:0;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:none}.manga-editor[data-mobile=true] .drawing-tool-buttons button{height:44px;min-width:44px;flex:1 0 auto;padding:6px 9px}.manga-editor[data-mobile=true] .drawing-tool-buttons button span{display:inline;font-size:10px}.manga-editor[data-mobile=true] .drawing-toolbar>input,.manga-editor[data-mobile=true] .drawing-toolbar>select{height:40px}.manga-editor[data-mobile=true] .brush-swatches{display:flex;flex:1 1;gap:2px}.manga-editor[data-mobile=true] .brush-swatches button{flex:1 1;width:auto;min-width:24px;height:40px;border:9px solid var(--editor-surface,white);border-radius:12px}.manga-editor[data-mobile=true]:is([data-drawing-tool=select],[data-drawing-tool=text]) .drawing-toolbar>:not(.drawing-tool-buttons){display:none}.manga-editor[data-mobile=true]:is([data-drawing-tool=fill],[data-drawing-tool=eyedropper]) .drawing-toolbar>select{display:none}.manga-editor[data-mobile=true] .text-toolbar{margin:0 0 3px;padding:0 0 3px;border-top:0;border-bottom:1px solid var(--line);max-width:100%;min-height:44px;overscroll-behavior:contain}.manga-editor[data-mobile=true] .text-toolbar :is(button,select,input){min-height:40px}.manga-editor[data-mobile=true] .text-toolbar label{flex-shrink:0}.manga-editor[data-mobile=true] .text-font-note,.manga-editor[data-mobile=true] .text-toolbar-hint{display:none}.manga-editor[data-mobile=true] .zoom-controls{right:8px;bottom:8px;gap:2px;padding:0 3px;max-width:calc(100% - 16px);border-radius:12px}.manga-editor[data-mobile=true] .zoom-controls button{min-width:40px;min-height:40px}.manga-editor[data-mobile=true] .zoom-controls input{width:clamp(55px,20vw,110px);min-width:0}.manga-editor[data-mobile=true] .zoom-controls:not([data-expanded=true])>:not(.mobile-zoom-toggle){display:none}.manga-editor[data-mobile=true] .mobile-zoom-toggle{font-size:11px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.manga-editor[data-mobile=true] .mobile-sheet-backdrop{position:absolute;inset:0;z-index:39;background:#0004;touch-action:none}.manga-editor[data-mobile=true] [data-mobile-sheet]{position:absolute;inset:auto 0 0;width:100%;height:62%;max-height:calc(100% - env(safe-area-inset-top) - 48px);z-index:40;display:flex;flex-direction:column;min-height:0;border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;background:var(--editor-surface,white);box-shadow:0 -12px 48px #0003;padding-bottom:env(safe-area-inset-bottom);overflow:hidden}.manga-editor[data-mobile=true][data-mobile-expanded=true] [data-mobile-sheet]{height:92%}.manga-editor[data-mobile=true] .mobile-sheet-heading{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:8px 10px 0 16px;min-height:52px}.manga-editor[data-mobile=true] .mobile-sheet-heading strong{flex:1 1;min-width:0;font-size:14px}.manga-editor[data-mobile=true] .mobile-sheet-heading button{min-height:44px;min-width:44px;font-size:11px}.manga-editor[data-mobile=true] .mobile-sheet-heading [data-sheet-close]{font-size:24px}.manga-editor[data-mobile=true] .left-sidebar>.editor-tabs{display:none}.manga-editor[data-mobile=true] .right-sidebar>.editor-tabs{flex:0 0 44px}.manga-editor[data-mobile=true] .sidebar-scroll{flex:1 1;padding:10px 14px 20px;overscroll-behavior:contain;scroll-padding-block:12px 64px}.manga-editor[data-mobile=true] .sidebar-scroll button{min-height:40px}.manga-editor[data-mobile=true] :is(input[type=search],textarea,.text-toolbar input[type=number],.text-toolbar select){font-size:16px}.manga-editor[data-mobile=true] .asset-filters{gap:4px;padding-top:0}.manga-editor[data-mobile=true] .asset-filters input{min-height:42px}.manga-editor[data-mobile=true] .asset-categories{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior:contain}.manga-editor[data-mobile=true] .asset-categories button{flex:0 0 auto;padding:6px 10px;font-size:11px}.manga-editor[data-mobile=true] .asset-categories:not([data-expanded=true]) button[data-primary-category=false]:not([aria-pressed=true]){display:none}.manga-editor[data-mobile=true] .asset-categories[data-expanded=true]{flex-wrap:wrap;max-height:132px;overflow-y:auto}.manga-editor[data-mobile=true] .asset-filters .micro{margin:0}.manga-editor[data-mobile=true] .asset-grid-window{overscroll-behavior:contain}.manga-editor[data-mobile=true] .mobile-panel-list{display:flex;gap:5px;overflow-x:auto;margin-bottom:12px}.manga-editor[data-mobile=true] .mobile-panel-list button{min-width:44px;border:1px solid var(--line)}.manga-editor[data-mobile=true] .mobile-panel-list button[aria-pressed=true]{color:var(--red);border-color:var(--red)}.manga-editor[data-mobile=true] .selection-status{margin-bottom:12px}.manga-editor[data-mobile=true] .reference-add,.manga-editor[data-mobile=true] .reference-tile{width:72px;height:72px}.manga-editor[data-mobile=true] .reference-tile button{width:40px}.manga-editor[data-mobile=true] .generate-button{position:sticky;bottom:0;z-index:13;box-shadow:0 4px 16px #0002}.manga-editor[data-mobile=true] .layer-row>button:not(.layer-select){min-width:40px}.manga-editor[data-mobile=true] .project-controls{display:flex;flex-direction:column;align-items:stretch;margin:0;gap:10px}.manga-editor[data-mobile=true] .project-controls>*{justify-content:space-between}.manga-editor[data-mobile=true] .project-controls .editor-theme-toggle{display:flex}.manga-editor[data-mobile=true] .project-controls .editor-theme-toggle button{flex:1 1}.manga-editor[data-mobile=true] .export-wrap{margin-top:12px}.manga-editor[data-mobile=true] .export-wrap>button{width:100%}.manga-editor[data-mobile=true] .export-menu{position:static;width:100%;margin-top:6px;box-shadow:none}.manga-editor[data-mobile=true] .export-menu button{white-space:normal}.manga-editor[data-mobile=true] .mobile-account-links{display:grid;margin-top:18px;padding-top:10px;border-top:1px solid var(--line)}.manga-editor[data-mobile=true] .mobile-account-links a{display:flex;align-items:center;min-height:44px;padding:8px;color:var(--text);text-decoration:none}.manga-editor[data-mobile=true] .page-layout-chooser{justify-content:flex-start;padding-top:40px}.manga-editor[data-mobile=true] .page-layout-card{min-height:80px}@media (max-height:500px) and (orientation:landscape){.manga-editor[data-mobile=true] .editor-top{min-height:44px;padding-block:2px}.manga-editor[data-mobile=true] .mobile-editor-nav{position:absolute;left:8px;top:calc(46px + env(safe-area-inset-top));right:8px;z-index:12;border:0;background:var(--editor-surface,white);border-radius:8px}.manga-editor[data-mobile=true] .canvas-toolbar{margin-top:44px}.manga-editor[data-mobile=true] [data-mobile-sheet]{left:auto;width:min(58%,480px);height:calc(100% - 8px);max-height:calc(100% - 8px);border-radius:16px 0 0 0}.manga-editor[data-mobile=true][data-mobile-expanded=true] [data-mobile-sheet]{width:min(86%,720px)}.manga-editor[data-mobile=true] .mobile-tool-rail{padding-block:0}.manga-editor[data-mobile=true] .drawing-toolbar{flex-wrap:nowrap}.manga-editor[data-mobile=true] .drawing-tool-buttons{flex:1 1}.manga-editor[data-mobile=true] .brush-swatches{flex:0 0 auto}.manga-editor[data-mobile=true] .brush-swatches button{width:28px}}.editor_editor__CsVPq *{box-sizing:border-box}.editor_editor__CsVPq{flex:1 1;--accent:var(--editor-accent,#d93824);--ink:var(--editor-text,#252c34);--muted:var(--editor-text-muted,#7b8493);--line:var(--editor-border,#ececef);width:100%;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--editor-surface,white);color:var(--ink);font-size:13px;line-height:1.5;font-family:inherit}.editor_editor__CsVPq button,.editor_editor__CsVPq input,.editor_editor__CsVPq select,.editor_editor__CsVPq textarea{font:inherit}.editor_editor__CsVPq button{cursor:pointer;border:1px solid var(--editor-border,#e7e7eb);border-radius:6px;background:var(--editor-surface,white);color:inherit;padding:8px 12px}.editor_editor__CsVPq button:disabled{cursor:not-allowed;opacity:var(--editor-disabled-opacity,.42)}.editor_editor__CsVPq button:focus-visible,.editor_editor__CsVPq input:focus-visible,.editor_editor__CsVPq select:focus-visible,.editor_editor__CsVPq textarea:focus-visible{outline:2px solid var(--editor-focus,#4e9df9);outline-offset:3px}.editor_editor__CsVPq img{display:block;max-width:100%}.editor_top__qGCej{display:flex;align-items:center;gap:20px;padding:12px 21px;border-bottom:1px solid var(--line);min-height:62px;flex-shrink:0}.editor_top__qGCej>a{color:var(--muted);font-size:26px;text-decoration:none}.editor_top__qGCej>strong{font-size:16px}.editor_save__jnQVw{color:var(--muted);font-size:12px}.editor_save__jnQVw:before{content:"";display:inline-block;height:7px;width:7px;border-radius:50%;background:var(--editor-surface-raised,#60a663);margin-right:7px}.editor_editor__CsVPq .editor_primary__pVC7D{background:var(--editor-primary,var(--accent));color:white;font-weight:700;border-color:var(--accent);letter-spacing:.35px;padding:11px 22px}.editor_topActions__MXcI8{margin-left:auto;display:flex;align-items:center;gap:10px;flex-shrink:0}.editor_topActions__MXcI8>button{white-space:nowrap}.editor_body__gYIRT{flex:1 1;min-height:0;display:grid;grid-template-columns:clamp(225px,18vw,320px) minmax(0,1fr) clamp(290px,23vw,370px)}.editor_left__tNZFI,.editor_right__qnxM1{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--editor-surface,white)}.editor_left__tNZFI{border-right:1px solid var(--line)}.editor_right__qnxM1{border-left:1px solid var(--line)}.editor_tab__n2kWV{height:48px;flex-shrink:0;padding:14px;text-align:center;color:var(--accent);border-bottom:2px solid var(--accent);font-size:11px;font-weight:700;letter-spacing:.3px}.editor_sidebarContent___9x7G{padding:18px;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}.editor_sidebarContent___9x7G h1{font-size:18px;letter-spacing:-.7px;margin:6px 0 24px;font-weight:800}.editor_fieldLabel__CUxOy,.editor_sidebarContent___9x7G h2{display:block;font-size:10px;letter-spacing:.6px;font-weight:700;color:var(--muted);margin:19px 0 9px}.editor_sidebarContent___9x7G h2:first-child{margin-top:0}.editor_hint__PfTI6{font-size:11px;color:var(--muted);margin:8px 0 16px;line-height:1.6}.editor_editor__CsVPq .editor_sourceCard__m_GUR{padding:0;width:100%;overflow:hidden;text-align:left;border-color:var(--editor-border,#dedfe4)}.editor_sourceCard__m_GUR img{width:100%;height:140px;object-fit:contain;background:#f3f3f3}.editor_sourceCard__m_GUR>span{display:block;padding:8px 10px;font-size:10px;color:var(--muted)}.editor_sourceCard__m_GUR .editor_sourcePlaceholder__zdd_9{height:105px;display:grid;place-items:center;background:var(--editor-surface-raised,#f8f8f9);font-size:32px}.editor_frameCard__tMa0y{position:relative;width:100%}.editor_frameCard__tMa0y .editor_sourceCard__m_GUR{display:block}.editor_editor__CsVPq .editor_frameDownload__S5bI7{position:absolute;top:6px;right:6px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;color:var(--muted);background:var(--editor-surface,white);border:1px solid var(--line);border-radius:5px;box-shadow:0 1px 4px #0002}.editor_editor__CsVPq .editor_frameDownload__S5bI7:hover:not(:disabled){background:var(--editor-hover,#f5f5f6);color:var(--ink)}@media(max-width:780px){.editor_frameCard__tMa0y{max-width:220px}}.editor_editor__CsVPq .editor_textButton__ruXmd{border:0;padding:7px 0;margin-right:16px;color:var(--muted);font-size:11px}.editor_modeGroup__tuDp6{display:grid;grid-template-columns:1fr 1fr;gap:6px}.editor_modeGroup__tuDp6 button{font-size:11px;padding:9px 3px}.editor_modeGroup__tuDp6 button[aria-pressed=true]{background:var(--editor-selected,#fbebe8);color:var(--accent);border-color:var(--accent)}.editor_history__7hPkE{display:grid;gap:12px}.editor_history__7hPkE article{border:1px solid var(--editor-border,#e1e1e5);border-radius:6px;overflow:hidden}.editor_history__7hPkE article.editor_selectedVersion__yo3PW{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.editor_history__7hPkE article>button:first-child{border:0;padding:0;display:flex;text-align:left;border-radius:0;width:100%}.editor_history__7hPkE img{width:38%;height:87px;object-fit:cover;background:#f5f5f6}.editor_history__7hPkE button>span{padding:9px;min-width:0;display:grid;gap:2px;font-size:11px}.editor_history__7hPkE small,.editor_history__7hPkE time{font-size:9px;color:var(--muted)}.editor_versionActions__y6iGJ{display:flex;flex-wrap:wrap;border-top:1px solid var(--line)}.editor_editor__CsVPq .editor_versionDelete__Xv9mD,.editor_editor__CsVPq .editor_versionDownload___pY6n{border:0;border-radius:0;padding:5px 3px;font-size:10px;color:var(--muted);flex:1 1 auto;white-space:nowrap}.editor_editor__CsVPq .editor_versionDelete__Xv9mD{color:var(--accent)}.editor_editor__CsVPq .editor_versionDelete__Xv9mD:hover{background:var(--editor-selected,#fbebe8)}.editor_workspace__QPK_c{min-width:0;min-height:0;background:var(--editor-workspace,#282828);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 30px 38px;gap:14px;overflow:auto}.editor_workspace__QPK_c.editor_dragging__wBJwd{outline:2px dashed var(--editor-workspace-raised,#ffad9e);outline-offset:-12px}.editor_workspaceLabel__GJNPy{position:absolute;top:16px;left:24px;right:24px;font-size:11px;color:var(--editor-workspace-muted,#c1c4c9)}.editor_editor__CsVPq .editor_replaceBox__DXNJY{flex-shrink:0;width:min(430px,100%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 18px;border:1px dashed var(--editor-workspace-border,#666);border-radius:9px;background:var(--editor-workspace-raised,#303030);color:var(--editor-workspace-muted,#c6c9ce);text-align:center}.editor_replaceBox__DXNJY>span{font-size:27px;line-height:1}.editor_replaceBox__DXNJY>small{font-size:11px}.editor_editor__CsVPq .editor_replaceBox__DXNJY:hover{border-color:var(--editor-workspace-border,#a3a7ae);background:var(--editor-workspace-hover,#353535)}.editor_dragging__wBJwd .editor_replaceBox__DXNJY{border-color:var(--editor-workspace-border,#ffad9e);background:var(--editor-workspace-raised,#46312e);color:white}.editor_referenceHint__AOoMz{margin:7px 0 0;font-size:10px;color:var(--muted)}.editor_dragging__wBJwd .editor_imageStage__3A6rO>img,.editor_dragging__wBJwd .editor_playerStage__Cpk26 video{opacity:var(--editor-disabled-opacity,.4);filter:blur(1px)}.editor_dropFeedback__JrhhF{position:absolute;inset:16px;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;pointer-events:none;background:var(--editor-surface-raised,#14141470);color:white;text-align:center}.editor_dropFeedback__JrhhF strong{font-size:17px;padding:12px 18px;border-radius:8px;background:var(--editor-surface-raised,#242424ed);box-shadow:0 6px 24px #0003}.editor_dropFeedback__JrhhF span{font-size:11px;color:var(--editor-text-muted,#e0e0e0)}.editor_editor__CsVPq .editor_uploadArea__hY3lT{width:min(500px,100%);min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 25px;border:1px dashed var(--editor-workspace-border,#6a6a6a);border-radius:10px;background:var(--editor-workspace-raised,#2e2e2e);color:white;gap:13px;text-align:center}.editor_uploadArea__hY3lT .editor_uploadIcon__NoqMy{font-size:32px;color:var(--editor-workspace-muted,#d7d8db)}.editor_uploadArea__hY3lT strong{font-size:21px}.editor_uploadArea__hY3lT small,.editor_uploadArea__hY3lT>span:not(.editor_uploadIcon__NoqMy){color:var(--editor-workspace-muted,#aaaeb5)}.editor_uploadArea__hY3lT small{font-size:11px;line-height:1.9;margin-top:8px}.editor_imageStage__3A6rO{position:relative;max-width:100%;max-height:100%;width:auto;height:100%;min-height:0;flex:1 1 auto;display:flex;justify-content:center;align-items:center;box-shadow:0 10px 30px #0002}.editor_imageStage__3A6rO>img{height:100%;width:100%;object-fit:contain}.editor_playerStage__Cpk26{position:relative;max-height:100%;width:100%;min-height:0;display:flex;flex-direction:column;align-items:center;gap:14px}.editor_playerStage__Cpk26 video{width:100%;max-height:calc(100% - 55px);min-height:0;background:black}.editor_playerStage__Cpk26 button{color:var(--editor-workspace-text,#eee);border-color:var(--editor-workspace-border,#666);background:var(--editor-workspace-raised,#333);font-size:12px}.editor_editor__CsVPq .editor_clearMedia__wLEY3{position:absolute;top:10px;right:10px;z-index:2;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid var(--editor-border,#ffffff65);border-radius:50%;color:white;background:var(--editor-surface-raised,#202020ce);font-size:23px;line-height:1;box-shadow:0 2px 8px #0003}.editor_clearMedia__wLEY3>svg{display:block;flex:none}.editor_editor__CsVPq .editor_clearMedia__wLEY3:hover{background:var(--editor-hover,#171717)}.editor_newVideoDialog__X3dwF{width:min(440px,calc(100vw - 32px));border:1px solid var(--line);border-radius:12px;padding:25px;color:var(--ink);background:var(--editor-surface,white);box-shadow:0 20px 80px #0004}.editor_newVideoDialog__X3dwF::backdrop{background:var(--editor-backdrop,#0a101875)}.editor_newVideoDialog__X3dwF h2{margin:0 0 12px;font-size:21px}.editor_newVideoDialog__X3dwF p{color:var(--muted);margin:0 0 24px}.editor_newVideoDialog__X3dwF>div{display:flex;justify-content:flex-end;gap:10px}.editor_playerMetadata__brjOJ{color:var(--editor-workspace-muted,#aeb2ba);font-size:10px;position:absolute;bottom:14px}.editor_references__X0uxX{display:flex;flex-wrap:wrap;gap:8px}.editor_addReference__XyPDJ,.editor_reference__J7iPb{position:relative;width:64px;height:64px;flex-shrink:0}.editor_reference__J7iPb{border-radius:6px;border:1px solid var(--line);overflow:hidden;background:var(--editor-surface-raised,#f7f7f8)}.editor_reference__J7iPb img{width:100%;height:100%;object-fit:cover}.editor_reference__J7iPb>span{position:absolute;top:4px;left:4px;color:white;background:var(--editor-surface-raised,#252525);border-radius:3px;padding:1px 5px;font-size:9px;font-weight:700}.editor_reference__J7iPb button{position:absolute;bottom:2px;right:2px;padding:0;width:19px;height:19px;line-height:16px;color:var(--editor-text-muted,#7d2620);background:var(--editor-surface,#fff)}.editor_editor__CsVPq .editor_addReference__XyPDJ{font-size:25px;color:var(--muted);background:var(--editor-surface-raised,#f9f9fa)}.editor_promptWrap__3dMD9{position:relative}.editor_promptWrap__3dMD9 textarea{width:100%;height:118px;resize:vertical;min-height:86px;border:1px solid var(--editor-border,#e4e4e8);background:var(--editor-input,#fafafa);padding:11px;border-radius:7px;font-size:12px;line-height:1.6;color:var(--ink)}.editor_promptWrap__3dMD9 textarea::placeholder{color:var(--muted)}.editor_mentions__5PePb{position:absolute;z-index:9;left:0;right:0;top:100%;box-shadow:0 8px 30px #0002;background:var(--editor-surface,white);border:1px solid var(--line);border-radius:7px;padding:6px}.editor_mentions__5PePb>small{padding:3px 6px;color:var(--muted);font-size:9px}.editor_mentions__5PePb button{width:100%;display:flex;align-items:center;gap:8px;border:0;padding:6px}.editor_mentions__5PePb button[aria-selected=true]{background:var(--editor-selected,#fcece8)}.editor_mentions__5PePb img{width:30px;height:30px;object-fit:cover}.editor_mentions__5PePb button span{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.editor_settings__Ctk4g{padding:14px;border-radius:7px;background:var(--editor-surface-raised,#f8f8f9);margin:14px 0;display:grid;gap:7px}.editor_settings__Ctk4g label{color:var(--muted);font-size:11px;margin-top:6px}.editor_settings__Ctk4g label:first-child{margin-top:0}.editor_settings__Ctk4g strong{color:var(--ink);float:right}.editor_settings__Ctk4g select{width:100%;padding:7px 9px;border:1px solid var(--editor-border,#e3e3e7);border-radius:5px;background:var(--editor-input,white);font-size:11px}.editor_settings__Ctk4g input[type=range]{accent-color:var(--accent);width:100%}.editor_rangeEnds__c3Wre{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;margin-top:-5px}.editor_settings__Ctk4g .editor_hint__PfTI6{margin:0;font-size:10px}.editor_generate__bmVxu{width:100%;min-height:49px;font-size:12px!important}.editor_creditNote___2lAI{color:var(--muted);font-size:9px;text-align:center;margin:8px 0 16px}.editor_warning__8cGFe{color:var(--editor-warning-text,#965021);background:var(--editor-warning-bg,#fff6e9);padding:8px 10px;border-radius:5px;font-size:11px}.editor_warning__8cGFe button{border:0;padding:0;background:none;text-decoration:underline}.editor_error__HbiTK{color:var(--editor-error-text,#9a342a);padding:13px;border:1px solid var(--editor-error-border,#edc8c2);border-radius:7px;background:var(--editor-error-bg,#fff5f3);font-size:12px}.editor_error__HbiTK p{margin:6px 0 9px;white-space:pre-wrap;overflow-wrap:anywhere}.editor_error__HbiTK button{padding:5px 12px;border-color:var(--editor-error-border,#e3b4ac)}.editor_notice__m9Mwa{color:var(--editor-success,#47784b);font-size:12px}.editor_promptUsed__5PBWC{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--editor-text-muted,#6f7683);border:1px solid var(--line);background:var(--editor-surface-raised,#fafafa);border-radius:6px;padding:10px;font-size:11px;line-height:1.7}.editor_overlay__iHiVj{position:absolute;inset:0;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--editor-surface-raised,#14253720)}.editor_sheen__vZK5J{position:absolute;inset:-60%;background:linear-gradient(110deg,transparent 30%,#fff0 39%,#fff4 49%,#fff0 58%,transparent 70%);animation:editor_animationSweep__86zjl 3.8s ease-in-out infinite;pointer-events:none}.editor_progressCard__bUaVW{position:relative;width:min(320px,calc(100% - 24px));background:var(--editor-progress-surface,#ffffffe6);border:1px solid var(--editor-border,#fffc);box-shadow:0 8px 30px #19233326;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;padding:20px;color:var(--editor-text,#334053)}.editor_progressHeading__seazx{display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:.4px;align-items:center}.editor_progressHeading__seazx strong{font-size:18px}.editor_statusMessages__Nlry_{position:relative;height:24px;margin:14px 0;font-size:12px}.editor_statusMessages__Nlry_ span{position:absolute;inset:0;opacity:0;transition:opacity .65s ease}.editor_statusMessages__Nlry_ .editor_activeMessage__w26sL{opacity:1}.editor_progressTrack__qbAcc{height:5px;background:var(--editor-progress-track,#d9dfe6);border-radius:4px;overflow:hidden}.editor_progressTrack__qbAcc div{height:100%;background:var(--accent);transition:width .2s linear}.editor_progressCard__bUaVW small{display:block;text-align:center;font-size:9px;color:var(--editor-text,#808896);margin-top:8px}.editor_progressCard__bUaVW button{display:block;margin:13px auto 0;padding:6px 25px;font-size:12px}@keyframes editor_animationSweep__86zjl{0%{transform:translateX(-60%)}80%,to{transform:translateX(60%)}}@media (prefers-reduced-motion:reduce){.editor_sheen__vZK5J{animation:none}.editor_progressTrack__qbAcc div,.editor_statusMessages__Nlry_ span{transition:none}}@media (max-width:1050px){.editor_body__gYIRT{grid-template-columns:200px minmax(0,1fr) 280px}.editor_sidebarContent___9x7G{padding:13px}.editor_workspace__QPK_c{padding:48px 15px 38px}.editor_top__qGCej{gap:13px}}@media (max-width:780px){.editor_editor__CsVPq{overflow:auto}.editor_top__qGCej{position:sticky;top:0;background:var(--editor-surface,white);z-index:10;padding:10px 14px;gap:10px;flex-wrap:wrap}.editor_top__qGCej>strong{font-size:14px}.editor_save__jnQVw{font-size:10px}.editor_editor__CsVPq .editor_topActions__MXcI8>.editor_primary__pVC7D{padding:9px 12px}.editor_topActions__MXcI8{gap:7px}.editor_body__gYIRT{display:flex;flex-direction:column;flex:none}.editor_workspace__QPK_c{order:0;min-height:380px;height:55vh;overflow:hidden;padding:46px 16px 28px;gap:10px}.editor_right__qnxM1{order:1}.editor_left__tNZFI{order:2}.editor_sidebarContent___9x7G{overflow:visible}.editor_left__tNZFI,.editor_right__qnxM1{border:0}.editor_imageStage__3A6rO{max-height:100%}.editor_history__7hPkE{grid-template-columns:repeat(3,minmax(0,1fr))}.editor_history__7hPkE article>button:first-child{display:block}.editor_history__7hPkE img{width:100%;height:85px}.editor_sourceCard__m_GUR img{height:130px}.editor_editor__CsVPq .editor_sourceCard__m_GUR{max-width:220px}.editor_left__tNZFI .editor_sidebarContent___9x7G{padding-bottom:25px}.editor_modeGroup__tuDp6{max-width:380px}.editor_uploadArea__hY3lT{min-height:270px!important}.editor_progressCard__bUaVW{padding:14px}}.editor_preparing__yQF8l{position:absolute;z-index:12;top:58px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:10px;background:var(--editor-surface,#fff);color:var(--editor-text,#242424);box-shadow:0 4px 20px #0003;font-size:14px;pointer-events:none}.editor_top__qGCej{gap:12px;flex-wrap:wrap}.editor_top__qGCej .editor_modeGroup__tuDp6{display:flex;flex-wrap:wrap;gap:4px}.editor_top__qGCej .editor_modeGroup__tuDp6 button{padding:7px 10px;white-space:nowrap}.editor_watermarkControl__fLYKB{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.editor_watermarkControl__fLYKB input{accent-color:var(--accent)}.editor_sourceCard__m_GUR img{height:95px}.editor_emptySource__VeWRH{min-height:65px;display:flex!important;align-items:center;text-align:center}.editor_emptyMedia__EI5ag{color:var(--editor-workspace-muted,#c5c5c5);text-align:center;padding:24px}.editor_mediaActions__Faf1x{display:flex;gap:9px}.editor_editor__CsVPq .editor_reference__J7iPb .editor_emptyReference__dPYQV{position:static;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;border:0;padding:5px;color:var(--muted);background:var(--editor-surface-raised,#fafafa);font-size:23px}.editor_emptyReference__dPYQV span{font-size:10px}.editor_referenceDrag__L1SeT{outline:2px solid var(--accent);outline-offset:2px}.editor_diagnostics__WmhV1{font-size:10px;overflow-wrap:anywhere;color:var(--muted);margin-top:16px}@media(max-width:780px){.editor_top__qGCej .editor_modeGroup__tuDp6{order:3;width:100%;justify-content:center}.editor_watermarkControl__fLYKB{margin-left:auto}.editor_sourceCard__m_GUR img{height:90px}.editor_top__qGCej .editor_modeGroup__tuDp6{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}.editor_top__qGCej .editor_modeGroup__tuDp6 button{padding:7px 3px;font-size:10px}}.editor_promptStage__rKVQm{position:relative;width:min(600px,100%);min-height:280px;flex:1 1}@media (max-width:360px){.editor_topActions__MXcI8{flex-wrap:wrap;max-width:100%}}