﻿
:root {
  --bg-page:#f7f7f8; --bg-shell:#f7f7f8; --bg-panel:#fff; --bg-muted:#f3f3f4;
  --line-soft:#e7e7ea; --line-strong:#d9d9de;
  --text-1:#101114; --text-2:#3a3c43; --text-3:#737782; --text-4:#a1a4ad;
  --accent:#111; --accent-hover:#2a2c33; --accent-soft:#efeff1;
  --success-soft:#cff6b8; --warning-soft:#f6e6a8; --danger-soft:#f7c7d1;
  --high-priority-text:#5b1d2a; --medium-priority-text:#3e2d73; --low-priority-text:#234e1a;
  --danger:#c8475f;
  --radius-sm:10px; --radius:12px; --radius-lg:16px; --radius-xl:20px; --radius-2xl:28px;
  --shadow-shell:0 8px 30px rgba(16,17,20,.08); --shadow-card:0 6px 16px rgba(16,17,20,.06); --shadow-pop:0 14px 44px rgba(16,17,20,.16);
  --nav-height:60px; --rail-width:74px; --project-width:244px; --inspector-width:352px;
  --font:"Inter","PingFang SC","Microsoft YaHei",sans-serif; --font-heading:"Plus Jakarta Sans","PingFang SC","Microsoft YaHei",sans-serif; --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box;margin:0;padding:0} html,body{width:100%;min-height:100%}
body{font-family:var(--font);font-size:14px;line-height:1.5;color:var(--text-1);background:var(--bg-shell)}
button,input,textarea,select{font-family:inherit} button{cursor:pointer} a{color:#2056d5}.hidden{display:none!important}
button,.btn,.btn-sm,.btn-xs,.icon-btn,.rail-item,.action-btn{display:inline-flex;align-items:center;justify-content:center}
.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 500,"GRAD" 0,"opsz" 20}

