* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; height: 100%; background: #0c0d10; color: #f3f4f6; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; overflow: hidden; scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.55) transparent; }
body { background: radial-gradient(circle at top left, rgba(99,102,241,.16), transparent 28%), radial-gradient(circle at bottom right, rgba(14,165,233,.10), transparent 32%), #0c0d10; transition: background .25s ease, color .25s ease; overflow: hidden; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; background: linear-gradient(180deg, rgba(148,163,184,.55), rgba(96,165,250,.45)); }
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(148,163,184,.78), rgba(96,165,250,.66)); }
body.theme-light { background: radial-gradient(circle at top left, rgba(59,130,246,.08), transparent 28%), radial-gradient(circle at bottom right, rgba(14,165,233,.06), transparent 32%), #f4f5f8; color: #1f2937; scrollbar-color: rgba(100,116,139,.55) transparent; }
body.theme-light::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(100,116,139,.45), rgba(37,99,235,.35)); }
body.theme-light::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(100,116,139,.75), rgba(37,99,235,.55)); }
button, input, textarea { font: inherit; }
[v-cloak] { display: none; }
#app, .gi-page { height: 100%; }
.gi-page { display: grid; grid-template-columns: 480px 1fr; height: 100%; min-height: 100%; overflow: hidden; }
.gi-sidebar { padding: 24px; border-right: 1px solid rgba(255,255,255,.08); background: rgba(10,11,15,.72); backdrop-filter: blur(14px); transition: background .25s ease, border-color .25s ease; height: 100%; overflow: hidden; }
body.theme-light .gi-sidebar { background: rgba(255,255,255,.92); border-right-color: rgba(15,23,42,.08); }
.gi-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.gi-brand-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #06b6d4); font-weight: 800; }
.gi-brand-title { font-size: 20px; font-weight: 800; }
.gi-brand-subtitle { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; }
.gi-panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; max-height: 100%; overflow: hidden; }
body.theme-light .gi-panel { background: rgba(255,255,255,.96); border-color: rgba(15,23,42,.08); box-shadow: 0 20px 60px rgba(15,23,42,.08); }
.gi-panel-title, .gi-section-title { font-weight: 700; margin-bottom: 14px; }
.gi-field { margin-bottom: 14px; }
.gi-field label { display: block; font-size: 12px; color: rgba(255,255,255,.62); margin-bottom: 8px; transition: color .25s ease; }
body.theme-light .gi-field label { color: rgba(15,23,42,.72); }
.gi-field input, .gi-field textarea { width: 100%; border: 1px solid rgba(255,255,255,.08); background: rgba(10,11,15,.84); color: #fff; border-radius: 14px; padding: 12px 14px; outline: none; transition: background .25s ease, color .25s ease, border-color .25s ease; }
body.theme-light .gi-field input, body.theme-light .gi-field textarea { background: #fff; color: #111827; border-color: rgba(15,23,42,.14); box-shadow: inset 0 1px 2px rgba(15,23,42,.04); }
.gi-field textarea { resize: vertical; }
.gi-field-highlight { box-shadow: 0 0 0 3px rgba(96,165,250,.28), inset 0 1px 2px rgba(15,23,42,.04) !important; border-color: rgba(96,165,250,.65) !important; }
.gi-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gi-model-btn { min-height: 58px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: rgba(255,255,255,.86); border-radius: 16px; padding: 12px 14px; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease; text-align: left; display: flex; align-items: center; gap: 10px; }
.gi-model-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.18); }
.gi-model-btn.active { background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; border-color: transparent; box-shadow: 0 12px 24px rgba(124,58,237,.18); }
body.theme-light .gi-model-btn { background: rgba(255,255,255,.94); color: #334155; border-color: rgba(15,23,42,.12); }
body.theme-light .gi-model-btn:hover { border-color: rgba(37,99,235,.18); }
body.theme-light .gi-model-btn.active { background: linear-gradient(135deg, #2563eb, #06b6d4); color: #fff; border-color: transparent; }
.gi-model-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; align-items: center; text-align: center; }
.gi-model-label { font-size: 14px; font-weight: 700; line-height: 1.35; word-break: break-word; text-align: center; }
.gi-model-desc { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.56); word-break: break-word; text-align: center; }
body.theme-light .gi-model-desc { color: rgba(15,23,42,.56); }
.gi-size-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gi-size-btn, .gi-secondary, .gi-primary, .gi-stepper button, .gi-result-head button { border: 0; border-radius: 12px; cursor: pointer; }
.gi-size-btn { min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: transparent; color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.06); padding: 6px 0; }
.gi-size-btn.active { background: rgba(255,255,255,.06); border: 0; box-shadow: none; }
body.theme-light .gi-size-btn { color: rgba(15,23,42,.84); border-color: rgba(15,23,42,.10); }
body.theme-light .gi-size-btn.active { background: rgba(37,99,235,.18); box-shadow: inset 0 0 0 1px rgba(37,99,235,.18); border-color: rgba(37,99,235,.18); }
.gi-size-icon { width: 28px; height: 28px; display: inline-block; position: relative; overflow: hidden; }
.gi-size-icon::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.34); border-radius: 4px; }
.gi-size-icon.ratio-1-1::before { width: 14px; height: 14px; }
.gi-size-icon.ratio-3-2::before { width: 16px; height: 11px; }
.gi-size-icon.ratio-2-3::before { width: 11px; height: 16px; }
.gi-size-icon.ratio-auto::before { width: 14px; height: 14px; }
.gi-size-icon.ratio-wide::before { width: 18px; height: 10px; }
.gi-size-icon.ratio-tall::before { width: 10px; height: 18px; }
.gi-size-icon.ratio-4k-169::before { width: 18px; height: 10px; }
.gi-size-icon.ratio-4k-916::before { width: 10px; height: 18px; }
.gi-size-btn.active .gi-size-icon::before { background: rgba(255,255,255,.72); }
body.theme-light .gi-size-btn.active .gi-size-icon::before { background: rgba(37,99,235,.88); }
.gi-size-label { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
body.theme-light .gi-size-label { color: #334155; }
.gi-upload-wrap { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.gi-upload-input { display: none; }
.gi-upload-block { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.gi-upload-btn { width: 100%; min-height: 142px; border: 1px dashed rgba(255,255,255,.18); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); color: rgba(255,255,255,.84); border-radius: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; letter-spacing: .01em; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: transform .18s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.gi-upload-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.26); }
.gi-upload-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
body.theme-light .gi-upload-btn { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92)); color: #334155; border-color: rgba(15,23,42,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); }
body.theme-light .gi-upload-btn:hover { border-color: rgba(37,99,235,.18); }
.gi-upload-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.gi-upload-item, .gi-upload-add { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; position: relative; border: 1px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.04); width: 100%; }
body.theme-light .gi-upload-item, body.theme-light .gi-upload-add { border-color: rgba(15,23,42,.18); background: rgba(255,255,255,.96); }
.gi-upload-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gi-upload-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
body.theme-light .gi-upload-remove { background: rgba(255,255,255,.88); color: #111827; }
.gi-upload-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: rgba(255,255,255,.78); }
body.theme-light .gi-upload-add { color: #334155; }
.gi-upload-add-plus { font-size: 30px; line-height: 1; }
.gi-upload-add small { color: rgba(255,255,255,.45); }
body.theme-light .gi-upload-add small { color: rgba(15,23,42,.45); }
.gi-upload-meta { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.52); font-size: 12px; padding: 0 2px; }
body.theme-light .gi-upload-meta { color: rgba(15,23,42,.52); }
.gi-upload-clear-all { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.gi-upload-preview { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); }
body.theme-light .gi-upload-preview { border-color: rgba(15,23,42,.12); background: rgba(255,255,255,.96); }
.gi-upload-preview img { display: block; width: 100%; height: 180px; object-fit: cover; }
.gi-upload-clear { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
body.theme-light .gi-upload-clear { background: rgba(255,255,255,.88); color: #111827; }
.gi-count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gi-count-btn { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: rgba(255,255,255,.78); border-radius: 14px; padding: 12px 10px; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
body.theme-light .gi-count-btn { background: rgba(255,255,255,.92); color: #334155; border-color: rgba(15,23,42,.12); }
.gi-count-btn.active { background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; border-color: transparent; }
body.theme-light .gi-count-btn.active { background: linear-gradient(135deg, #2563eb, #06b6d4); color: #fff; border-color: transparent; }
.gi-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.gi-primary { padding: 14px 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7c3aed, #06b6d4); }
.gi-primary:disabled { opacity: .65; cursor: not-allowed; }
.gi-secondary { padding: 12px 16px; color: #fff; background: rgba(255,255,255,.06); }
.gi-wallet-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 2px; }
.gi-wallet-item { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px; }
body.theme-light .gi-wallet-item { background: rgba(255,255,255,.94); border-color: rgba(15,23,42,.10); }
.gi-wallet-label { font-size: 12px; color: rgba(255,255,255,.56); }
body.theme-light .gi-wallet-label { color: rgba(15,23,42,.56); }
.gi-wallet-item strong { font-size: 16px; color: #fff; }
body.theme-light .gi-wallet-item strong { color: #111827; }
.gi-hint { margin-top: 12px; font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.55); }
.gi-main { padding: 28px; overflow: hidden; height: 100%; min-height: 0; }
body.theme-light .gi-main { background: #f4f5f8; color: #111827; }
.gi-hero { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding: 28px; border-radius: 28px; background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(14,165,233,.10)); border: 1px solid rgba(255,255,255,.08); margin-bottom: 22px; transition: background .25s ease, border-color .25s ease; }
body.theme-light .gi-hero { background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(14,165,233,.06)); border-color: rgba(15,23,42,.08); }
.gi-kicker { color: #93c5fd; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
body.theme-light .gi-kicker { color: #2563eb; }
.gi-hero h1 { margin: 0 0 10px; font-size: 34px; }
body.theme-light .gi-hero h1 { color: #111827; }
.gi-hero p { margin: 0; color: rgba(255,255,255,.68); max-width: 720px; }
body.theme-light .gi-hero p { color: rgba(17,24,39,.68); }
.gi-status-card { min-width: 220px; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08); transition: background .25s ease, border-color .25s ease; }
body.theme-light .gi-status-card { background: rgba(255,255,255,.92); border-color: rgba(15,23,42,.08); }
.gi-status-card .label { font-size: 12px; color: rgba(255,255,255,.55); }
.gi-status-card .value { font-weight: 700; margin-top: 4px; }
.dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.dot.idle { background: #22c55e; }
.dot.live { background: #f59e0b; box-shadow: 0 0 0 6px rgba(245,158,11,.14); }
.gi-content-grid { display: block; height: 100%; overflow: hidden; min-height: 0; }
.gi-task-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex: 0 0 auto; align-items: center; }
.gi-task-toolbar input { flex: 1; border: 1px solid rgba(255,255,255,.08); background: rgba(10,11,15,.84); color: #fff; border-radius: 14px; padding: 12px 14px; outline: none; transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
body.theme-light .gi-task-toolbar input { background: #fff; color: #111827; border-color: rgba(15,23,42,.14); box-shadow: inset 0 1px 2px rgba(15,23,42,.04); }
.gi-task-toolbar button, .gi-task-footer button, .gi-pager button { border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; padding: 10px 12px; }
body.theme-light .gi-task-toolbar button, body.theme-light .gi-task-footer button, body.theme-light .gi-pager button { background: linear-gradient(135deg, #2563eb, #06b6d4); color: #fff; }
.gi-task-manage-btn { background: linear-gradient(135deg, #475569, #0f172a) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.gi-task-manage-btn.active { background: linear-gradient(135deg, #f97316, #ef4444) !important; box-shadow: 0 10px 24px rgba(239,68,68,.18); }
body.theme-light .gi-task-manage-btn { background: linear-gradient(135deg, #334155, #0f172a) !important; }
body.theme-light .gi-task-manage-btn.active { background: linear-gradient(135deg, #ea580c, #dc2626) !important; }
.gi-task-manage-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
body.theme-light .gi-task-manage-bar { background: rgba(249,115,22,.10); border-color: rgba(249,115,22,.20); }
.gi-task-manage-select-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.82); margin: 0; }
body.theme-light .gi-task-manage-select-all { color: #334155; }
.gi-task-manage-select-all input { width: 16px; height: 16px; margin: 0; accent-color: #f97316; }
.gi-task-manage-count { font-size: 13px; color: rgba(255,255,255,.7); }
body.theme-light .gi-task-manage-count { color: #475569; }
.gi-task-manage-delete { margin-left: auto; border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer; background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(239,68,68,.20); }
.gi-task-manage-delete:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.gi-task-select-mask { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; justify-content: flex-end; align-items: flex-start; padding: 14px; background: linear-gradient(180deg, rgba(15,23,42,.16), rgba(15,23,42,0) 40%); }
.gi-task-select-mask input { pointer-events: auto; width: 22px; height: 22px; margin: 0; accent-color: #f97316; filter: drop-shadow(0 4px 10px rgba(0,0,0,.28)); }
.gi-task-board { min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.gi-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 18px; width: 100%; overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; min-height: 0; padding-right: 6px; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.55) transparent; align-content: start; }
.gi-task-grid::-webkit-scrollbar { width: 10px; }
.gi-task-grid::-webkit-scrollbar-track { background: transparent; }
.gi-task-grid::-webkit-scrollbar-thumb { border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; background: linear-gradient(180deg, rgba(148,163,184,.55), rgba(96,165,250,.45)); }
.gi-task-grid::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(148,163,184,.78), rgba(96,165,250,.66)); }
body.theme-light .gi-task-grid { scrollbar-color: rgba(100,116,139,.55) transparent; }
body.theme-light .gi-task-grid::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(100,116,139,.45), rgba(37,99,235,.35)); }
body.theme-light .gi-task-grid::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(100,116,139,.75), rgba(37,99,235,.55)); }
.gi-task-load-sentinel { grid-column: 1 / -1; height: 1px; width: 100%; }
.gi-task-item { background: rgba(10,11,15,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; overflow: hidden; position: relative; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .25s ease, border-color .25s ease, outline-color .18s ease; display: flex; flex-direction: column; min-height: 920px; width: 100%; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
body.theme-light .gi-task-item { background: rgba(255,255,255,.96); border-color: rgba(15,23,42,.08); }
.gi-task-item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); box-shadow: 0 26px 70px rgba(0,0,0,.28); }
body.theme-light .gi-task-item:hover { border-color: rgba(37,99,235,.18); box-shadow: 0 26px 70px rgba(15,23,42,.12); }
.gi-task-item.running { border-color: rgba(96,165,250,.45); box-shadow: 0 0 0 1px rgba(96,165,250,.12), 0 26px 70px rgba(59,130,246,.10); }
.gi-task-item.succeeded { border-color: rgba(34,197,94,.35); }
.gi-task-item.failed { border-color: rgba(239,68,68,.35); }
.gi-task-item.selectable { cursor: default; }
.gi-task-item.selected { outline: 2px solid rgba(249,115,22,.95); outline-offset: -2px; box-shadow: 0 0 0 1px rgba(249,115,22,.26), 0 26px 70px rgba(249,115,22,.16); }
.gi-task-item.selected .gi-task-thumb-wrap::after { content: '已选中'; position: absolute; right: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(249,115,22,.92); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.gi-task-thumb-wrap { position: relative; background: rgba(255,255,255,.04); flex: 0 0 auto; aspect-ratio: 3 / 4; min-height: 560px; }
body.theme-light .gi-task-thumb-wrap { background: rgba(15,23,42,.03); }
.gi-task-thumb { width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.gi-task-thumb-empty { width: 100%; height: 100%; }
.gi-task-select-mask { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: flex-end; padding: 12px; pointer-events: none; background: linear-gradient(180deg, rgba(249,115,22,.08), transparent 34%); }
.gi-task-select-box { pointer-events: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 6px 18px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(8px); transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.gi-task-select-box:hover { transform: scale(1.05); }
.gi-task-select-box input { width: 16px; height: 16px; margin: 0; accent-color: #f97316; cursor: pointer; }
.gi-task-item.selected .gi-task-select-mask { background: linear-gradient(180deg, rgba(249,115,22,.18), transparent 34%); }
.gi-task-item.selected .gi-task-select-box { background: rgba(249,115,22,.92); border-color: rgba(255,255,255,.28); box-shadow: 0 10px 24px rgba(249,115,22,.26), inset 0 1px 0 rgba(255,255,255,.16); }
.status-badge-floating { position: absolute; top: 12px; left: 12px; background: rgba(10, 15, 30, .45); backdrop-filter: blur(6px); }
body.theme-light .status-badge-floating { background: rgba(255,255,255,.78); color: #111827; border: 1px solid rgba(15,23,42,.08); }
.gi-task-card-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; }
.gi-task-card-body.compact { padding-top: 18px; padding-bottom: 18px; min-height: 0; }
.gi-task-card-top { flex: 1 1 auto; min-height: 0; }
.gi-task-card-bottom { flex: 0 0 auto; }
.gi-task-prompt-line { color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 7em; }
body.theme-light .gi-task-prompt-line { color: rgba(17,24,39,.92); }
.gi-task-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; font-size: 12px; line-height: 1.4; }
.gi-task-meta-label { color: rgba(255,255,255,.45); flex-shrink: 0; }
.gi-task-meta-value { color: rgba(255,255,255,.62); text-align: right; }
body.theme-light .gi-task-meta-label { color: rgba(15,23,42,.45); }
body.theme-light .gi-task-meta-value { color: rgba(15,23,42,.62); }
.gi-task-head, .gi-task-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.status-badge { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; }
body.theme-light .status-badge { background: rgba(15,23,42,.06); color: #334155; }
.status-pending { background: rgba(245, 158, 11, .18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .35); }
.status-running { background: rgba(59, 130, 246, .18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, .35); }
.status-success { background: rgba(34, 197, 94, .18); color: #4ade80; border: 1px solid rgba(34, 197, 94, .35); }
.status-failed { background: rgba(239, 68, 68, .18); color: #f87171; border: 1px solid rgba(239, 68, 68, .35); }
.gi-task-footer button { border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; padding: 10px 12px; }
body.theme-light .gi-task-footer button { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.gi-pager { display: none; }
.gi-task-footer-state { padding: 14px 0 6px; text-align: center; font-size: 13px; color: rgba(255,255,255,.55); }
body.theme-light .gi-task-footer-state { color: rgba(15,23,42,.55); }
.gi-task-load-sentinel { height: 1px; width: 100%; }
.gi-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; overflow: hidden; }
body.theme-light .gi-modal-mask { background: rgba(15,23,42,.44); }
.gi-modal { width: min(1180px, 96vw); max-height: 92vh; overflow: hidden; display: grid; grid-template-columns: 1.4fr .8fr; background: #121318; border: 1px solid rgba(255,255,255,.10); border-radius: 26px; box-shadow: 0 40px 120px rgba(0,0,0,.45); position: relative; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
body.theme-light .gi-modal { background: #ffffff; border-color: rgba(15,23,42,.08); box-shadow: 0 40px 120px rgba(15,23,42,.18); }
.gi-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer; z-index: 2; }
body.theme-light .gi-modal-close { background: rgba(15,23,42,.06); color: #111827; }
.gi-modal-media { background: #0b0c10; display: flex; align-items: center; justify-content: center; min-height: 620px; transition: background .25s ease; }
body.theme-light .gi-modal-media { background: #f8fafc; }
.gi-modal-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gi-modal-media-empty { color: rgba(255,255,255,.45); }
body.theme-light .gi-modal-media-empty { color: rgba(15,23,42,.45); }
.gi-modal-side { padding: 24px; overflow: auto; }
.gi-modal-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
body.theme-light .gi-modal-title { color: #111827; }
.gi-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gi-modal-grid div, .gi-modal-section { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .25s ease, border-color .25s ease; }
body.theme-light .gi-modal-grid div, body.theme-light .gi-modal-section { background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.08); }
.gi-modal-grid span { display: block; font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 6px; }
body.theme-light .gi-modal-grid span { color: rgba(15,23,42,.45); }
.gi-modal-grid strong { font-size: 13px; word-break: break-all; }
body.theme-light .gi-modal-grid strong { color: #111827; }
.gi-modal-section { margin-top: 12px; }
.gi-modal-section-title { font-weight: 700; margin-bottom: 10px; }
body.theme-light .gi-modal-section-title { color: #111827; }
.gi-modal-reference-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gi-modal-reference-item { position: relative; padding: 0; border: 1px solid rgba(255,255,255,.10); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.03); cursor: zoom-in; }
body.theme-light .gi-modal-reference-item { border-color: rgba(15,23,42,.10); background: rgba(255,255,255,.88); }
.gi-modal-reference-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gi-modal-reference-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); color: #fff; font-size: 11px; text-align: center; }
body.theme-light .gi-modal-reference-overlay { background: linear-gradient(180deg, transparent, rgba(15,23,42,.72)); }
.gi-modal-text, .gi-modal-pre { color: rgba(255,255,255,.74); font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
body.theme-light .gi-modal-text, body.theme-light .gi-modal-pre { color: rgba(17,24,39,.74); }
.gi-modal-pre { margin: 0; }
.gi-modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.gi-modal-actions button { border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; padding: 12px 16px; }
body.theme-light .gi-modal-actions button { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.gi-preview-grid { display: none; }
.gi-result-card { background: rgba(10,11,15,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; }
.gi-result-head { display: flex; justify-content: space-between; padding: 12px 12px 0; font-size: 13px; color: rgba(255,255,255,.72); }
.gi-result-head button { background: rgba(255,255,255,.08); color: #fff; padding: 6px 10px; }
.gi-result-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; margin-top: 12px; }
.gi-empty { aspect-ratio: 1 / 1; display: grid; place-items: center; color: rgba(255,255,255,.45); margin-top: 12px; border-top: 1px dashed rgba(255,255,255,.10); border-bottom: 1px dashed rgba(255,255,255,.10); }
.gi-result-text { padding: 12px; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.6; }
.gi-log { margin: 0; min-height: 360px; white-space: pre-wrap; word-break: break-word; color: #cbd5e1; background: rgba(10,11,15,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 16px; overflow: auto; }
.gi-image-viewer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.94); display: flex; align-items: center; justify-content: center; padding: 24px; }
.gi-image-viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.gi-image-viewer-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer; }
.gi-modal-reference-list { margin-top: 2px; }
.gi-toast-mask { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.38); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gi-toast-card { width: min(420px, 92vw); border-radius: 24px; background: rgba(17,24,39,.96); border: 1px solid rgba(255,255,255,.10); box-shadow: 0 24px 80px rgba(0,0,0,.35); padding: 26px 22px 20px; text-align: center; }
body.theme-light .gi-toast-card { background: rgba(255,255,255,.98); border-color: rgba(15,23,42,.08); }
.gi-toast-icon { width: 58px; height: 58px; border-radius: 999px; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, #22c55e, #06b6d4); color: #fff; font-size: 30px; font-weight: 800; }
.gi-toast-card.toast-type-balance-insufficient .gi-toast-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); font-size: 28px; }
.gi-toast-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
body.theme-light .gi-toast-title { color: #111827; }
.gi-toast-text { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.72); margin-bottom: 18px; }
body.theme-light .gi-toast-text { color: rgba(17,24,39,.72); }
.gi-toast-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gi-toast-btn { border: 0; border-radius: 14px; padding: 12px 18px; background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; cursor: pointer; }
.gi-toast-btn.toast-btn-ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
body.theme-light .gi-toast-btn.toast-btn-ghost { background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.08); color: #111827; }
.gi-toast-btn.toast-btn-primary { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.gi-task-empty-state { position: relative; min-height: 360px; margin-top: 8px; padding: 38px 28px; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid rgba(96,165,250,.20); background:
    radial-gradient(circle at 50% 0%, rgba(59,130,246,.22), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(168,85,247,.18), transparent 22%),
    radial-gradient(circle at 16% 78%, rgba(6,182,212,.14), transparent 24%),
    linear-gradient(180deg, rgba(7,10,18,.94), rgba(8,12,22,.98)); box-shadow: 0 28px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05); perspective: 1200px; transform-style: preserve-3d; }
.gi-task-empty-state > * { position: relative; z-index: 1; transform: translateZ(0); }
.gi-task-empty-state::before { content: ''; position: absolute; inset: 0; background:
    radial-gradient(circle at 12% 18%, rgba(125,211,252,.55) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 22% 74%, rgba(96,165,250,.40) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 38% 30%, rgba(168,85,247,.42) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 60% 18%, rgba(34,211,238,.42) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 62%, rgba(125,211,252,.38) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 88% 26%, rgba(59,130,246,.42) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 18% 42%, rgba(255,255,255,.24) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 82%, rgba(255,255,255,.20) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 54%, rgba(96,165,250,.24) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.06), transparent 45%);
    background-size: 140px 140px; opacity: .72; animation: gi-empty-particles 20s linear infinite; pointer-events: none; transform: translateZ(-50px) scale(1.18); }
.gi-task-empty-state::after { content: ''; position: absolute; inset: -30%; background:
    linear-gradient(120deg, transparent 46%, rgba(125,211,252,.20) 50%, transparent 54%),
    radial-gradient(circle at 50% 50%, rgba(56,189,248,.14), transparent 58%);
    filter: blur(18px); opacity: .60; animation: gi-empty-scan 6.8s linear infinite; pointer-events: none; transform: translateZ(-20px) scale(1.08); }
.gi-task-empty-icon-wrap { position: relative; z-index: 1; width: 112px; height: 112px; border-radius: 36px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(180deg, rgba(11,15,24,.94), rgba(21,26,38,.86)); border: 1px solid rgba(96,165,250,.26); box-shadow: 0 18px 42px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.03), inset 0 1px 0 rgba(255,255,255,.08); }
.gi-task-empty-icon-wrap::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; background: linear-gradient(135deg, rgba(96,165,250,.95), rgba(168,85,247,.90), rgba(6,182,212,.95)); z-index: -1; filter: blur(12px); opacity: .62; animation: gi-empty-neon 3.6s ease-in-out infinite; }
.gi-task-empty-icon-wrap::after { content: ''; position: absolute; inset: 12px; border-radius: inherit; background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), transparent 40%),
    radial-gradient(circle at 68% 68%, rgba(255,255,255,.08), transparent 44%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.gi-task-empty-icon { font-size: 40px; line-height: 1; position: relative; z-index: 1; filter: drop-shadow(0 0 18px rgba(125,211,252,.60)); }
.gi-task-empty-title { position: relative; z-index: 1; font-size: 24px; font-weight: 800; letter-spacing: .05em; color: #eef2ff; margin-bottom: 10px; text-shadow: 0 0 18px rgba(96,165,250,.26); }
.gi-task-empty-desc { position: relative; z-index: 1; max-width: 400px; font-size: 14px; line-height: 1.8; color: rgba(191,219,254,.74); }
.gi-task-empty-state::marker { content: ''; }
body.theme-light .gi-task-empty-state { border-color: rgba(37,99,235,.14); background:
    radial-gradient(circle at 50% 0%, rgba(59,130,246,.12), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(168,85,247,.10), transparent 22%),
    radial-gradient(circle at 16% 78%, rgba(6,182,212,.08), transparent 24%),
    linear-gradient(180deg, rgba(250,251,255,.98), rgba(242,246,252,.94)); box-shadow: 0 28px 80px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.94); }
body.theme-light .gi-task-empty-state::before { opacity: .40; }
body.theme-light .gi-task-empty-state::after { opacity: .34; }
body.theme-light .gi-task-empty-title { color: #0f172a; text-shadow: none; }
body.theme-light .gi-task-empty-desc { color: rgba(15,23,42,.66); }
body.theme-light .gi-task-empty-icon-wrap { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.82)); border-color: rgba(37,99,235,.14); box-shadow: 0 18px 42px rgba(15,23,42,.08), 0 0 0 1px rgba(255,255,255,.8), inset 0 1px 0 rgba(255,255,255,.94); }
body.theme-light .gi-task-empty-icon-wrap::before { opacity: .45; }
body.theme-light .gi-task-empty-icon { filter: drop-shadow(0 0 14px rgba(59,130,246,.24)); }
body.theme-light .gi-task-empty-state::before { opacity: .36; }
body.theme-light .gi-task-empty-state::after { opacity: .40; }
body.theme-light .gi-task-empty-title { color: #0f172a; text-shadow: none; }
body.theme-light .gi-task-empty-desc { color: rgba(15,23,42,.66); }
body.theme-light .gi-task-empty-icon-wrap { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.82)); border-color: rgba(37,99,235,.14); box-shadow: 0 18px 42px rgba(15,23,42,.08), 0 0 0 1px rgba(255,255,255,.8), inset 0 1px 0 rgba(255,255,255,.94); }
body.theme-light .gi-task-empty-icon-wrap::before { opacity: .45; }
body.theme-light .gi-task-empty-icon { filter: drop-shadow(0 0 14px rgba(59,130,246,.24)); }
@keyframes gi-pulse { 0% { box-shadow: 0 0 0 0 rgba(96,165,250,.42); } 70% { box-shadow: 0 0 0 10px rgba(96,165,250,0); } 100% { box-shadow: 0 0 0 0 rgba(96,165,250,0); } }
@keyframes gi-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes gi-empty-scan { 0% { transform: translateX(-22%) rotate(0deg); } 50% { transform: translateX(0%) rotate(0deg); } 100% { transform: translateX(22%) rotate(0deg); } }
@keyframes gi-empty-neon { 0%,100% { opacity: .45; transform: scale(.96); } 50% { opacity: .95; transform: scale(1.04); } }
@keyframes gi-empty-particles { 0% { background-position: 0 0; } 50% { background-position: 70px 40px; } 100% { background-position: 140px 80px; } }
@keyframes gi-empty-particles { 0% { transform: translate3d(0,0,0); opacity: .52; } 50% { transform: translate3d(18px,-12px,0); opacity: .78; } 100% { transform: translate3d(0,0,0); opacity: .52; } }
@media (max-width: 1560px) { .gi-page { grid-template-columns: 360px 1fr; } .gi-main { padding: 22px; } .gi-hero { padding: 22px; } .gi-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .gi-task-item { min-height: 820px; } .gi-status-card { min-width: 180px; } }
@media (max-width: 1366px) { .gi-page { grid-template-columns: 340px 1fr; } .gi-brand { gap: 10px; } .gi-brand-title { font-size: 18px; } .gi-hero h1 { font-size: 28px; } .gi-hero p { max-width: 100%; } }
@media (max-width: 1280px) { .gi-main { padding: 18px; } .gi-task-grid { grid-template-columns: 1fr; } .gi-task-item { min-height: 760px; } .gi-modal { width: min(1080px, 96vw); } }
@media (min-width: 1201px) { .gi-main { display: flex; min-height: 0; } .gi-content-grid { flex: 1 1 auto; min-height: 0; } }
/* @media (max-width: 1200px) { .gi-page { grid-template-columns: 1fr; } .gi-sidebar { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); } .gi-main { padding: 16px; } .gi-hero { flex-direction: column; align-items: stretch; gap: 12px; } .gi-status-card { min-width: 0; width: 100%; } .gi-task-grid { grid-template-columns: 1fr; } .gi-task-item { min-height: 740px; } } */
/* @media (max-width: 1024px) { .gi-panel { padding: 16px; } .gi-size-grid, .gi-count-grid { gap: 8px; } .gi-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } */
/* @media (max-width: 860px) { .gi-main { padding: 14px; } .gi-hero h1 { font-size: 24px; } .gi-task-grid { gap: 12px; } .gi-task-item { min-height: 700px; } .gi-modal { width: 100vw; } } */
@media (max-width: 720px) {
    .gi-page { grid-template-columns: 1fr; overflow-y: auto; overflow-x: hidden; }
    .gi-sidebar { padding: 14px; height: auto; overflow: visible; }
    .gi-panel { max-height: none; overflow: visible; }
    .gi-main { height: auto; overflow: visible; padding: 14px; }
    .gi-content-grid, .gi-task-board, .gi-log-col { height: auto; overflow: visible; min-height: 0; }
    .gi-hero { flex-direction: column; align-items: stretch; padding: 18px; border-radius: 20px; }
    .gi-task-grid { grid-template-columns: 1fr; gap: 12px; overflow: visible; }
    .gi-task-item { min-height: 760px; }
    .gi-task-thumb-wrap { aspect-ratio: 3 / 4; min-height: 560px; }
    .gi-task-thumb-empty { min-height: 280px; }
    .gi-task-card-body.compact { padding: 12px; min-height: 0; }
    .gi-task-prompt-line { font-size: 13px; min-height: 0; -webkit-line-clamp: 3; line-clamp: 3; }
    .gi-task-footer-state { padding-top: 16px; }
    .gi-modal-mask { padding: 0; align-items: stretch; justify-content: stretch; overflow: hidden; }
    .gi-modal { grid-template-columns: 1fr; width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; overflow: hidden; }
    .gi-modal-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; width: 40px; height: 40px; font-size: 24px; }
    .gi-modal-media { min-height: 38vh; height: 38vh; }
    .gi-modal-side { padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); overflow: auto; -webkit-overflow-scrolling: touch; }
    .gi-modal-grid { grid-template-columns: 1fr; }
    .gi-modal-title { font-size: 18px; padding-right: 44px; }
    .gi-modal-text, .gi-modal-pre, .gi-modal-grid strong { font-size: 12px; }
    .gi-modal-actions { position: sticky; bottom: 0; padding-top: 12px; margin-top: 14px; background: linear-gradient(180deg, rgba(12,13,16,0), rgba(12,13,16,.92) 30%); }
    body.theme-light .gi-modal-actions { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 30%); }
    .gi-image-viewer { padding: 12px; }
    .gi-image-viewer-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; }
}
