/* Compact workspace; capability navigation and honest input/output states. */
.upload-zone input[type=file]{max-width:100%;font-size:12px}.upload-zone input::file-selector-button{border:1px solid #c9dcfc;background:#edf4ff;color:#135cc9;border-radius:6px;padding:7px 10px;margin-right:8px;cursor:pointer}.upload-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.upload-thumb{position:relative;min-width:0;background:#fff;border:1px solid #dfE9fa;border-radius:7px;padding:4px}.upload-thumb img{width:100%;height:70px;object-fit:contain;border-radius:4px}.upload-thumb>span{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-thumb .upload-remove{position:absolute;right:-4px;top:-5px;width:23px;height:23px;padding:0;min-height:0;border:1px solid #d7e4f7;border-radius:50%;background:#fff;color:#456181;font-size:17px;line-height:20px;cursor:pointer}.upload-remove:disabled{cursor:default;opacity:.5}.generate-cost{white-space:normal;font-size:12px}.batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.batch-task{min-width:0;border:1px solid #e0eafb;border-radius:8px;padding:12px}.batch-task-heading{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}.batch-task-heading h3{font-size:14px;margin:0}.batch-summary{font-size:12px;color:#577397}.batch-task .result-layout{grid-template-columns:minmax(0,1fr)}.batch-task .reference-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.batch-task .reference-panel .reference-image{height:80px}.batch-task .reference-panel figcaption{font-size:10px;overflow-wrap:anywhere}.batch-task .result-image,.batch-task .result-empty{height:240px}.batch-task .actions{margin-top:10px;flex-wrap:wrap;gap:6px}.batch-task .btn{font-size:12px;padding:6px 9px}.creation-result>.notice{font-size:12px}@media(max-width:1100px){.batch-grid{grid-template-columns:minmax(0,1fr)}}
.member-panel{min-width:0}.member-panel .panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.member-panel .mono{display:block;font-size:11px;overflow-wrap:anywhere}.member-panel table{width:100%}.member-panel .actions{gap:6px;flex-wrap:wrap}.member-panel .btn{padding:7px 12px;font-size:13px}.member-filter{max-width:250px}.account-grid>*,.work-main>div{min-width:0}.member-panel .table-scroll{max-width:100%;overflow:auto}.member-panel .notice{line-height:1.7}.dialog-backdrop .dialog{max-height:90vh;overflow:auto}
.work-main{font-size:14px;padding-top:22px}.work-head h1{font-size:26px}.work-head p{font-size:13px}.work-head{min-height:60px;margin-bottom:18px}.work-slogan{font-size:12px}
.work-main .panel h2,.creation-result .panel-title h2,.recent .panel-title h2{font-size:16px}
.work-main .create-grid{margin-left:0;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:18px}
.create-panel .current-capability{padding-bottom:12px;border-bottom:1px solid #e3edfc;margin-bottom:14px}
.create-panel .field,.create-panel .form-label,.prompt-heading label{font-size:14px}.create-panel .choice{font-size:13px;padding:9px}.create-panel textarea{font-size:13px;min-height:130px}.prompt-heading{margin-top:18px}.dimension-section{margin-top:18px}.generate-row .btn.block{font-size:16px}.sidebar{display:flex;flex-direction:column;height:100vh;overflow-y:auto;overscroll-behavior:contain}.sidebar-sub{padding-bottom:18px}.side-nav a{font-size:14px;padding:10px 12px}.nav-divider{margin:12px 9px}.side-user{margin-top:auto;padding-top:20px;position:relative;bottom:auto}
.capability-nav{display:grid;gap:3px;padding:3px 0 7px 13px;border-left:1px solid #dce9fc;margin-left:20px}
.capability-nav .choice{justify-content:flex-start;background:transparent;border:1px solid transparent;border-radius:5px;font-size:13px;padding:8px 9px;gap:8px;flex:none;box-shadow:none}
.capability-nav .choice .icon{width:16px;height:16px}.capability-nav .choice.active{background:#e5efff;color:#075ff3;border-color:#d2e2ff}.capability-nav .choice small{margin-left:auto;font-size:9px;color:#8293ac}
.result-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.result-layout.single{grid-template-columns:minmax(0,1fr)}
.result-layout figure{min-width:0;margin:0;text-align:center}.result-layout figcaption{font-size:12px;font-weight:600;color:#5a7093;margin-top:8px}
.result-layout .result-image,.reference-image{display:block;width:100%;height:clamp(240px,28vw,420px);object-fit:contain;background:#f5f8fd;border:1px solid #e4edfa;border-radius:5px}
.reference-panel{display:grid;gap:12px;align-content:start;min-width:0}.reference-panel:has(figure:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}.reference-panel:has(figure:nth-child(2)) .reference-image{height:210px}
.result-layout .result-empty{height:clamp(240px,28vw,420px);min-height:0;border:1px solid #e4edfa;border-radius:5px;background:#f5f8fd}.result-layout .result-empty h3{font-size:16px}.result-layout .result-empty p{font-size:12px}.result-layout .result-empty .icon{color:#1970ff;width:32px;height:32px;margin-bottom:12px}
.example-crop{height:clamp(240px,28vw,420px);overflow:hidden;position:relative;border-radius:5px;background:#f5f8fd;border:1px solid #e4edfa}
.example-crop img{position:absolute;max-width:none;width:200%;height:100%;object-fit:cover;left:0;top:0}.example-crop.right img{left:-100%}.example-crop.whole img{position:static;width:100%;height:100%;object-fit:contain}
.example-IMAGE_VARIATION.left img{width:320%;left:0}.example-IMAGE_VARIATION.right img{width:150%;left:-50%}
.example-SMART_EXPAND.left img{width:200%;left:-50%;object-fit:cover}.example-SMART_EXPAND.right img{width:100%;left:0;object-fit:contain}
.example-prompt{font-size:12px;line-height:1.8;color:#687f9f;background:#f5f9ff;padding:10px 12px;border-radius:5px}
.creation-result .result-guidance{font-size:11px}.creation-result .result-toolbar .btn{font-size:12px;padding:7px 10px}.creation-result .result-toolbar .status{font-size:11px}
@media(max-width:1100px) and (min-width:761px){.sidebar{width:190px;max-width:none}.work-main{margin-left:190px;padding-left:18px;padding-right:18px}.work-main .create-grid{grid-template-columns:minmax(250px,300px) minmax(0,1fr)}.result-layout{grid-template-columns:1fr}.example-crop,.result-layout .result-image,.reference-image,.result-layout .result-empty{height:260px}}
@media(max-width:760px){.sidebar{height:auto;overflow:visible;display:block}.side-nav{flex-wrap:wrap}.capability-nav{order:5;width:100%;margin:6px 0 0;padding:7px 0 0;border-left:0;border-top:1px solid #dce9fc;grid-template-columns:repeat(3,minmax(0,1fr))}.capability-nav .choice{font-size:12px;padding:8px 4px;gap:4px}.capability-nav .choice small{display:none}.work-main .create-grid{grid-template-columns:1fr}.work-head h1{font-size:24px}.work-head p{font-size:11px}.work-head{min-height:50px}.result-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.result-layout.single{grid-template-columns:1fr}.example-crop,.result-layout .result-image,.reference-image,.result-layout .result-empty{height:200px}.reference-panel:has(figure:nth-child(2)){grid-template-columns:1fr}.reference-panel:has(figure:nth-child(2)) .reference-image{height:120px}.result-layout.single .example-crop,.result-layout.single .result-image,.result-layout.single .result-empty{height:280px}.result-layout .result-empty{padding:12px}.result-layout .result-empty h3{font-size:14px}.result-layout .result-empty p{font-size:11px}.side-user{display:none}}

/* Batch cards deliberately stay compact instead of inheriting full-size single previews. */
.creation-result .batch-task .result-layout{grid-template-columns:minmax(0,1fr)}
.creation-result .batch-task .reference-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
.creation-result .batch-task .reference-panel .reference-image{height:80px}
.creation-result .batch-task .result-image,.creation-result .batch-task .result-empty{height:240px;min-height:0}
.create-panel .generate-row{display:flex;flex-direction:column;gap:9px}
.create-panel .generate-row .generate-cost{position:static;transform:none;order:-1;color:#41618f;text-align:center;font-size:13px}
.create-panel .generate-row .btn.block{padding:13px 12px}
.text-create-panel fieldset{border:0;padding:0;margin:0;min-width:0}
.text-create-panel .field{margin-bottom:16px}
.text-create-panel textarea{width:100%;resize:vertical}
.text-result{min-width:0;width:100%}
.text-result pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:65vh;overflow:auto;user-select:text;font:inherit;line-height:1.7}
.text-result [role=status]{margin-left:12px;color:var(--muted)}
/* Bounded local video playback, including narrow mobile task views. */
.video-result {min-width:0;max-width:100%;overflow-wrap:anywhere;}
.video-result video {display:block;width:100%;max-width:100%;max-height:70vh;background:#101820;border-radius:12px;}
.video-result progress {width:min(100%,280px);}
.video-references{min-width:0;max-width:100%;margin-top:18px}.video-references h3{font-size:15px}.video-reference-input{padding:12px 0;border-top:1px solid #e0eafb;min-width:0}.video-reference-input input[type=file]{max-width:100%;width:100%;font-size:12px}.video-reference-url{display:flex;gap:6px;align-items:center;margin-top:8px}.video-reference-url input{min-width:0;width:0;flex:1}.video-reference-url .btn{flex:none;font-size:12px;padding:8px}.video-reference-list{display:grid;gap:8px;margin-top:12px}.video-reference-item{min-width:0;display:flex;align-items:center;gap:8px;border:1px solid #dbe7f8;border-radius:6px;padding:8px}.video-reference-item>img{width:50px;height:50px;object-fit:contain}.video-reference-item>video{width:80px;max-height:70px}.video-reference-item>audio{width:100px;max-width:35%}.video-reference-meta{min-width:0;flex:1;overflow-wrap:anywhere}.video-reference-meta span,.video-reference-meta small{display:block;font-size:12px}.video-reference-item .btn{flex:none;padding:6px 8px;font-size:12px}.video-reference-history{padding-left:20px;font-size:12px}.video-reference-history li{margin-top:8px;overflow-wrap:anywhere}.create-panel:has(.video-references)>fieldset{border:0;margin:0;padding:0;min-width:0}
