.thjp{--thjp-accent:#2563eb;--thjp-accent-dark:#1d4ed8;--thjp-border:#d6dbe3;--thjp-muted:#5b6575;--thjp-text:#1b2430;max-width:960px;margin:24px auto;padding:20px;background:#fff;border:1px solid var(--thjp-border);border-radius:14px;color:var(--thjp-text);font-family:inherit;font-size:16px;line-height:1.5}
.thjp *,.thjp *::before,.thjp *::after{box-sizing:border-box}
.thjp [hidden]{display:none!important}

.thjp-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:200px;padding:28px 16px;border:2px dashed #9db4e8;border-radius:12px;background:#f5f8ff;cursor:pointer;text-align:center;transition:background .15s,border-color .15s}
.thjp-drop:hover,.thjp-drop:focus-visible,.thjp-drop.is-over{background:#eaf1ff;border-color:var(--thjp-accent);outline:none}
.thjp-drop svg{width:44px;height:44px;color:var(--thjp-accent)}
.thjp-drop-title{margin:6px 0 0;font-size:18px;font-weight:600}
.thjp-drop-sub{margin:0;font-size:14px;color:var(--thjp-muted)}

.thjp-error{margin:12px 0 0;padding:10px 14px;border-radius:8px;background:#fdecec;color:#9b1c1c;font-size:14px}

.thjp-work{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:22px;align-items:start}
.thjp-preview{display:flex;justify-content:center;padding:10px;border:1px solid var(--thjp-border);border-radius:10px;overflow:hidden}
.thjp-bg-checker{background-color:#fff;background-image:linear-gradient(45deg,#d9dde3 25%,transparent 25%),linear-gradient(-45deg,#d9dde3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9dde3 75%),linear-gradient(-45deg,transparent 75%,#d9dde3 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.thjp-bg-white{background:#fff}
.thjp-bg-dark{background:#1f2937}
.thjp-canvas{display:block;max-width:100%;height:auto}
.thjp-canvas.thjp-pick{cursor:crosshair}

.thjp-bgswitch{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;font-size:13px;color:var(--thjp-muted)}
.thjp .thjp-bgbtn{padding:3px 10px;border:1px solid var(--thjp-border);border-radius:999px;background:#fff;color:var(--thjp-text);font-size:13px;line-height:1.5;cursor:pointer}
.thjp .thjp-bgbtn[aria-pressed="true"]{background:var(--thjp-accent);border-color:var(--thjp-accent);color:#fff}

.thjp-info{margin:0 0 14px;font-size:13px;color:var(--thjp-muted);word-break:break-word}
.thjp-switch,.thjp-check{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.thjp-switch{font-weight:600;font-size:17px}
.thjp-switch input,.thjp-check input{flex:none;width:18px;height:18px;margin:4px 0 0;accent-color:var(--thjp-accent)}
.thjp-check{margin-top:12px;font-size:14px;color:var(--thjp-muted)}

.thjp-options{margin-top:14px;padding-top:14px;border-top:1px solid var(--thjp-border)}
.thjp-row{margin-bottom:12px}
.thjp-row>label{display:flex;justify-content:space-between;margin-bottom:4px;font-size:14px;font-weight:600}
.thjp-row output{font-weight:400;color:var(--thjp-muted)}
.thjp-row input[type=range]{width:100%;accent-color:var(--thjp-accent)}
.thjp-colorwrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.thjp-colorwrap input[type=color]{width:42px;height:34px;padding:2px;border:1px solid var(--thjp-border);border-radius:6px;background:#fff;cursor:pointer}
.thjp-hex{font-size:14px;font-variant-numeric:tabular-nums;color:var(--thjp-muted)}
.thjp-hint{margin:-4px 0 12px;font-size:13px;color:var(--thjp-muted)}

.thjp-note{margin:12px 0 0;padding:9px 12px;border-radius:8px;background:#fff7e6;color:#7a4b00;font-size:14px}

.thjp-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.thjp .thjp-btn{padding:10px 18px;border:1px solid var(--thjp-border);border-radius:8px;background:#fff;color:var(--thjp-text);font-size:15px;font-weight:600;line-height:1.3;cursor:pointer;transition:background .15s,border-color .15s}
.thjp .thjp-btn:hover{border-color:var(--thjp-accent)}
.thjp .thjp-btn-primary{background:var(--thjp-accent);border-color:var(--thjp-accent);color:#fff}
.thjp .thjp-btn-primary:hover{background:var(--thjp-accent-dark);border-color:var(--thjp-accent-dark)}
.thjp .thjp-btn-primary:disabled{opacity:.7;cursor:progress}
.thjp .thjp-btn-small{padding:5px 10px;font-size:13px}
.thjp button:focus-visible,.thjp input:focus-visible{outline:2px solid var(--thjp-accent);outline-offset:2px}

.thjp-tip{margin:16px 0 0;font-size:14px;color:var(--thjp-muted)}
.thjp-tip a{color:var(--thjp-accent)}

@media (max-width:760px){
	.thjp{padding:14px}
	.thjp-work{grid-template-columns:minmax(0,1fr)}
}
