.g2j-tool{width:100%;margin:0 auto 2rem;}
.g2j-zone{min-height:200px;padding:1.75rem 1rem;background:var(--surface-muted,#f8fafc);border:2px dashed var(--border,#e2e8f0);border-radius:16px;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s;-webkit-tap-highlight-color:transparent;}
.g2j-zone:hover,.g2j-zone:focus-visible{border-color:var(--primary,#0ea5e9);outline:none;box-shadow:0 0 0 3px rgba(14,165,233,.15);}
.g2j-zone.g2j-dragover{border-color:var(--primary,#0ea5e9);background:rgba(14,165,233,.06);}
.g2j-file-input{position:absolute;width:0;height:0;opacity:0;pointer-events:none;}
.g2j-zone-inner{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:160px;text-align:center;}
.g2j-zone-icon{width:48px;height:48px;margin-bottom:0.75rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") no-repeat center;background-size:100%;}
.g2j-zone:hover .g2j-zone-icon,.g2j-zone:focus-visible .g2j-zone-icon{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");}
.g2j-zone-head{font-size:1.0625rem;font-weight:600;color:var(--text-main,#1e293b);margin:0 0 .25rem 0;}
.g2j-zone-note{font-size:0.8125rem;color:var(--text-muted,#64748b);margin:0;}
.g2j-workspace{margin-top:1.25rem;padding:1.25rem;background:var(--surface,#fff);border:1px solid var(--border,#e2e8f0);border-radius:16px;box-shadow:0 1px 3px rgba(0,0,0,.05);}
@media (min-width:576px){.g2j-workspace{padding:1.5rem;}}
@media (min-width:768px){.g2j-workspace{padding:2rem;}}
.g2j-preview-wrap{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.25rem;}
@media (min-width:640px){.g2j-preview-wrap{flex-direction:row;align-items:flex-start;gap:1.5rem;margin-bottom:1.5rem;}}
.g2j-preview-main{flex:0 0 auto;min-width:0;}
.g2j-preview-label{display:block;font-size:0.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-muted,#64748b);margin-bottom:0.375rem;}
.g2j-preview-box{aspect-ratio:16/10;max-width:320px;max-height:200px;background:var(--surface-muted,#f1f5f9);border-radius:12px;overflow:hidden;border:1px solid var(--border,#e2e8f0);}
.g2j-preview-img{width:100%;height:100%;object-fit:contain;display:block;}
.g2j-preview-img[src=""]{visibility:hidden;}
.g2j-preview-meta{font-size:0.8125rem;color:var(--text-muted,#64748b);margin:0.375rem 0 0 0;}
.g2j-frames-wrap{min-width:0;}
.g2j-frames-strip{display:flex;gap:0.5rem;overflow-x:auto;padding:0.25rem 0;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;}
.g2j-frame-thumb{flex:0 0 auto;width:72px;height:54px;border-radius:8px;overflow:hidden;border:2px solid var(--border,#e2e8f0);scroll-snap-align:start;cursor:pointer;transition:border-color .2s,box-shadow .2s;background:var(--surface-muted,#f1f5f9);}
.g2j-frame-thumb:hover{border-color:var(--primary,#0ea5e9);}
.g2j-frame-thumb.g2j-selected{border-color:var(--primary,#0ea5e9);box-shadow:0 0 0 2px rgba(14,165,233,.3);}
.g2j-frame-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.g2j-opts{display:flex;flex-direction:column;gap:1.125rem;padding:1.125rem 0;border-top:1px solid var(--border,#e2e8f0);border-bottom:1px solid var(--border,#e2e8f0);margin-bottom:1.25rem;}
.g2j-mode{display:flex;flex-direction:column;gap:0.5rem;}
.g2j-opt-label{display:block;font-size:0.875rem;font-weight:500;color:var(--text-main,#1e293b);}
.g2j-mode-pills{display:flex;flex-wrap:wrap;gap:0.5rem;}
.g2j-pill{display:inline-flex;align-items:center;padding:0.5rem 1rem;font-size:0.875rem;color:var(--text-main,#1e293b);background:var(--surface-muted,#f1f5f9);border:1px solid var(--border,#e2e8f0);border-radius:10px;cursor:pointer;transition:background .2s,border-color .2s;}
.g2j-pill:hover{background:var(--surface,#fff);border-color:var(--primary,#0ea5e9);}
.g2j-radio{position:absolute;width:0;height:0;opacity:0;}
.g2j-pill:has(.g2j-radio:checked){background:rgba(14,165,233,.1);border-color:var(--primary,#0ea5e9);color:var(--primary,#0ea5e9);}
.g2j-opt{display:flex;flex-direction:column;gap:0.375rem;}
.g2j-range{width:100%;max-width:280px;height:8px;accent-color:var(--primary,#0ea5e9);cursor:pointer;}
.g2j-color-row{display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap;}
.g2j-color{width:44px;height:44px;padding:2px;border:1px solid var(--border,#e2e8f0);border-radius:10px;background:var(--surface,#fff);cursor:pointer;}
.g2j-color:focus{outline:none;border-color:var(--primary,#0ea5e9);box-shadow:0 0 0 2px rgba(14,165,233,.2);}
.g2j-hex{width:6ch;padding:0.5rem 0.75rem;font-size:0.875rem;font-family:ui-monospace,monospace;color:var(--text-main,#1e293b);background:var(--surface,#fff);border:1px solid var(--border,#e2e8f0);border-radius:8px;}
.g2j-hex:focus{border-color:var(--primary,#0ea5e9);outline:none;}
.g2j-act{margin-bottom:1.25rem;}
.g2j-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0.75rem 1.5rem;font-size:0.9375rem;font-weight:600;border:none;border-radius:12px;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s;-webkit-tap-highlight-color:transparent;}
.g2j-btn:disabled{opacity:0.6;cursor:not-allowed;}
.g2j-btn-convert{background:var(--primary,#0ea5e9);color:#fff;}
.g2j-btn-convert:hover:not(:disabled){background:var(--primary-dark,#0284c7);}
.g2j-btn-convert:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(14,165,233,.35);}
.g2j-btn-convert.g2j-loading .g2j-btn-txt{visibility:hidden;}
.g2j-btn-convert.g2j-loading{position:relative;}
.g2j-btn-convert.g2j-loading::after{content:"";position:absolute;width:1.125rem;height:1.125rem;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:g2j-spin .65s linear infinite;}
@keyframes g2j-spin{to{transform:rotate(360deg);}}
.g2j-results{padding:1.25rem;background:rgba(16,185,129,.06);border:1px solid rgba(16,185,129,.18);border-radius:12px;}
.g2j-results-title{font-size:1rem;font-weight:600;color:var(--accent,#10b981);margin:0 0 1rem 0;}
.g2j-results-list{display:grid;gap:0.75rem;margin-bottom:1rem;}
@media (min-width:480px){.g2j-results-list{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));}}
.g2j-result-card{display:flex;align-items:center;gap:0.75rem;padding:0.75rem;background:var(--surface,#fff);border:1px solid var(--border,#e2e8f0);border-radius:10px;}
.g2j-result-thumb{width:56px;height:42px;border-radius:6px;overflow:hidden;flex-shrink:0;background:var(--surface-muted,#f1f5f9);}
.g2j-result-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.g2j-result-info{min-width:0;flex:1;}
.g2j-result-name{font-size:0.8125rem;font-weight:500;color:var(--text-main,#1e293b);margin:0;}
.g2j-result-size{font-size:0.75rem;color:var(--text-muted,#64748b);margin:0.125rem 0 0 0;}
.g2j-result-dl{flex-shrink:0;min-height:36px;padding:0.375rem 0.75rem;font-size:0.8125rem;font-weight:600;background:var(--accent,#10b981);color:#fff;border:none;border-radius:8px;cursor:pointer;transition:background .2s;}
.g2j-result-dl:hover{background:#059669;}
.g2j-results-actions{display:flex;flex-wrap:wrap;gap:0.75rem;}
.g2j-btn-dl-all{background:var(--accent,#10b981);color:#fff;}
.g2j-btn-dl-all:hover{background:#059669;}
.g2j-btn-outline{background:transparent;color:var(--text-main,#1e293b);border:1px solid var(--border,#e2e8f0);}
.g2j-btn-outline:hover{background:var(--surface-muted,#f8fafc);}
.g2j-toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);max-width:calc(100vw - 2rem);padding:0.75rem 1.25rem;font-size:0.9375rem;background:var(--text-main,#1e293b);color:var(--surface,#fff);border-radius:12px;box-shadow:0 10px 25px rgba(0,0,0,.15);z-index:9999;}
.g2j-toast[hidden]{display:none;}
.g2j-toast.g2j-toast-err{background:#dc2626;color:#fff;}
.g2j-how{margin-bottom:2rem;}
.g2j-how-head{font-size:1.25rem;font-weight:600;color:var(--text-main,#1e293b);margin:0 0 0.75rem 0;}
.g2j-how-para{font-size:1rem;color:var(--text-muted,#64748b);max-width:52ch;margin:0;line-height:1.55;}
