.points-balance{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:10px;padding:6px 12px}.points-balance b{color:var(--text);margin-left:8px}.recharge-button{border:0;padding:7px 14px;background:#ffb524;color:white;font-size:12px}.studio-content{padding-top:calc(var(--header) + 24px)}.studio-alert{background:#fff0ee;border:1px solid #f5ccc5;color:#ae4037;padding:12px 18px;border-radius:9px;margin-bottom:16px;overflow-wrap:anywhere}.creator-layout{display:grid;grid-template-columns:minmax(340px,420px) minmax(0,1fr);gap:24px}.creator-panel,.results-panel,.story-workbench,.account-panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}.creator-title h1{font-size:26px;margin:5px 0 10px;color:var(--text)}.creator-title p{font-size:12px;color:var(--muted);margin:0 0 25px}.studio-form{display:flex;flex-direction:column;gap:18px}.studio-form label,.studio-label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}.studio-form input,.studio-form textarea,.studio-form select,.studio-label textarea,.works-filter select{width:100%;border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--bg);color:var(--text);font-size:13px;outline:0;line-height:1.6}.studio-form textarea,.studio-label textarea{resize:vertical}.studio-form input:focus,.studio-form textarea:focus,.studio-form select:focus,.studio-label textarea:focus{border-color:var(--blue)}.studio-form h2{margin:0;font-size:21px}.muted{color:var(--muted);font-size:12px;line-height:1.7}.text-button{border:0;background:none;color:var(--blue);font-size:12px;padding:6px}.reference-upload{border:0;padding:0;margin:0}.reference-upload legend{font-size:13px;font-weight:600;margin-bottom:10px}.reference-upload small{display:block;color:var(--muted);font-size:11px;margin-top:10px}.upload-actions{display:flex;gap:8px;align-items:center}.upload-actions .button,.upload-button{border:1px dashed #bac8ee;background:var(--active);color:var(--blue);padding:9px 12px;font-size:12px;border-radius:7px;cursor:pointer}.media-previews{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:10px}.media-thumb{position:relative;width:78px;height:78px}.media-thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}.media-thumb button{position:absolute;right:-4px;top:-5px;background:#33415c;color:#fff;border:0;border-radius:50%;width:21px;height:21px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.form-grid label{font-size:12px}.studio-form .checkbox-label{display:flex;flex-direction:row;align-items:center;font-size:12px}.checkbox-label input{width:auto;accent-color:var(--blue)}.generate-bar{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line);padding-top:15px}.generate-bar span{color:var(--muted);font-size:12px}.generate-bar .button{border:0}.button:disabled{opacity:.5;cursor:wait;transform:none}.results-panel>header,.media-dialog>header,.task-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.results-panel h2{margin:0;font-size:17px}.result-list{display:flex;flex-direction:column;gap:15px}.result-card{border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden;min-width:0}.result-card header{display:flex;justify-content:space-between;gap:8px;padding:12px 14px;font-size:11px;color:var(--muted)}.result-media{background:var(--bg);display:grid;place-items:center;min-height:180px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.result-media img,.result-media video{width:100%;max-height:360px;object-fit:contain}.result-text{margin:0;padding:15px;font-size:12px;white-space:pre-wrap;max-height:200px;overflow:auto;word-break:break-word}.result-card footer{padding:12px 14px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px}.result-card footer a{color:var(--blue)}.status-pill{background:var(--active);color:var(--blue);padding:2px 8px;border-radius:5px;font-size:10px}.status-pill.failed,.status-pill.uncertain{background:#fff0ee;color:#b95040}.status-pill.success{background:#e7f5ec;color:#2a8c52}.result-placeholder{padding:30px 16px;text-align:center;color:var(--muted);font-size:12px}.result-placeholder strong{display:block;margin:8px 0;color:var(--text)}.works-filter{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px}.works-filter select{max-width:200px;background:var(--surface)}.works-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.guest-banner{background:var(--active);padding:14px 18px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;margin-top:20px;color:var(--blue)}.guest-banner .button{padding:8px 14px;border:0;font-size:12px;flex-shrink:0}.story-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.story-steps{display:flex;gap:6px;list-style:none;margin:0 0 28px;padding:0;font-size:11px;border-bottom:1px solid var(--line)}.story-steps li{padding:10px 8px;color:var(--muted)}.story-steps li.is-active{color:var(--blue);border-bottom:2px solid var(--blue)}.story-step h2{font-size:19px;margin:0 0 20px}.story-templates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.story-template{border:1px solid var(--line);border-radius:10px;padding:18px;text-align:left;background:var(--bg);color:var(--text)}.story-template:hover{border-color:var(--blue);background:var(--active)}.story-template b,.story-template small{display:block}.story-template b{font-size:14px;margin:6px 0}.story-template small{font-size:11px;color:var(--muted)}.step-actions{display:flex;justify-content:space-between;gap:10px;margin-top:20px}.step-actions .button{border:0;font-size:12px}.story-workbench textarea{width:100%}.account-panel{max-width:980px}.account-panel h1{font-size:28px;color:var(--text);margin:4px 0 22px}.account-panel h2{font-size:18px;margin:22px 0 16px}.wallet-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.wallet-summary>div{padding:22px;background:var(--active);border-radius:12px}.wallet-summary span,.wallet-summary strong{display:block}.wallet-summary span{font-size:12px;color:var(--muted)}.wallet-summary strong{font-size:34px;color:var(--blue);margin-top:6px}.account-panel>.button{border:0;margin-right:8px;font-size:12px}.ledger-scroll{overflow:auto}.studio-table{width:100%;border-collapse:collapse;font-size:12px}.studio-table td,.studio-table th{padding:12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.studio-table th{color:var(--muted);font-weight:500}.studio-login{display:grid;grid-template-columns:1fr 1fr;max-width:980px;margin:50px auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}.login-art{padding:50px;background:linear-gradient(140deg,#e7efff,#e8e0fd);color:#475e95;display:flex;flex-direction:column;justify-content:center}.login-art h1{font-size:40px}.login-art p{font-size:13px}.login-art>span:last-child{font-size:11px;margin-top:28px}.auth-form{padding:45px;gap:20px}.auth-form>p{margin:0}.auth-form>button{border:0}.auth-form>a{font-size:12px;color:var(--muted);text-align:center}.media-dialog,.task-dialog{width:min(860px,calc(100% - 28px));max-height:85vh;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);padding:24px;box-shadow:0 10px 70px #18274344;overflow:auto}.media-dialog::backdrop,.task-dialog::backdrop{background:#16213b66}.media-library{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.media-library button{border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:8px;color:var(--text);overflow:hidden}.media-library img{width:100%;height:110px;object-fit:cover;border-radius:6px}.media-library span{display:block;font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.task-dialog pre{white-space:pre-wrap;word-break:break-word;line-height:1.8;font:inherit;font-size:13px}.task-dialog img,.task-dialog video{width:100%;max-height:500px;object-fit:contain}.task-dialog textarea{width:100%;height:160px;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:8px;padding:14px}.task-dialog h2{margin:0;font-size:19px}.task-dialog .button{margin-top:12px}.assistant-layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:650px;height:calc(100vh - var(--header) - 56px);background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.chat-sidebar{padding:24px 16px;background:var(--bg);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.chat-sidebar h2{display:flex;gap:10px;align-items:center;font-size:18px;margin:0;color:var(--text)}.chat-sidebar h2 .icon{color:var(--blue)}.chat-sidebar small{font-size:11px;color:var(--muted);margin:6px 0 22px}.chat-sidebar>.button{font-size:12px;padding:10px;margin-bottom:25px;border-color:#cbd6fa;color:var(--blue)}.chat-heading{font-size:11px;color:var(--muted);margin-bottom:12px}.chat-conversations{overflow:auto;min-height:0}.chat-conversations button{display:block;width:100%;border:0;background:none;color:var(--text);text-align:left;padding:12px;border-radius:7px;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-conversations button.is-active,.chat-conversations button:hover{background:var(--active);color:var(--blue)}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-topbar{padding:16px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:12px;font-size:13px}.chat-messages{flex:1;overflow:auto;padding:20px 34px;min-height:0}.chat-welcome{text-align:center;max-width:640px;margin:35px auto}.welcome-spark{display:block;font-size:42px;width:76px;height:76px;background:var(--active);border:1px solid #dce3fc;color:var(--blue);border-radius:23px;line-height:76px;margin:0 auto 22px;box-shadow:0 8px 30px #748cef22}.chat-welcome h1{font-size:28px;color:var(--text);margin:13px 0}.chat-welcome p{font-size:12px;color:var(--muted);margin-bottom:24px}.chat-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chat-suggestions button{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:17px;text-align:left;font-size:13px}.chat-suggestions button:hover{border-color:var(--blue)}.chat-suggestions small{display:block;color:var(--muted);margin-top:4px;font-size:11px}.chat-composer{padding:16px 25px;border-top:1px solid var(--line)}.chat-composer textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--surface);color:var(--text);font:inherit;resize:vertical;max-height:170px;outline:0}.chat-composer textarea:focus{border-color:var(--blue)}.chat-composer>div{display:flex;justify-content:space-between;align-items:center;margin-top:9px}.chat-composer .button{border:0;padding:8px 17px;font-size:12px}.chat-composer>small{display:block;text-align:center;font-size:10px;margin-top:10px}.chat-message{margin:15px 0;max-width:90%;font-size:13px;line-height:1.9}.chat-message b{font-size:11px;display:block;margin-bottom:8px;color:var(--muted)}.chat-message p{white-space:pre-wrap;padding:16px;border-radius:10px;margin:0;background:var(--bg);overflow-wrap:anywhere}.chat-message.user{margin-left:auto}.chat-message.user p{background:var(--active)}.chat-message.error p{background:#fff0ee;color:#b95040}
@media(max-width:1200px){.creator-layout{grid-template-columns:minmax(310px,370px) minmax(0,1fr)}.story-layout{grid-template-columns:minmax(0,1fr) 260px}.assistant-layout{grid-template-columns:185px minmax(0,1fr)}.chat-messages{padding:16px 22px}.chat-welcome h1{font-size:24px}.works-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.creator-layout,.story-layout{grid-template-columns:1fr}.result-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.assistant-layout{grid-template-columns:1fr;height:auto;min-height:calc(100vh - 160px)}.chat-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:14px}.chat-sidebar h2,.chat-sidebar>small,.chat-heading{display:none}.chat-sidebar>.button{margin:0;width:130px}.chat-conversations{display:flex;margin-top:10px;max-height:55px}.chat-conversations button{min-width:120px;max-width:190px}.chat-messages{min-height:360px;max-height:55vh}.studio-login{margin:20px auto}.login-art{padding:30px}.auth-form{padding:30px}.points-balance{padding:5px 8px}.recharge-button{display:none}}
@media(max-width:600px){.creator-panel,.results-panel,.story-workbench,.account-panel{padding:20px 16px}.points-balance{font-size:9px}.topbar-actions{gap:5px}.points-balance b{margin-left:3px}.brand>span:last-child{max-width:95px}.account{max-width:70px;font-size:10px}.studio-login{grid-template-columns:1fr}.login-art{padding:24px}.login-art h1{font-size:29px;margin:8px 0}.login-art br{display:none}.login-art>span:last-child{margin-top:5px}.auth-form{padding:25px}.result-list,.works-grid{grid-template-columns:1fr}.guest-banner{padding:12px;gap:12px;font-size:10px}.guest-banner .button{font-size:11px}.form-grid{gap:8px}.studio-form select{padding:10px 8px}.story-steps{gap:0}.story-steps li{font-size:9px;padding:10px 6px}.story-templates{grid-template-columns:1fr}.media-library{grid-template-columns:repeat(2,1fr)}.chat-suggestions{gap:8px}.chat-suggestions button{font-size:12px;padding:12px}.chat-welcome h1{font-size:22px}.chat-messages{padding:16px;min-height:320px}.chat-welcome{margin-top:10px}.welcome-spark{margin-bottom:15px;width:62px;height:62px;line-height:62px}.chat-topbar{padding:14px 16px}.chat-composer{padding:15px}.chat-composer .muted{font-size:10px}.chat-composer textarea{font-size:13px}.wallet-summary{gap:10px}.wallet-summary>div{padding:16px}.wallet-summary strong{font-size:28px}}

