.psh-converter{
	--psh-blue:#4e6ecb;
	--psh-blue-dark:#3f5fb9;
	--psh-blue-soft:#f0f5ff;
	--psh-shell:#f6f7fb;
	--psh-ink:#1f2327;
	--psh-muted:#667085;
	--psh-border:#dfe3eb;
	--psh-good:#2f7d4f;
	box-sizing:border-box;
	display:block;
	width:100%;
	max-width:1100px;
	margin:20px auto 0!important;
	font-family:inherit;
	color:var(--psh-ink)
}
.psh-converter *{box-sizing:border-box}
.psh-shell{
	width:100%;
	background:var(--psh-shell);
	border:1px solid #e0e3ea;
	border-radius:24px;
	padding:28px;
	box-shadow:0 18px 44px rgba(34,46,70,.10)
}
.psh-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}
.psh-heading-block{min-width:0}
.psh-eyebrow{margin:0 0 10px;font-size:12px;line-height:1.35;font-weight:700;letter-spacing:.10em;text-transform:uppercase;color:var(--psh-blue)}
.psh-title{margin:0 0 9px!important;font-size:clamp(34px,3.6vw,42px)!important;line-height:1.1!important;letter-spacing:-.025em!important;font-weight:600!important;color:var(--psh-ink)!important}
.psh-subtitle{max-width:760px;margin:0!important;font-size:16px!important;line-height:1.55!important;font-weight:400!important;color:#626b7d!important}
.psh-language{display:flex;align-items:center;gap:9px;white-space:nowrap;margin-top:1px;font-size:12px;font-weight:400;color:#60697b}
.psh-language select{width:40px;min-width:40px;height:40px;padding:0 7px;border:1px solid #d7dce6;border-radius:9px;background:#fff;color:#1f2937;font:inherit;appearance:auto}

.psh-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:262px;padding:30px 24px 24px;text-align:center;border:2px dashed #c6cedb;border-radius:16px;background:#fff;outline:none;transition:border-color .18s,background .18s,box-shadow .18s;cursor:pointer}
.psh-dropzone:hover,.psh-dropzone.is-dragover,.psh-dropzone:focus-visible{border-color:var(--psh-blue);background:#fbfcff;box-shadow:0 0 0 3px rgba(78,110,203,.07)}
.psh-drop-icon{display:grid;place-items:center;width:50px;height:50px;margin-bottom:10px;border-radius:14px;background:#f0f5ff;color:var(--psh-blue);font-size:26px;line-height:1;font-weight:500}
.psh-dropzone>strong{font-size:19px;line-height:1.3;font-weight:600;color:#15181d}
.psh-dropzone>span{margin-top:5px;color:#626b7d;font-size:13px}
.psh-dropzone .psh-choose-btn{margin-top:16px}
.psh-import-meta{display:flex;align-items:baseline;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:16px;color:#697386;font-size:12px;line-height:1.4}
.psh-counter-line{color:var(--psh-blue);font-size:18px;line-height:1.2}
.psh-counter-line strong{font-weight:500;color:inherit}
.psh-limits-line{color:#667085}
.psh-local-line{margin:10px 2px 0;color:var(--psh-good);font-size:12px;line-height:1.5;font-weight:400}
.psh-local-line>span:first-child{margin-right:5px;font-weight:700}

.psh-btn{appearance:none;border:1px solid transparent;border-radius:9px;padding:10px 16px;font:inherit;font-size:12px;font-weight:500;line-height:1.3;cursor:pointer;transition:background .18s,border-color .18s,color .18s,transform .18s,box-shadow .18s}
.psh-btn--primary{background:var(--psh-blue);border-color:var(--psh-blue);color:#fff;box-shadow:0 6px 14px rgba(78,110,203,.18)}
.psh-btn--primary:hover:not(:disabled){background:var(--psh-blue-dark);border-color:var(--psh-blue-dark);transform:translateY(-1px)}
.psh-btn--secondary{background:#8e919a;border-color:#8e919a;color:#fff;box-shadow:none}
.psh-btn--secondary:hover:not(:disabled){background:#777b86;border-color:#777b86}
.psh-btn--ghost{background:#f8f9fb;border-color:#e3e6ed;color:#7a8291}
.psh-btn--ghost:hover:not(:disabled){background:#eef1f6;color:#4f596a}
.psh-btn:disabled{cursor:not-allowed;transform:none!important;box-shadow:none!important}
.psh-btn--primary:disabled{opacity:1;background:#a5b6e4;border-color:#a5b6e4;color:#fff}
.psh-btn--secondary:disabled{opacity:1;background:#8f929b;border-color:#8f929b;color:#fff}
.psh-btn--ghost:disabled{opacity:1;background:#f8f9fb;border-color:#e4e7ee;color:#adb3bf}
.psh-dropzone .psh-btn--primary:disabled{background:var(--psh-blue);border-color:var(--psh-blue)}

.psh-controls-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}
.psh-control-card,.psh-watermark-card{padding:18px;border:1px solid var(--psh-border);border-radius:14px;background:#fff;box-shadow:none}
.psh-card-head,.psh-watermark-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.psh-card-head h3,.psh-watermark-head h3{margin:0!important;font-size:13px!important;line-height:1.35!important;font-weight:600!important;color:#15181d!important}
.psh-card-head>strong{font-size:12px;line-height:1.35;color:#344054}
.psh-help{margin:10px 0 0!important;color:#697386!important;font-size:11px!important;line-height:1.5!important;font-weight:400!important}
.psh-segment{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:14px}
.psh-segment button,.psh-presets button,.psh-backgrounds button,.psh-watermark-modes button{border:1px solid #dfe3eb;border-radius:9px;background:#fff;color:#1f2937;font:inherit;font-size:12px;font-weight:400;cursor:pointer;transition:border-color .18s,background .18s,color .18s,box-shadow .18s}
.psh-segment button{min-height:48px;padding:10px 12px}
.psh-segment button:hover,.psh-presets button:hover,.psh-backgrounds button:hover,.psh-watermark-modes button:hover{border-color:#aab8dc;background:#fafcff}
.psh-segment button.is-active,.psh-presets button.is-active,.psh-backgrounds button.is-active,.psh-watermark-modes button.is-active{border-color:var(--psh-blue);background:var(--psh-blue-soft);color:#1f2937;box-shadow:0 0 0 1px rgba(78,110,203,.12)}
.psh-output-info-card .psh-badge{margin-top:13px}
.psh-badge{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:7px 12px;border-radius:999px;background:#f0f5ff;color:var(--psh-blue);font-size:12px;font-weight:700;letter-spacing:.04em}
.psh-output-title{margin:11px 0 0!important;font-size:16px!important;line-height:1.3!important;font-weight:600!important;color:#171a1f!important}

.psh-range{display:block;width:100%;margin:16px 0 0;accent-color:var(--psh-blue)}
.psh-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.psh-presets button{min-height:48px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:6px}
.psh-presets button span{display:block}
.psh-presets button small{display:block;font-size:11px;font-weight:400;color:var(--psh-blue)}
.psh-backgrounds{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:15px}
.psh-backgrounds button,.psh-custom-color{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:9px 10px}
.psh-custom-color{position:relative;border:1px solid #dfe3eb;border-radius:9px;background:#fff;color:#1f2937;font-size:12px;font-weight:400;cursor:pointer}
.psh-custom-color:hover{border-color:#aab8dc;background:#fafcff}
.psh-custom-color.is-active{border-color:var(--psh-blue);background:var(--psh-blue-soft);box-shadow:0 0 0 1px rgba(78,110,203,.12)}
.psh-custom-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.psh-swatch{width:22px;height:22px;margin-left:auto;border-radius:6px;border:1px solid #d3d8e1;background:#fff}

.psh-watermark-card{margin-top:18px;padding:17px 18px}
.psh-watermark-head{align-items:center}
.psh-watermark-head .psh-help{margin-top:5px!important}
.psh-watermark-toggle-wrap{display:flex;align-items:center;gap:9px;flex:0 0 auto;color:#15181d;font-size:12px}
.psh-watermark-toggle-wrap>strong{font-weight:600}
.psh-toggle{position:relative;display:inline-flex;flex:0 0 auto}
.psh-toggle input{position:absolute;opacity:0}
.psh-toggle span{display:block;width:42px;height:24px;padding:3px;border-radius:999px;background:#ccd3df;cursor:pointer;transition:.2s}
.psh-toggle span:after{content:"";display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.20);transition:.2s}
.psh-toggle input:checked+span{background:var(--psh-blue)}
.psh-toggle input:checked+span:after{transform:translateX(18px)}
.psh-watermark-body{margin-top:16px;padding-top:16px;border-top:1px solid #edf0f5}
.psh-watermark-file{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.psh-watermark-file>span{color:#667085;font-size:12px}
.psh-watermark-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:420px;margin-top:14px}
.psh-watermark-modes button{padding:9px 10px}
.psh-watermark-sliders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}
.psh-watermark-sliders label{display:grid;grid-template-columns:1fr auto;gap:7px;font-size:12px;color:#667085}
.psh-watermark-sliders label strong{color:#344054}
.psh-watermark-sliders input{grid-column:1/-1;margin-top:2px}
.psh-position-wrap{margin-top:16px;color:#667085;font-size:12px}
.psh-position-grid{display:grid;grid-template-columns:repeat(3,28px);gap:5px;margin-top:8px;width:max-content;padding:7px;border:1px solid #dfe3eb;border-radius:9px;background:#f8f9fc}
.psh-position-grid button{width:28px;height:22px;border:1px solid #d2d8e2;border-radius:4px;background:#fff;cursor:pointer}
.psh-position-grid button.is-active{background:var(--psh-blue);border-color:var(--psh-blue)}

.psh-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.psh-forging{display:flex;align-items:center;gap:12px;margin-top:16px;padding:13px 15px;border:1px solid #d8e1f2;border-radius:12px;background:#f8faff}
.psh-forging>div{display:flex;flex-direction:column;gap:2px}
.psh-forging strong{font-size:13px}
.psh-forging span:not(.psh-hammer){font-size:11px;color:#667085}
.psh-hammer{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#eef3ff;color:var(--psh-blue);animation:pshForge .7s ease-in-out infinite alternate}
.psh-message{margin-top:14px;padding:11px 13px;border:1px solid #ead9a9;border-radius:10px;background:#fffaf0;color:#765d1c;font-size:12px;line-height:1.5}
.psh-message.is-error{border-color:#f0c7c7;background:#fff6f6;color:#9b3e3e}
.psh-message.is-success{border-color:#bee2d3;background:#f4fcf8;color:#176a4c}
@keyframes pshForge{from{transform:translateY(0) rotate(-7deg)}to{transform:translateY(-2px) rotate(7deg)}}

.psh-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:72px}
.psh-summary>div{padding:14px 15px;border:1px solid #dfe3eb;border-radius:12px;background:#fff}
.psh-summary span,.psh-summary strong{display:block}
.psh-summary span{color:#6d7687;font-size:11px;line-height:1.35;text-transform:none;letter-spacing:0}
.psh-summary strong{margin-top:5px;color:#11151b;font-size:16px;line-height:1.2;font-weight:600}
.psh-empty{display:flex;align-items:center;justify-content:center;min-height:56px;margin-top:14px;padding:15px;border:0;border-radius:12px;background:#fafbfe;text-align:center;color:#7b8495;font-size:12px}
.psh-file-list{display:grid;gap:10px;margin-top:14px}
.psh-file-card{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px;border:1px solid #dfe3eb;border-radius:12px;background:#fff}
.psh-file-preview{display:grid;place-items:center;width:96px;height:72px;overflow:hidden;border-radius:9px;background:#eef2f8;border:1px solid #dce2eb;color:#617086;font-size:12px;font-weight:700}
.psh-file-preview img{width:100%;height:100%;object-fit:cover;display:block}
.psh-file-main{min-width:0}
.psh-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;color:#253142}
.psh-file-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px;color:#7a8495;font-size:11px}
.psh-file-status{margin-top:6px;font-size:11px;font-weight:600;color:#667085}
.psh-file-status.is-done{color:#2f7d4f}.psh-file-status.is-error{color:#b04444}.psh-file-status.is-stale{color:#9a6e17}
.psh-file-warning{margin-top:5px;color:#9a6e17;font-size:11px}
.psh-file-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.psh-file-actions .psh-btn{padding:8px 11px;font-size:11px}
.psh-icon-btn{appearance:none;border:1px solid #e0e4eb;border-radius:8px;background:#fff;color:#667085;width:34px;height:34px;cursor:pointer;font-size:17px}
.psh-icon-btn:hover{background:#f6f8fb;color:#b04444}
.psh-footer{display:flex;justify-content:flex-end;margin-top:18px;padding-top:0;border-top:0;color:#9aa2b1;font-size:10px}
.psh-converter [hidden]{display:none!important}

@media(max-width:800px){
	.psh-converter{margin:18px auto 0!important}
	.psh-shell{padding:22px;border-radius:20px}
	.psh-topline{flex-direction:column;gap:14px}
	.psh-language{align-self:flex-start}
	.psh-controls-grid{grid-template-columns:1fr}
	.psh-watermark-sliders{grid-template-columns:1fr}
	.psh-summary{grid-template-columns:repeat(2,1fr);margin-top:36px}
	.psh-file-card{grid-template-columns:82px minmax(0,1fr)}
	.psh-file-preview{width:82px;height:66px}
	.psh-file-actions{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:520px){
	.psh-converter{margin:14px auto 0!important}
	.psh-shell{padding:18px;border-radius:16px}
	.psh-title{font-size:31px!important}
	.psh-subtitle{font-size:15px!important}
	.psh-dropzone{min-height:235px;padding:25px 16px 20px}
	.psh-import-meta{flex-direction:column;align-items:center;gap:4px}
	.psh-counter-line{font-size:17px}
	.psh-controls-grid{gap:12px}
	.psh-control-card,.psh-watermark-card{padding:16px}
	.psh-backgrounds,.psh-presets{grid-template-columns:1fr}
	.psh-actions{display:grid;grid-template-columns:1fr}
	.psh-actions .psh-btn{width:100%}
	.psh-summary{grid-template-columns:1fr 1fr;margin-top:30px}
	.psh-file-card{grid-template-columns:1fr}
	.psh-file-preview{width:100%;height:170px}
	.psh-watermark-head{align-items:flex-start}
	.psh-watermark-toggle-wrap{margin-top:2px}
	.psh-watermark-file{align-items:flex-start;flex-direction:column}
	.psh-watermark-modes{max-width:none}
}
@media(prefers-reduced-motion:reduce){.psh-converter *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
