/* Image to Prompt v2.0 */
.i2p-wrap{max-width:880px;margin:0 auto;padding:24px;font-family:Inter,-apple-system,sans-serif;box-sizing:border-box}
.i2p-wrap *{box-sizing:border-box}
.i2p-dark{background:linear-gradient(135deg,#0f0c29,#1a1a3e 40%,#24243e);color:#e0e0e0;border-radius:16px;padding:32px 24px}
.i2p-light{background:#f8f9fa;color:#1a1a2e;border-radius:16px;padding:32px 24px}

.i2p-hdr{text-align:center;margin-bottom:24px}
.i2p-badge{display:inline-block;font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;padding:6px 20px;border-radius:50px;margin-bottom:10px}
.i2p-dark .i2p-badge{background:rgba(139,92,246,.15);border:1px solid rgba(139,92,246,.3);color:#a78bfa}
.i2p-light .i2p-badge{background:rgba(99,102,241,.1);border:1px solid rgba(99,102,241,.2);color:#6366f1}
.i2p-title{font-size:28px;font-weight:800;margin:6px 0;background:linear-gradient(135deg,#a78bfa,#60a5fa,#34d399);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.i2p-sub{color:#9ca3af;font-size:14px;margin:0}

.i2p-styles{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-bottom:18px}
.i2p-sbtn{padding:7px 16px;border-radius:20px;cursor:pointer;font-size:12px;transition:.2s;font-family:inherit}
.i2p-dark .i2p-sbtn{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:#9ca3af}
.i2p-dark .i2p-sbtn.active{border:2px solid #a78bfa;background:rgba(139,92,246,.25);color:#c4b5fd;font-weight:600}
.i2p-light .i2p-sbtn{border:1px solid #e5e7eb;background:#fff;color:#6b7280}
.i2p-light .i2p-sbtn.active{border:2px solid #6366f1;background:rgba(99,102,241,.1);color:#4f46e5;font-weight:600}

/* Tabs */
.i2p-tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:0}
.i2p-tab{flex:1;min-width:100px;padding:10px 12px;border:none;cursor:pointer;font-size:12px;font-weight:500;font-family:inherit;transition:.2s;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:8px 8px 0 0}
.i2p-tab span{font-size:15px}
.i2p-dark .i2p-tab{background:rgba(255,255,255,.03);color:#6b7280}
.i2p-dark .i2p-tab:hover{background:rgba(255,255,255,.07);color:#a78bfa}
.i2p-dark .i2p-tab.active{background:rgba(139,92,246,.12);color:#c4b5fd;border-bottom:2px solid #a78bfa}
.i2p-light .i2p-tab{background:#f3f4f6;color:#6b7280}
.i2p-light .i2p-tab:hover{background:#e5e7eb}
.i2p-light .i2p-tab.active{background:#fff;color:#4f46e5;border-bottom:2px solid #6366f1}

.i2p-panel{display:none}
.i2p-panel.active{display:block}

/* Zones */
.i2p-drop,.i2p-zone,.i2p-paste{border-radius:0 0 14px 14px;padding:44px 32px;text-align:center;cursor:pointer;transition:.3s;margin-bottom:20px}
.i2p-dark .i2p-drop,.i2p-dark .i2p-zone,.i2p-dark .i2p-paste{border:2px dashed rgba(255,255,255,.12);border-top:none;background:rgba(255,255,255,.02)}
.i2p-dark .i2p-drop:hover,.i2p-dark .i2p-drop.dragover{border-color:#a78bfa;background:rgba(139,92,246,.08)}
.i2p-light .i2p-drop,.i2p-light .i2p-zone,.i2p-light .i2p-paste{border:2px dashed #d1d5db;border-top:none;background:#fff}
.i2p-light .i2p-drop:hover{border-color:#6366f1;background:rgba(99,102,241,.03)}
.i2p-ico{font-size:38px;margin-bottom:10px}
.i2p-dtxt{font-size:15px;font-weight:600;margin:0 0 6px}
.i2p-dark .i2p-dtxt{color:#c4b5fd}
.i2p-light .i2p-dtxt{color:#4f46e5}
.i2p-dhint{font-size:12px;color:#6b7280;margin:0}

/* File Browser */
.i2p-browser{border-radius:0 0 14px 14px;overflow:hidden;margin-bottom:20px}
.i2p-dark .i2p-browser{border:1px solid rgba(255,255,255,.1);border-top:none;background:rgba(0,0,0,.15)}
.i2p-light .i2p-browser{border:1px solid #e5e7eb;border-top:none;background:#fff}
.i2p-browser-nav{display:flex;align-items:center;gap:8px;padding:10px 14px}
.i2p-dark .i2p-browser-nav{background:rgba(255,255,255,.04);border-bottom:1px solid rgba(255,255,255,.06)}
.i2p-light .i2p-browser-nav{background:#f9fafb;border-bottom:1px solid #e5e7eb}
.i2p-nav-btn{padding:6px 12px;border-radius:6px;border:none;cursor:pointer;font-size:12px;font-family:inherit;transition:.2s}
.i2p-dark .i2p-nav-btn{background:rgba(255,255,255,.08);color:#d1d5db}
.i2p-dark .i2p-nav-btn:hover{background:rgba(139,92,246,.3);color:#c4b5fd}
.i2p-light .i2p-nav-btn{background:#f3f4f6;color:#374151}
.i2p-light .i2p-nav-btn:hover{background:#e5e7eb}
.i2p-bpath{flex:1;font-size:12px;font-family:monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.i2p-dark .i2p-bpath{color:#9ca3af}
.i2p-light .i2p-bpath{color:#6b7280}

.i2p-browser-list{max-height:360px;overflow-y:auto;padding:6px}
.i2p-bload{text-align:center;padding:30px;color:#6b7280;font-size:13px}
.i2p-bitem{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;cursor:pointer;transition:.15s;margin-bottom:2px}
.i2p-dark .i2p-bitem:hover{background:rgba(139,92,246,.1)}
.i2p-light .i2p-bitem:hover{background:rgba(99,102,241,.06)}
.i2p-bitem-icon{font-size:22px;width:32px;text-align:center;flex-shrink:0}
.i2p-bitem-thumb{width:40px;height:40px;border-radius:6px;object-fit:cover;flex-shrink:0}
.i2p-bitem-info{flex:1;min-width:0}
.i2p-bitem-name{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.i2p-dark .i2p-bitem-name{color:#e0e0e0}
.i2p-light .i2p-bitem-name{color:#1f2937}
.i2p-bitem-meta{font-size:11px;color:#6b7280;margin-top:1px}
.i2p-bitem-sel{padding:5px 14px;border-radius:6px;border:none;cursor:pointer;font-size:11px;font-weight:600;font-family:inherit;flex-shrink:0;transition:.2s}
.i2p-dark .i2p-bitem-sel{background:rgba(139,92,246,.25);color:#c4b5fd}
.i2p-dark .i2p-bitem-sel:hover{background:rgba(139,92,246,.5)}
.i2p-light .i2p-bitem-sel{background:rgba(99,102,241,.12);color:#4f46e5}
.i2p-light .i2p-bitem-sel:hover{background:rgba(99,102,241,.25)}
.i2p-bempty{text-align:center;padding:30px;color:#6b7280;font-size:13px}

/* Media btn */
.i2p-mbtn{display:inline-block;padding:11px 26px;border-radius:10px;border:none;font-size:14px;font-weight:600;cursor:pointer;margin-top:10px;font-family:inherit;transition:.2s}
.i2p-dark .i2p-mbtn{background:rgba(139,92,246,.3);color:#c4b5fd}
.i2p-dark .i2p-mbtn:hover{background:rgba(139,92,246,.5)}
.i2p-light .i2p-mbtn{background:rgba(99,102,241,.12);color:#4f46e5}

/* URL */
.i2p-url-row{display:flex;gap:8px;max-width:520px;margin:14px auto 10px}
.i2p-urlin{flex:1;padding:10px 14px;border-radius:8px;font-size:13px;font-family:inherit;outline:none}
.i2p-dark .i2p-urlin{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#e0e0e0}
.i2p-dark .i2p-urlin:focus{border-color:#a78bfa}
.i2p-light .i2p-urlin{background:#fff;border:1px solid #d1d5db;color:#1f2937}
.i2p-urlgo{padding:10px 18px;border-radius:8px;border:none;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;background:linear-gradient(135deg,#7c3aed,#6366f1);color:#fff}

/* Paste */
.i2p-paste:focus{outline:2px solid #a78bfa;outline-offset:-2px}

/* Preview */
.i2p-preview{margin-bottom:20px}
.i2p-pimg-wrap{position:relative;border-radius:14px;overflow:hidden}
.i2p-dark .i2p-pimg-wrap{border:1px solid rgba(255,255,255,.1)}
.i2p-light .i2p-pimg-wrap{border:1px solid #e5e7eb}
.i2p-pimg-wrap img{width:100%;max-height:400px;object-fit:contain;display:block;background:rgba(0,0,0,.08)}
.i2p-pinfo{position:absolute;bottom:0;left:0;right:0;padding:6px 12px;font-size:11px}
.i2p-dark .i2p-pinfo{background:rgba(0,0,0,.6);color:#9ca3af}
.i2p-light .i2p-pinfo{background:rgba(255,255,255,.85);color:#6b7280}
.i2p-pchange{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.7);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:8px;padding:5px 12px;cursor:pointer;font-size:12px;backdrop-filter:blur(6px);font-family:inherit}

/* Analyze */
.i2p-go{width:100%;margin-top:14px;padding:13px 22px;border-radius:12px;border:none;background:linear-gradient(135deg,#7c3aed,#6366f1);color:#fff;font-size:15px;font-weight:700;cursor:pointer;transition:.3s;box-shadow:0 4px 18px rgba(124,58,237,.35);font-family:inherit}
.i2p-go:hover{opacity:.9}
.i2p-go:disabled{background:rgba(139,92,246,.25);box-shadow:none;cursor:not-allowed}

/* Error */
.i2p-err{border-radius:10px;padding:10px 16px;margin-bottom:18px;font-size:13px}
.i2p-dark .i2p-err{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.25);color:#fca5a5}
.i2p-light .i2p-err{background:#fef2f2;border:1px solid #fecaca;color:#dc2626}

/* Results */
.i2p-res{border-radius:14px;padding:22px;margin-bottom:18px}
.i2p-dark .i2p-res{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.i2p-light .i2p-res{background:#fff;border:1px solid #e5e7eb}
.i2p-dark .i2p-res-pr{background:linear-gradient(135deg,rgba(139,92,246,.06),rgba(99,102,241,.06));border:1px solid rgba(139,92,246,.2)}
.i2p-light .i2p-res-pr{background:linear-gradient(135deg,rgba(99,102,241,.04),rgba(59,130,246,.04));border:1px solid rgba(99,102,241,.15)}
.i2p-rh{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.i2p-rh h3{margin:0;font-size:15px}
.i2p-dark .i2p-rh h3{color:#a78bfa}
.i2p-light .i2p-rh h3{color:#6366f1}
.i2p-res-pr .i2p-rh h3{color:#60a5fa}
.i2p-rb{white-space:pre-wrap;line-height:1.65;font-size:13px}
.i2p-dark .i2p-rb{color:#d1d5db}
.i2p-light .i2p-rb{color:#374151}
.i2p-rb-code{font-family:'JetBrains Mono',monospace;border-radius:8px;padding:14px}
.i2p-dark .i2p-rb-code{background:rgba(0,0,0,.2);color:#e5e7eb}
.i2p-light .i2p-rb-code{background:#f3f4f6;color:#1f2937}

/* Copy */
.i2p-cp{border-radius:7px;padding:5px 12px;cursor:pointer;font-size:11px;font-weight:500;font-family:inherit;transition:.2s}
.i2p-dark .i2p-cp{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#d1d5db}
.i2p-light .i2p-cp{background:#f3f4f6;border:1px solid #e5e7eb;color:#4b5563}
.i2p-cp.copied{background:rgba(52,211,153,.2)!important;color:#34d399!important;border-color:rgba(52,211,153,.3)!important}
.i2p-dark .i2p-cp-pr{background:rgba(139,92,246,.18);border:1px solid rgba(139,92,246,.25);color:#c4b5fd;font-weight:600}
.i2p-light .i2p-cp-pr{background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.15);color:#6366f1;font-weight:600}

.i2p-ft{text-align:center;font-size:11px;margin-top:24px;padding-bottom:6px}
.i2p-dark .i2p-ft{color:#4b5563}
.i2p-light .i2p-ft{color:#9ca3af}

@media(max-width:640px){
.i2p-tabs{gap:3px}.i2p-tab{min-width:0;padding:8px 6px;font-size:10px}.i2p-tab span{font-size:13px}
.i2p-url-row{flex-direction:column}.i2p-title{font-size:22px}
}