.story-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.story-product-wide{grid-column:1/-1}.story-product-grid input[readonly]{color:var(--muted);background:var(--active)}
.story-record-main{display:grid;grid-template-columns:58px minmax(0,1fr);gap:13px;align-items:center;width:100%;padding:14px;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}.story-record-preview{width:58px;height:58px;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:var(--active);color:var(--blue)}.story-record-preview img{width:100%;height:100%;object-fit:cover}.story-record-preview svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2}.story-record-preview .story-visual-play{fill:currentColor;stroke:none}.story-record-info{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-items:center}.story-record-info>b,.story-record-info>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-record-info>b{font-size:13px}.story-record-info>small{grid-column:1/-1;color:var(--muted);font-size:10px}.story-record-info .status-pill{grid-column:2;grid-row:1}.story-record .status-pill.queued,.story-record .status-pill.dispatching,.story-record .status-pill.running{background:var(--active);color:var(--blue)}.task-dialog h3{margin:18px 0 8px;font-size:14px}.task-dialog #task-detail a{display:inline-flex;margin:8px 8px 0 0}
@media(max-width:600px){.story-product-grid{grid-template-columns:1fr}.story-product-wide{grid-column:auto}.story-record-main{grid-template-columns:50px minmax(0,1fr);padding:11px}.story-record-preview{width:50px;height:50px}.story-record-info .status-pill{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

.story-categories{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px}.story-category{max-width:100%;border:1px solid var(--line);border-radius:100px;padding:9px 19px;background:var(--surface);color:var(--muted);font:inherit;font-size:13px;cursor:pointer;overflow-wrap:anywhere;transition:background .18s,color .18s,border-color .18s,box-shadow .18s}.story-category:hover,.story-category:focus-visible{border-color:var(--blue);color:var(--blue)}.story-category.is-active{background:var(--blue);border-color:var(--blue);color:var(--theme-button_text,#fff);box-shadow:0 4px 14px color-mix(in srgb,var(--blue) 22%,transparent)}.story-category:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.story-template .eyebrow{overflow-wrap:anywhere}@media(max-width:600px){.story-categories{gap:8px;margin:14px 0 18px}.story-category{padding:8px 14px;font-size:12px}}
.result-prompt{margin:0;padding:12px 14px;color:var(--text);font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.result-spinner{display:block;width:25px;height:25px;margin:0 auto 10px;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:result-spin .8s linear infinite}@keyframes result-spin{to{transform:rotate(360deg)}}.result-placeholder{min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.dg-inner[data-studio-page="gpt-image"] .result-list,.dg-inner[data-studio-page="jimeng"] .result-list,.dg-inner[data-studio-page="design"] .result-list,.dg-inner #generation-history.result-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:14px;align-items:start}.dg-inner .result-card.history-card{position:relative;display:block;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer;transition:border-color .2s,transform .2s}.dg-inner .result-card.history-card:hover{border-color:var(--blue);transform:translateY(-2px)}.history-card-img{position:relative;display:grid;height:150px;place-items:center;overflow:hidden;background:var(--bg)}.history-card-img>img,.history-card-img>video{width:100%;height:100%;object-fit:cover}.history-status,.history-model{position:absolute;display:inline-flex;align-items:center;min-height:22px;border-radius:5px;color:#fff;font-size:11px}.history-status{top:8px;left:8px;gap:5px;padding:0 8px;background:#10a872}.history-status.pending{background:#c57b12}.history-status.failed,.history-status.uncertain{background:#d64c4c}.history-status i{width:5px;height:5px;border-radius:50%;background:currentColor}.history-model{right:8px;bottom:8px;padding:0 7px;background:rgba(0,0,0,.62)}.history-empty-icon{color:var(--muted);font-size:26px}.history-card-info{padding:12px}.history-prompt{display:-webkit-box;min-height:38px;overflow:hidden;color:var(--text);font-size:13px;line-height:1.45;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical}.history-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;color:var(--muted);font-size:11px}.history-extra-count{position:absolute;right:8px;top:50px;padding:3px 7px;border-radius:5px;background:rgba(0,0,0,.62);color:#fff;font-size:11px}.history-storage-warning{margin:0;padding:0 12px 12px;color:var(--muted);font-size:11px}
.dg-inner #generation-history.result-list:not(.has-history-cards){display:flex!important;grid-template-columns:none;gap:15px}.dg-inner #generation-history.result-list.has-history-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:14px;align-items:start}
.history-card-actions{display:flex;justify-content:flex-end;margin-top:10px}
.record-delete{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:30px;padding:3px 10px;border:1px solid #f1c8c8;border-radius:6px;background:#fff;color:#c23838;font:inherit;font-size:12px;cursor:pointer}
.record-delete:hover{background:#fff0f0;border-color:#dc7777}
.record-delete:disabled{opacity:.6;cursor:wait}
.story-record>footer .record-delete{margin-left:auto}
dialog.task-dialog:has(.task-viewer){width:min(1500px,calc(100vw - 48px));height:min(92dvh,900px);max-width:none;max-height:none;padding:0;overflow:hidden;border:1px solid #d7dce5;border-radius:12px;background:#f1f3f6;color:#1c2433;box-shadow:0 24px 80px #10182855}
dialog.task-dialog:has(.task-viewer)::backdrop{background:#10182899;backdrop-filter:blur(5px)}
dialog.task-dialog:has(.task-viewer)>header{display:none}
.task-viewer{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 390px}
.task-viewer-stage{min-width:0;min-height:0;padding:26px;display:flex;flex-direction:column;gap:14px;background:#f1f3f6}
/* Keep intrinsic image dimensions from expanding the grid beyond the preview area. */
.task-viewer-canvas{position:relative;flex:1;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;overflow:hidden}
.task-viewer-canvas>img,.task-viewer-canvas>video{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;box-shadow:0 12px 36px #1e293b20}
dialog.task-dialog:has(.task-viewer) .task-viewer-canvas>img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.task-viewer-canvas-video{display:flex;flex-direction:column;justify-content:center;gap:10px}
.task-viewer-canvas-video>video{width:100%;max-height:calc(100% - 48px);flex:1;min-height:0}
.task-video-controls{width:min(100%,960px);min-height:40px;flex:none;display:grid;grid-template-columns:36px minmax(60px,1fr) auto 36px 36px;align-items:center;gap:10px;padding:0 10px;border:1px solid #d9dde5;border-radius:7px;background:#fff;color:#273247}
.task-video-control{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:inherit;font-family:inherit;font-size:14px;font-weight:600;line-height:1;cursor:pointer}
.task-video-control:hover{background:#eef2f8;color:#315fc4}
.task-video-progress{width:100%;height:4px;margin:0;accent-color:#3478f6;cursor:pointer}
.task-video-time{color:#5f6b7e;font-family:inherit;font-size:12px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.task-viewer-empty{display:grid;place-items:center;width:min(500px,100%);aspect-ratio:4/3;border:1px dashed #c5cad4;border-radius:8px;color:#798397;background:#e8ebf0;font-size:13px}
.task-viewer-thumbnails{display:flex;justify-content:center;gap:8px;flex:none;max-width:100%;overflow-x:auto;padding:2px}
.task-viewer-thumb{width:64px;height:64px;flex:none;overflow:hidden;padding:0;border:2px solid transparent;border-radius:6px;background:#fff;cursor:pointer}
.task-viewer-thumb[aria-pressed="true"]{border-color:#4779ff}
.task-viewer-thumb img,.task-viewer-thumb video{width:100%;height:100%;object-fit:cover}
.task-viewer-panel{min-width:0;min-height:0;overflow:auto;background:#fff;border-left:1px solid #e0e4eb;padding:0 20px 20px;color:#202a3b}
.task-viewer-toolbar{position:sticky;top:0;z-index:2;min-height:70px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;background:#fff;border-bottom:1px solid #e5e8ef}
.task-viewer-identity{display:flex;flex-basis:100%;align-items:center;gap:10px;min-width:0;margin-right:auto;font-size:13px;font-weight:600}
.task-viewer-avatar{width:36px;height:36px;display:grid;place-items:center;flex:none;border:1px solid #e0e5ed;border-radius:50%;background:#f7f8fa;color:#617087;font-size:18px}
.task-viewer-action{width:36px;height:36px;display:grid;place-items:center;flex:none;border:1px solid #e0e5ed;border-radius:7px;background:#f8f9fb;color:#657187;font-size:17px;cursor:pointer}
.task-viewer-action:hover{border-color:#aab9d5;background:#f1f4f9;color:#315fc4}
.task-viewer-section{padding:17px 0;border-bottom:1px solid #e4e7ed}
.task-viewer-section h3{margin:0 0 12px;color:#202a3b;font-size:13px;font-weight:650}
.task-viewer-prompt{max-height:205px;margin:0;overflow:auto;color:#697487;font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.task-viewer-meta{margin:0}
.task-viewer-meta>div{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e8ebf0;font-size:11px}
.task-viewer-meta>div:last-child{border-bottom:0}
.task-viewer-meta dt{color:#7e8797}
.task-viewer-meta dd{margin:0;color:#263247;text-align:right}
.task-viewer-meta>div:first-child dd{color:#07996d;font-weight:600}
.task-viewer-references{display:flex;gap:8px;flex-wrap:wrap}
.task-viewer-references img{width:72px;height:72px;object-fit:cover;border:1px solid #e1e5eb;border-radius:6px;background:#f5f6f8}
.task-viewer-output summary{cursor:pointer;color:#315fc4;font-size:12px}
@media(max-width:760px){dialog.task-dialog:has(.task-viewer){width:calc(100vw - 20px);height:calc(100dvh - 20px)}.task-viewer{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(240px,45dvh) minmax(0,1fr)}.task-viewer-stage{padding:12px;gap:8px}.task-viewer-panel{border-left:0;padding:0 15px 14px}.task-viewer-toolbar{min-height:58px}.task-viewer-avatar{width:31px;height:31px}.task-viewer-action{width:32px;height:32px}.task-viewer-thumb{width:48px;height:48px}}

.story-template .story-template-visual{position:relative;overflow:hidden}.story-template .story-template-cover{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.story-template .story-template-tag{position:relative;z-index:1}
