:root{color:#1d201f;background:#f7f6f2;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #1d201f;--muted: #717672;--line: #dcded8;--surface: #ffffff;--soft: #eeefe9;--coral: #e85d3f;--coral-dark: #c9472d;--mint: #dff1e7;--green: #236b4b;--yellow: #f5c84b}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(#e7e8e2 1px,transparent 1px),linear-gradient(90deg,#e7e8e2 1px,transparent 1px),#f7f6f2;background-size:32px 32px}button,input,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid rgba(232,93,63,.25);outline-offset:2px}button:disabled,input:disabled,select:disabled{cursor:not-allowed;opacity:.5}.topbar{position:sticky;z-index:20;top:0;height:68px;padding:0 28px;border-bottom:1px solid var(--line);background:#f7f6f2f0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between}.brand{color:var(--ink);display:flex;align-items:center;gap:10px;text-decoration:none;font-size:20px;font-weight:800}.brand-mark{width:34px;height:34px;border-radius:6px;background:var(--coral);color:#fff;display:grid;place-items:center;transform:rotate(-3deg);box-shadow:3px 3px 0 var(--ink)}.brand-mark svg{width:18px}.brand-subtitle{padding-left:10px;border-left:1px solid var(--line);color:var(--muted);font-size:13px;font-weight:600}.privacy-badge{display:flex;align-items:center;gap:7px;color:var(--green);font-size:13px;font-weight:650}.privacy-badge svg{width:15px}.workspace{width:min(1440px,100%);min-height:calc(100vh - 146px);margin:0 auto;padding:24px 28px 108px;display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px}.settings-panel,.content-panel{border:1px solid var(--line);background:var(--surface)}.settings-panel{align-self:start;position:sticky;top:92px;border-radius:7px;overflow:hidden}.panel-heading,.content-header{display:flex;align-items:center;justify-content:space-between}.panel-heading{padding:20px;border-bottom:1px solid var(--line)}.eyebrow{color:var(--coral);font-size:10px;font-weight:800;letter-spacing:0}h1,h2{margin:3px 0 0;font-size:18px;line-height:1.2;letter-spacing:0}.icon-button{width:34px;height:34px;flex:0 0 34px;padding:0;border:1px solid var(--line);border-radius:5px;background:#fff;cursor:pointer;display:grid;place-items:center}.icon-button:hover:not(:disabled){border-color:#aeb2ab;background:var(--soft)}.icon-button svg{width:16px}.control-group{padding:18px 20px;border-bottom:1px solid #eceee9}.control-label,.transparency-control{display:flex;align-items:center;justify-content:space-between}.control-label label,.field-label{color:#414542;font-size:13px;font-weight:700}.control-label output{padding:3px 7px;border-radius:4px;background:var(--mint);color:var(--green);font-size:12px;font-weight:800}input[type=range]{width:100%;height:4px;margin:18px 0 0;accent-color:var(--coral)}.range-labels{margin-top:7px;color:#9a9e99;display:flex;justify-content:space-between;font-size:10px}.segmented{height:36px;margin-top:10px;padding:3px;border:1px solid var(--line);border-radius:5px;background:var(--soft);display:grid;grid-template-columns:repeat(4,1fr);gap:2px}.segmented button{min-width:0;border:0;border-radius:3px;background:transparent;cursor:pointer;font-size:12px;font-weight:700}.segmented button.active{background:#fff;color:var(--coral-dark);box-shadow:0 1px 3px #191e1a1f}select{width:100%;height:38px;margin-top:10px;padding:0 10px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font-size:13px}.field-caption{display:block;margin-top:3px;color:var(--muted);font-size:11px}.switch{position:relative;width:40px;height:22px}.switch input{width:1px;height:1px;opacity:0}.switch span{position:absolute;inset:0;border-radius:11px;background:#c9ccc6;cursor:pointer;transition:background .16s ease}.switch span:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .16s ease}.switch input:checked+span{background:var(--green)}.switch input:checked+span:after{transform:translate(18px)}.background-control{display:flex;align-items:center;justify-content:space-between}.swatches{display:flex;gap:7px}.swatch{width:26px;height:26px;padding:3px;border:1px solid var(--line);border-radius:50%;background:#fff;cursor:pointer}.swatch span{display:block;width:100%;height:100%;border:1px solid rgba(0,0,0,.08);border-radius:50%;background:var(--swatch)}.swatch.active{border:2px solid var(--coral);padding:2px}.settings-summary{margin:14px;padding:12px;border-radius:5px;background:#f4f5f0;display:grid;gap:9px}.settings-summary div{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.settings-summary strong{color:var(--ink)}.content-panel{min-width:0;border-radius:7px;overflow:hidden}.content-header{min-height:76px;padding:16px 22px;border-bottom:1px solid var(--line)}.queue-stats{color:var(--muted);display:flex;align-items:center;gap:14px;font-size:12px}.queue-stats span+span{padding-left:14px;border-left:1px solid var(--line)}.queue-stats strong,.progress-stat{color:var(--ink)}.drop-zone{min-height:180px;margin:20px;padding:28px;border:1.5px dashed #b9bdb6;border-radius:7px;background:#fafaf7;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;transition:border-color .16s ease,background .16s ease,transform .16s ease}.drop-zone:hover,.drop-zone.drag-active{border-color:var(--coral);background:#fff7f4}.drop-zone.drag-active{transform:scale(.995)}.drop-zone.compact{min-height:76px;flex-direction:row;justify-content:flex-start;padding:14px 16px}.drop-zone.compact .drop-icon{width:42px;height:42px;margin:0;box-shadow:none}.drop-zone.compact .drop-copy{flex:1;text-align:left}.drop-icon{width:52px;height:52px;margin-bottom:2px;border:1px solid var(--ink);border-radius:6px;background:var(--yellow);display:grid;place-items:center;box-shadow:3px 3px 0 var(--ink)}.drop-icon svg{width:22px}.drop-copy{display:grid;gap:4px;text-align:center}.drop-copy strong{font-size:15px}.drop-copy span,.empty-state span{color:var(--muted);font-size:12px}.primary-button,.secondary-button,.text-button{height:40px;padding:0 15px;border-radius:5px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:750}.primary-button svg,.secondary-button svg,.text-button svg{width:16px}.primary-button{min-width:132px;border:1px solid var(--coral-dark);background:var(--coral);color:#fff;box-shadow:2px 2px 0 var(--coral-dark)}.primary-button:hover:not(:disabled){background:var(--coral-dark);transform:translateY(-1px)}.secondary-button{border:1px solid var(--line);background:#fff}.secondary-button:hover:not(:disabled){border-color:#aeb2ab;background:var(--soft)}.secondary-button.danger{color:#a43929}.text-button{height:32px;padding:0 8px;border:0;background:transparent;color:var(--muted)}.notice{min-height:42px;margin:0 20px 16px;padding:9px 10px 9px 12px;border:1px solid #efd59b;border-radius:5px;background:#fff8e7;color:#6f5317;display:flex;align-items:center;gap:8px;font-size:12px}.notice>svg{width:16px}.notice span{flex:1}.notice button{width:26px;height:26px;border:0;background:transparent;cursor:pointer}.notice button svg{width:14px}.queue-toolbar{height:42px;padding:0 20px;border-top:1px solid #eceee9;border-bottom:1px solid #eceee9;background:#fafaf7;color:var(--muted);display:flex;align-items:center;justify-content:space-between;font-size:12px}.media-grid{padding:18px 20px 28px;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}.media-card{min-width:0;border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease}.media-card:hover{border-color:#b4b8b1;box-shadow:0 5px 18px #1d201f14}.media-preview{position:relative;width:100%;aspect-ratio:1;overflow:hidden;display:grid;place-items:center}.checkerboard{background-color:#f7f7f4;background-image:linear-gradient(45deg,#e6e8e2 25%,transparent 25%),linear-gradient(-45deg,#e6e8e2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e6e8e2 75%),linear-gradient(-45deg,transparent 75%,#e6e8e2 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}.media-preview video,.media-preview img{width:100%;height:100%;padding:10px;object-fit:contain}.media-status{position:absolute;top:8px;left:8px;height:24px;padding:0 7px;border:1px solid rgba(29,32,31,.12);border-radius:4px;background:#ffffffe6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800}.media-status svg{width:12px}.media-status.done{background:#dff1e7f0;color:var(--green)}.media-status.error{background:#ffece7f0;color:#a43929}.media-status.converting{background:#fff8e7f0;color:#7b5c12}.card-progress{position:absolute;right:0;bottom:0;left:0;height:4px;background:#ffffffb3}.card-progress span{display:block;height:100%;background:var(--coral);transition:width .12s linear}.media-info{min-height:74px;padding:11px;border-top:1px solid var(--line)}.media-name-row{display:flex;align-items:center;gap:8px}.media-name-row>div{min-width:0;flex:1;display:grid;gap:4px}.media-name-row strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.media-name-row span{color:var(--muted);font-size:10px}.result-size{margin-top:10px;padding-top:8px;border-top:1px solid #eceee9;display:flex;align-items:center;justify-content:space-between;font-size:10px}.result-size span{color:var(--green);font-weight:800}.item-error{margin:9px 0 0;color:#a43929;font-size:10px;line-height:1.4}.empty-state{min-height:260px;padding:40px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}.empty-stack{width:58px;height:58px;margin-bottom:8px;border:1px solid var(--line);border-radius:6px;background:var(--mint);color:var(--green);display:grid;place-items:center;box-shadow:5px 5px #e8eae4;transform:rotate(-2deg)}.empty-stack svg{width:24px}.empty-state strong{font-size:14px}.action-bar{position:fixed;z-index:30;right:0;bottom:0;left:0;min-height:78px;padding:12px max(28px,calc((100vw - 1384px)/2));border-top:1px solid var(--line);background:#fffffff2;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:space-between;gap:20px}.action-status{min-width:0;display:flex;align-items:center;gap:11px}.status-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#b8bcb6;box-shadow:0 0 0 4px #eceee9}.status-dot.working{background:var(--yellow);box-shadow:0 0 0 4px #fff2c8;animation:pulse 1.4s ease infinite}.status-dot.complete{background:var(--green);box-shadow:0 0 0 4px var(--mint)}.action-status div{min-width:0;display:grid;gap:3px}.action-status strong{font-size:13px}.action-status span{color:var(--muted);font-size:11px}.action-buttons{display:flex;gap:9px}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.45}}@media(max-width:900px){.workspace{grid-template-columns:1fr}.settings-panel{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.panel-heading,.settings-summary{grid-column:1 / -1}.control-group:nth-of-type(odd){border-right:1px solid #eceee9}}@media(max-width:620px){.topbar{height:60px;padding:0 16px}.brand-subtitle,.privacy-badge span{display:none}.workspace{padding:14px 12px 152px;gap:14px}.settings-panel{grid-template-columns:1fr}.panel-heading,.settings-summary{grid-column:auto}.control-group:nth-of-type(odd){border-right:0}.content-header{min-height:66px;padding:14px}.queue-stats span:nth-child(2){display:none}.drop-zone,.drop-zone.compact{margin:14px;padding:14px}.drop-zone.compact .drop-copy span,.drop-zone.compact .secondary-button span{display:none}.drop-zone.compact .secondary-button{width:40px;padding:0}.queue-toolbar{padding:0 14px}.media-grid{padding:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.media-info{padding:9px}.action-bar{min-height:136px;padding:12px;align-items:stretch;flex-direction:column;gap:10px}.action-status{min-height:34px}.action-buttons{width:100%}.action-buttons button{min-width:0;flex:1}}@media(max-width:380px){.media-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