.welcome-screen{position:fixed;inset:0;z-index:1000;display:flex;justify-content:center;align-items:center;transition:opacity .22s ease}
.welcome-screen.hidden{opacity:0;pointer-events:none}
.welcome-gradient{position:absolute;inset:-20%;background:radial-gradient(60% 70% at 20% 20%,rgba(236,211,255,.85) 0%,transparent 65%),radial-gradient(50% 60% at 80% 25%,rgba(196,228,255,.75) 0%,transparent 65%),linear-gradient(135deg,#f7e9ff 0%,#ebe3ff 50%,#ddf1ff 100%)}
.welcome-card{position:relative;width:min(760px,calc(100% - 40px));border-radius:28px;padding:42px;background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.65);box-shadow:var(--shadow-pop);backdrop-filter:blur(8px)}
.welcome-badge{display:inline-flex;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:600;background:#fff;color:var(--text-2);border:1px solid var(--line-soft)}
.welcome-card h1{margin-top:16px;font-family:var(--font-heading);font-size:36px;line-height:1.2}.welcome-card p{margin-top:12px;color:var(--text-2);font-size:16px;line-height:1.65}.welcome-card .btn{margin-top:22px}

.app-shell{min-height:100vh;padding:0}
.nav{height:var(--nav-height);border-bottom:1px solid var(--line-soft);background:#fff}
.nav-inner{height:100%;padding:0 18px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.nav-brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-logo{width:30px;height:30px;border-radius:9px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;letter-spacing:.03em;flex-shrink:0}
.nav-brand span{font-family:var(--font-heading);font-size:16px;font-weight:700;color:var(--text-1);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:1}
.nav-right{display:flex;align-items:center;gap:12px}.run-badge{border-radius:999px;background:var(--accent-soft);color:var(--text-2);font-size:12px;font-weight:600;padding:6px 12px}.run-badge.running{background:var(--accent);color:#fff}
.progress-inline{display:flex;align-items:center;gap:10px}.progress-track-sm{width:152px;height:6px;border-radius:999px;background:#ececf0;overflow:hidden}.progress-bar-sm{width:0;height:100%;border-radius:999px;background:var(--accent);transition:width .24s ease}.progress-label{min-width:32px;color:var(--text-3);font-size:12px;font-weight:600;text-align:right}
.icon-btn{width:34px;height:34px;border-radius:10px;border:1px solid var(--line-soft);background:#fff;color:var(--text-2);display:inline-flex;align-items:center;justify-content:center;transition:all .16s ease}.icon-btn:hover{border-color:var(--line-strong);background:var(--accent-soft)}

.workspace-layout{min-height:calc(100vh - var(--nav-height));background:var(--bg-panel);display:grid;grid-template-columns:var(--rail-width) var(--project-width) minmax(0,1fr) var(--inspector-width);overflow:hidden}
.workspace-layout.assets-mode{grid-template-columns:var(--rail-width) minmax(0,1fr)}
.workspace-layout.assets-mode .project-sidebar,.workspace-layout.assets-mode .right-sidebar{display:none}
.global-rail{border-right:1px solid var(--line-soft);background:#fff;padding:12px 0;display:flex;flex-direction:column;align-items:center;gap:10px}
.rail-item{width:42px;height:42px;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--text-3);display:inline-flex;align-items:center;justify-content:center}.rail-item .material-symbols-outlined{font-size:20px}.rail-item.active{background:var(--accent);color:#fff;box-shadow:var(--shadow-card)}.rail-item:not(.active):hover{background:var(--accent-soft);border-color:var(--line-soft)}.rail-bottom{margin-top:auto}

.project-sidebar{border-right:1px solid var(--line-soft);background:#fbfbff;padding:0;overflow-y:auto}
.project-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:14px 12px;border-bottom:1px solid var(--line-soft);margin-bottom:0}.section-label{font-family:var(--font-heading);font-size:15px;font-weight:700}
.project-list{display:flex;flex-direction:column;gap:10px}
.project-list{padding:10px}
.project-item{position:relative;border:0;border-radius:10px;background:transparent;padding:0;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;cursor:pointer;overflow:hidden}
.project-item::before{display:none}.project-item:hover{transform:translateY(-1px);box-shadow:var(--shadow-card)}.project-item.active{background:transparent;box-shadow:none}
.project-item-card{background:#f2f2f4;border:1px solid #dedee4;border-radius:10px;padding:8px 8px 7px;position:relative}
.project-item.active .project-item-card{border-color:#9f95ff;box-shadow:0 0 0 1px rgba(121,102,236,.24) inset}
.project-item-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#111;border-radius:10px 0 0 10px}
.project-item-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;padding-left:8px}.project-item-name{font-size:13px;font-weight:700;color:var(--text-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-actions{display:flex;gap:3px;opacity:0;transform:translateY(2px);transition:all .15s ease}.project-item:hover .project-actions,.project-item.active .project-actions{opacity:1;transform:translateY(0)}
.project-actions .btn-xs.icon-only{width:18px;height:18px;padding:0;border:0;background:transparent}
.project-actions .btn-xs.icon-only .material-symbols-outlined{font-size:14px}
.project-mini{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding-left:8px}.project-mini span{font-size:10px;color:var(--text-3);padding:3px 6px;border-radius:5px;background:#eceef1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-mini .chip-running{background:#d8ccf5;color:#3e2d73}.project-mini .chip-success{background:#cff6b8;color:#234e1a}.project-mini .chip-failed{background:#f7c7d1;color:#5b1d2a}
.project-empty{border:1px dashed var(--line-strong);border-radius:var(--radius);padding:12px;background:#fff;color:var(--text-3);display:flex;flex-direction:column;gap:8px}

.page{background:var(--bg-shell);overflow-y:auto;padding:14px}.view-pane{display:flex;flex-direction:column;gap:12px}
.panel-card{border:1px solid var(--line-soft);border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(16,17,20,.03)}
.stats-bar{padding:2px}.stats-inner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.stat-chips{display:flex;flex-wrap:wrap;gap:8px}
.stat-chip{border:1px solid var(--line-soft);border-radius:999px;background:#fff;color:var(--text-3);font-size:12px;font-weight:600;display:flex;align-items:center;gap:7px;padding:6px 12px}
.stat-chip b{color:var(--text-1);font-size:12px}
.stat-dot{width:7px;height:7px;border-radius:50%;background:#b7bcc8;display:inline-block;flex-shrink:0}
.stat-chip.total,.stat-chip.pending{background:#fff}
.stat-chip.running{border-color:transparent;background:#d8ccf5;color:var(--medium-priority-text)}
.stat-chip.running b{color:var(--medium-priority-text)}
.stat-chip.running .stat-dot{background:#5f4698}
.stat-chip.success{border-color:transparent;background:#cff6b8;color:#234e1a}
.stat-chip.success b{color:#234e1a}
.stat-chip.success .stat-dot{background:#2c6d22}
.stat-chip.failed{border-color:transparent;background:#f7c7d1;color:#5b1d2a}
.stat-chip.failed b{color:#5b1d2a}
.stat-chip.failed .stat-dot{background:#7b2b3b}
.quick-params{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.qp-label{color:var(--text-3);font-size:12px;display:inline-flex;align-items:center;gap:6px}
.qp-input,.qp-select,.sel-sm,.sel-xs,.modal-input,.override-input,.prompt-textarea{height:32px;border:1px solid var(--line-soft);border-radius:10px;background:#fff;color:var(--text-1);font-size:12px;padding:0 10px;transition:border-color .15s ease,box-shadow .15s ease}
.qp-input:focus,.qp-select:focus,.sel-sm:focus,.sel-xs:focus,.modal-input:focus,.override-input:focus,.prompt-textarea:focus,textarea:focus{outline:none;border-color:#bdb2e4;box-shadow:0 0 0 3px rgba(184,163,233,.2)}

.btn,.btn-sm,.btn-xs{border:1px solid transparent;border-radius:10px;font-weight:600;line-height:1;transition:all .15s ease}.btn{height:38px;padding:0 15px;font-size:13px}.btn-sm{height:34px;padding:0 12px;font-size:12px}.btn-xs{height:28px;padding:0 9px;font-size:11px}
.btn.primary,.btn-sm.primary{background:var(--accent);color:#fff}.btn.primary:hover,.btn-sm.primary:hover{background:var(--accent-hover)}
.btn.secondary,.btn-sm.secondary,.btn-xs{background:#fff;color:var(--text-2);border-color:var(--line-soft)}.btn.secondary:hover,.btn-sm.secondary:hover,.btn-xs:hover{background:var(--accent-soft)}
.btn.ghost,.btn-sm.ghost,.btn-xs.ghost{background:transparent;border-color:transparent;color:var(--text-3)}.btn.ghost:hover,.btn-sm.ghost:hover,.btn-xs.ghost:hover{background:var(--accent-soft);color:var(--text-1)}
.btn.danger,.btn-sm.danger{background:var(--danger-soft);color:var(--high-priority-text)}
.btn-xs.icon-only{width:25px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.btn-xs.icon-only .material-symbols-outlined{font-size:15px;line-height:1}

.queue-section{padding:12px}
.import-textarea{width:100%;min-height:120px;resize:vertical;border:1px solid var(--line-soft);border-radius:var(--radius);padding:11px 12px;font-size:13px;color:var(--text-1);line-height:1.56}
.import-textarea.side{min-height:170px;background:#fbfbff}
.import-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.import-actions.side button{flex:1}.import-preview-result{color:var(--text-3);font-size:12px}
.preview-sample{margin-top:8px;border:1px solid var(--line-soft);border-radius:var(--radius);max-height:160px;overflow-y:auto}.preview-item{font-size:12px;padding:5px 8px;border-bottom:1px solid var(--line-soft);display:flex;gap:8px}.preview-item:last-child{border-bottom:0}.preview-idx{color:var(--text-4)}
.drop-zone{min-height:118px;border:1.5px dashed #d0cae5;border-radius:var(--radius);background:#fcfbff;color:var(--text-3);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;transition:all .15s ease}
.drop-zone .material-symbols-outlined{font-size:28px}.drop-zone:hover,.drop-zone.active{background:#f1ebff;border-color:#b8a5e3;color:var(--medium-priority-text)}.drop-hint{font-size:11px;color:var(--text-4)}
.drop-zone.side{min-height:126px}
.file-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.file-row.side{padding:8px;border-radius:10px;background:#f5f5ff;border:1px solid var(--line-soft)}
.file-input-hidden{position:absolute;left:-9999px;opacity:0;width:0;height:0}
.file-name{font-size:12px;color:var(--text-3);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-col-label{font-size:12px;color:var(--text-3)}

.queue-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.queue-toolbar-left,.queue-toolbar-right,.batch-range{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.toolbar-divider{width:1px;height:20px;background:var(--line-soft)}.range-sep{color:var(--text-4)}
.queue-toolbar-left .queue-tool-btn:first-of-type{margin-left:10px}
.queue-toolbar-left .queue-tool-btn{min-width:56px;gap:4px}
.queue-toolbar-left .queue-tool-btn .material-symbols-outlined{font-size:14px}
.table-wrap{border:1px solid var(--line-soft);border-radius:var(--radius-lg);overflow:auto;background:#fff}
table{width:100%;min-width:760px;border-collapse:collapse}
th,td{border-bottom:1px solid var(--line-soft);text-align:left;padding:10px 12px;vertical-align:middle}th{background:#fafafc;color:var(--text-3);font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:none}td{font-size:13px}
tr:last-child td{border-bottom:0}tr:hover td{background:#faf8ff}.table-wrap tr.is-selected td{background:#f3eeff!important}
.th-status,.th-thumb,.th-param,.th-action{text-align:center;padding-left:0;padding-right:0}
.status-cell,.thumb-cell,.param-cell,.action-cell{padding-left:0;padding-right:0}
.th-index,.index-cell{text-align:center;padding-left:0;padding-right:0}
.preview{width:44px;height:44px;border-radius:8px;object-fit:cover;background:var(--bg-muted);border:1px solid var(--line-soft)}
.preview-empty{background:#ece8f8;border-color:#d2caee}
.history-imgs{display:flex;flex-wrap:wrap;gap:3px;margin-top:4px}.history-thumb{width:24px;height:24px;border-radius:4px;object-fit:cover;border:1px solid var(--line-soft);opacity:.66}.history-thumb:hover{opacity:1}
.status{display:inline-flex;align-items:center;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:600;white-space:nowrap}
.st-pending{background:var(--accent-soft);color:var(--text-2)}.st-generating{background:#d8ccf5;color:#3e2d73}.st-success{background:var(--success-soft);color:var(--low-priority-text)}.st-failed{background:var(--danger-soft);color:var(--high-priority-text)}.st-timeout{background:var(--warning-soft);color:#5d4600}.st-blocked{background:#f4d7f5;color:#682a73}
.prompt-cell{min-width:280px;vertical-align:top}.prompt-textarea{width:100%;min-height:58px;max-height:200px;resize:vertical;padding:8px 10px;font-size:13px;line-height:1.52}.task-error{margin-top:4px;font-size:11px;color:var(--danger)}
.status-cell,.thumb-cell,.param-cell,.action-cell{position:relative;vertical-align:middle;padding-top:0;padding-bottom:0}
.cell-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.status-cell .cell-center,.thumb-cell .cell-center{justify-content:center}
.cell-thumb{gap:4px;flex-direction:column}
.cell-param,.cell-action{justify-content:center}
.override-cell{display:flex;flex-direction:column;gap:4px;justify-content:center;align-items:stretch;min-width:118px;margin:0 auto}
.override-input{display:block;width:100%;height:26px;border-radius:8px;padding:0 8px;margin:0;background:#f6f7fb;border-color:#e0e3ea}
.table-wrap tr.is-selected .override-input{background:#efe9ff;border-color:#d2c8f3}
.row-actions{display:grid;grid-template-columns:repeat(2,max-content);gap:4px 6px;align-items:center;justify-content:center;align-content:center}
.action-btn{display:inline-flex;align-items:center;gap:3px}
.action-btn .material-symbols-outlined{font-size:14px;line-height:1}
.task-grid{margin-top:4px;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.task-card{border:1px solid var(--line-soft);border-radius:var(--radius-lg);background:#fff;padding:12px;display:flex;flex-direction:column;gap:8px}.task-card.is-selected{border-color:#b8a5e3;box-shadow:var(--shadow-card)}
.task-card .preview{width:100%;height:140px}.task-card .prompt{color:var(--text-2);font-size:12px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

.assets-head{padding:16px 16px 0}.assets-head h2{font-family:var(--font-heading);font-size:22px;line-height:1.3}.assets-head p{margin-top:4px;color:var(--text-3);font-size:13px}
.assets-view{min-height:calc(100vh - var(--nav-height) - 44px)}
.asset-grid{padding:14px 16px 16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.asset-item{border:1px solid var(--line-soft);border-radius:12px;overflow:hidden;background:#fff}.asset-item img{width:100%;height:170px;object-fit:cover;display:block;cursor:pointer}.asset-item-meta{padding:8px;font-size:11px;color:var(--text-3)}
.asset-empty{border:1px dashed var(--line-soft);border-radius:var(--radius);padding:20px;text-align:center;color:var(--text-3);font-size:13px}
.right-sidebar{border-left:1px solid var(--line-soft);background:#fff;padding:12px 10px 10px;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.import-sidebar{padding:12px;border-radius:12px;margin-top:0;display:flex;flex-direction:column;gap:8px;flex:7 1 0;min-height:0}
.import-sidebar-head h3{font-size:15px;font-weight:700;font-family:var(--font-heading)}
.import-sidebar-row{display:grid;grid-template-columns:104px 1fr;gap:8px;margin-top:2px}
.import-sidebar .sel-sm,.import-sidebar .qp-input{width:100%}
.regex-wrap{width:100%}
.import-textarea.side{margin-top:2px;min-height:220px;flex:1 1 auto}
.import-actions.side{margin-top:6px}
.drop-zone.side{margin-top:10px}
.file-row.side{margin-top:8px}
.file-name:empty{display:none}
.inspector-log{margin-top:0;padding:10px;border-radius:12px;background:#15161a;border:1px solid #25262c;flex:3 1 0;min-height:0;display:flex;flex-direction:column}
.inspector-log .section-label,.inspector-log .btn-xs{color:#d5d8e3}
.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.log-panel{height:auto;min-height:220px;flex:1 1 auto;overflow-y:auto;font-family:var(--font-mono);color:#9a9cac;font-size:11px;line-height:1.62;white-space:pre-wrap;word-break:break-all}
.export-result{margin-top:10px;font-size:12px;color:#c5c8d6}

.modal-overlay{position:fixed;inset:0;z-index:220;padding:28px;background:rgba(24,22,30,.28);backdrop-filter:blur(5px);display:flex;justify-content:center;align-items:flex-start}
.modal-overlay.hidden{display:none}.modal-panel{width:min(960px,100%);max-height:calc(100vh - 60px);border-radius:var(--radius-xl);border:1px solid var(--line-soft);background:#fff;box-shadow:var(--shadow-pop);display:flex;flex-direction:column;overflow:hidden}
.modal-head{display:flex;align-items:flex-end;justify-content:space-between;border-bottom:1px solid var(--line-soft);padding:10px 16px 0}
.modal-tabs{display:flex;align-items:center;gap:2px}.modal-tab{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--text-3);font-size:13px;font-weight:600;padding:9px 12px}.modal-tab.active{color:var(--text-1);border-bottom-color:var(--text-1)}
.tab-pane{display:none}.tab-pane.active{display:flex;flex-direction:column;gap:14px}.modal-body{padding:16px;overflow-y:auto}.modal-foot{border-top:1px solid var(--line-soft);padding:12px 16px;display:flex;gap:8px;align-items:center}
.modal-foot .btn{min-width:68px;justify-content:center;align-items:center}
.modal-head #settingsClose{font-size:18px;line-height:1;padding:0;display:inline-flex;align-items:center;justify-content:center}
.modal-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-col,.modal-section,.preset-group{display:flex;flex-direction:column;gap:7px}
.modal-label{color:var(--text-2);font-size:12px;font-weight:600;display:flex;flex-direction:column;gap:5px}
.col-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line-soft);padding-bottom:6px}.col-tag{color:var(--text-3);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.col-actions,.model-row,.preset-ctrl,.key-input-row,.preset-row{display:flex;gap:6px;align-items:center}
.key-input-row .modal-input,.preset-ctrl .sel-sm,.model-row .modal-input{flex:1}
.key-eye-btn{width:34px;height:34px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:#fff}.key-eye-btn:hover{background:var(--accent-soft)}
textarea.modal-input{height:auto;min-height:120px;padding:10px;resize:vertical}.modal-hint{color:var(--text-3);font-size:12px}
#timeout_s,#retry_count{max-width:180px}
.naming-presets{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.naming-presets .btn-sm{height:34px;display:inline-flex;align-items:center;justify-content:center}
.naming-token-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px;color:var(--text-3);font-size:12px}
.naming-token-list span{border:1px solid var(--line-soft);border-radius:999px;background:#fafaff;padding:5px 9px;line-height:1}
.preset-list{display:flex;flex-direction:column;gap:10px}.preset-item{border:1px solid var(--line-soft);border-radius:var(--radius);background:#fafaff;padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.preset-item-head{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center}.preset-item-name{font-size:13px;font-weight:700;color:var(--text-1)}.preset-item-actions{display:flex;gap:5px}

.toast{position:fixed;right:24px;bottom:24px;z-index:320;max-width:340px;border-radius:var(--radius);background:#1f2025;color:#fff;padding:10px 14px;font-size:13px;box-shadow:var(--shadow-card);opacity:0;pointer-events:none;transform:translateY(6px);transition:all .2s ease}
.toast.show{opacity:1;transform:translateY(0)}
.img-hover{position:fixed;max-width:320px;max-height:480px;border-radius:var(--radius);border:1px solid var(--line-soft);box-shadow:var(--shadow-pop);background:#fff center/contain no-repeat;opacity:0;pointer-events:none;z-index:250;transition:opacity .15s ease}.img-hover.visible{opacity:1}
.img-viewer-overlay{position:fixed;inset:0;z-index:500;background:rgba(0,0,0,.86);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease;cursor:zoom-out}.img-viewer-overlay.visible{opacity:1}
.img-viewer-image{max-width:90vw;max-height:85vh;object-fit:contain;border-radius:var(--radius-lg);box-shadow:var(--shadow-pop);cursor:grab;user-select:none}
.img-viewer-bar{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:8px;background:rgba(20,20,24,.82);padding:8px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.2)}
.img-viewer-btn{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff}.img-viewer-btn:hover{background:rgba(255,255,255,.2)}

@media (max-width:1560px){.workspace-layout{grid-template-columns:var(--rail-width) var(--project-width) minmax(0,1fr)}.right-sidebar{display:none}.workspace-layout.assets-mode{grid-template-columns:var(--rail-width) minmax(0,1fr)}}
@media (max-width:1140px){.workspace-layout{grid-template-columns:var(--rail-width) minmax(0,1fr)}.project-sidebar{display:none}}
@media (max-width:760px){.nav-inner{padding:0 12px}.nav-brand span{font-size:15px}.run-badge,.global-rail{display:none}.progress-track-sm{width:110px}.workspace-layout{grid-template-columns:1fr}.page{padding:12px}.queue-toolbar{flex-direction:column;align-items:flex-start}.modal-overlay{padding:10px}.modal-cols,.preset-row,.preset-item,.import-sidebar-row{grid-template-columns:1fr}.welcome-card{padding:26px}.welcome-card h1{font-size:28px}}
