 .tm-image-tool{--tm-blue:#2563eb;--tm-blue-dark:#1d4ed8;--tm-ink:#102044;--tm-muted:#64748b;width:100%;max-width:1000px;margin:0 auto;color:#111827;font-family:inherit}
.tm-image-tool *{box-sizing:border-box}
.tm-image-tabs{display:flex;gap:8px;margin:0 0 14px;padding:5px;border:1px solid #e5e7eb;border-radius:13px;background:#f8fafc}
.tm-image-tab{flex:1;border-radius:9px;padding:12px 14px;background:#fff;color:var(--tm-blue);box-shadow:0 2px 8px rgba(15,23,42,.09);text-align:center;font-size:13px;font-weight:700}
.tm-image-panel{padding:clamp(20px,3vw,28px);border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.06)}
.tm-image-panel h3{margin:0 0 8px;color:var(--tm-ink);font-size:20px;font-weight:800}
.tm-image-panel>p:not(.tm-image-privacy):not(.tm-image-hint){margin:0 0 18px;color:var(--tm-muted);font-size:14px;line-height:1.65}
.tm-image-drop{display:flex;min-height:140px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:22px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;text-align:center;cursor:pointer;transition:border-color .2s,background .2s}
.tm-image-drop:hover{border-color:var(--tm-blue);background:#f1f5ff}
.tm-image-upload-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:#dbeafe;color:var(--tm-blue);font-size:25px}
.tm-image-drop strong{color:#1e293b;font-size:14px}.tm-image-drop span:last-child{color:#64748b;font-size:12px}
.tm-image-file{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.tm-image-filelist{margin:10px 0 16px;color:#64748b;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.tm-enhance-controls{display:grid;grid-template-columns:1fr;gap:7px;margin:20px 0}
.tm-enhance-controls label{display:flex;justify-content:space-between;gap:12px;color:#334155;font-size:13px;font-weight:700}
.tm-enhance-controls output{color:var(--tm-blue);font-variant-numeric:tabular-nums}
.tm-enhance-controls input[type=range]{width:100%;margin:0 0 9px;accent-color:var(--tm-blue);cursor:pointer}
.tm-enhance-controls input[type=range]:disabled{opacity:.45;cursor:not-allowed}
.tm-enhance-preview-wrap{margin:18px 0;padding:14px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc}
.tm-enhance-preview-title{margin-bottom:10px;color:#334155;font-size:13px;font-weight:800}
#tm-enhance-preview{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;border-radius:8px}
.tm-enhance-hint{margin:10px 0 0;color:#64748b;font-size:12px;line-height:1.5}
.tm-enhance-actions{display:flex;flex-wrap:wrap;gap:10px}
.tm-image-action{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:11px 18px;border:0;border-radius:9px;background:var(--tm-blue);color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:background .2s,transform .2s}
.tm-image-action:hover{background:var(--tm-blue-dark);transform:translateY(-1px)}
.tm-image-action:disabled{opacity:.55;cursor:not-allowed;transform:none}
.tm-image-action-secondary{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8}
.tm-image-action-secondary:hover{background:#dbeafe;color:#1d4ed8}
.tm-image-status{margin-top:16px;padding:12px 14px;border-radius:9px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.tm-image-status.is-working{background:#eff6ff;color:#1d4ed8}.tm-image-status.is-success{background:#f0fdf4;color:#166534}.tm-image-status.is-error{background:#fef2f2;color:#b91c1c}
.tm-image-privacy{margin:26px 0 0;color:#94a3b8;font-size:10px;line-height:1.6}
@media(max-width:600px){.tm-enhance-actions{flex-direction:column}.tm-image-action{width:100%}}
