.psm-converter{--psm-bg:#f5f7fb;--psm-card:#fff;--psm-ink:#111827;--psm-muted:#667085;--psm-line:#e4e7ec;--psm-accent:#326fcb;--psm-accent-dark:#285ead;--psm-good:#067647;font-family:inherit;color:var(--psm-ink);margin:28px auto;max-width:1100px}.psm-converter *{box-sizing:border-box;font-family:inherit}.psm-converter button,.psm-converter input,.psm-converter select,.psm-converter textarea{font:inherit}.psm-shell{background:var(--psm-bg);border:1px solid var(--psm-line);border-radius:24px;padding:28px;box-shadow:0 20px 55px rgba(16,24,40,.08)}.psm-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:22px}.psm-brand{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--psm-accent);margin-bottom:7px}.psm-title{font-size:clamp(28px,4vw,42px);line-height:1.12;letter-spacing:-.025em;font-weight:600;margin:0 0 9px}.psm-header p{margin:0;color:var(--psm-muted);font-size:16px;line-height:1.65;font-weight:400}.psm-language{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--psm-muted)}.psm-language select{border:1px solid var(--psm-line);background:#fff;border-radius:10px;padding:8px 10px}.psm-dropzone{background:var(--psm-card);border:2px dashed #c8ced8;border-radius:20px;padding:34px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;transition:.2s ease}.psm-dropzone:hover,.psm-dropzone.is-dragging{border-color:var(--psm-accent);background:#f7faff;transform:translateY(-1px)}.psm-dropzone.is-full{cursor:default;border-style:solid;background:#f8fafc}.psm-dropzone.is-full:hover{transform:none;border-color:#c8ced8}.psm-batch-meta{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:5px;font-size:12px;color:var(--psm-muted)}.psm-batch-counter{color:var(--psm-accent);font-size:12px}.psm-batch-help{max-width:620px}
.psm-drop-icon{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:#eef5ff;color:var(--psm-accent);font-size:26px;font-weight:700}.psm-dropzone strong{font-size:20px;font-weight:600;letter-spacing:-.01em}.psm-dropzone span{color:var(--psm-muted)}.psm-button{appearance:none;border:0;border-radius:12px;padding:12px 17px;font-weight:600;cursor:pointer;transition:.18s ease;line-height:1.1;white-space:nowrap}.psm-button:disabled{opacity:.48;cursor:not-allowed}.psm-button:not(:disabled):hover{transform:translateY(-1px)}.psm-button-primary{background:var(--psm-accent);color:#fff}.psm-button-primary:not(:disabled):hover{background:var(--psm-accent-dark)}.psm-button-secondary{background:#111827;color:#fff}.psm-button-ghost{background:#fff;color:#344054;border:1px solid var(--psm-line)}.psm-choose{margin-top:8px}.psm-privacy{display:flex;align-items:center;gap:8px;color:var(--psm-good);font-size:13px;margin:12px 4px 22px}.psm-controls{display:grid;grid-template-columns:1fr 1.35fr;gap:18px}.psm-control-group{background:var(--psm-card);border:1px solid var(--psm-line);border-radius:16px;padding:18px}.psm-control-group label,.psm-label{display:block;font-weight:600;margin-bottom:12px}.psm-range-row{display:flex;gap:14px;align-items:center}.psm-range-row input{width:100%;accent-color:var(--psm-accent)}.psm-quality-value{min-width:50px;font-weight:800;color:var(--psm-accent)}.psm-quality-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.psm-preset{min-height:46px;border:1px solid var(--psm-line);border-radius:10px;background:#fff;color:var(--psm-ink);cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px}.psm-preset b{color:var(--psm-accent);font-size:12px}.psm-preset.is-active{border-color:var(--psm-accent);box-shadow:0 0 0 2px rgba(50,111,203,.12);background:#f7faff}.psm-quality-note{min-height:34px}.psm-backgrounds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.psm-bg-option{position:relative;width:100%;height:48px;min-height:48px;border:1px solid var(--psm-line)!important;background:#fff!important;color:var(--psm-ink)!important;border-radius:10px;padding:9px 11px;font-size:13px;cursor:pointer;display:grid;place-items:center;text-align:center;overflow:hidden;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,color .18s ease}.psm-bg-label{display:flex;width:100%;height:100%;align-items:center;justify-content:center;white-space:nowrap;text-align:center;line-height:1;color:inherit!important}.psm-bg-option:not(.psm-custom-color){padding:9px 11px}.psm-bg-option:hover{border-color:#a9b8ca!important;background:#f7faff!important;color:var(--psm-ink)!important}.psm-bg-option.is-active{border-color:var(--psm-accent)!important;box-shadow:0 0 0 2px rgba(50,111,203,.12);background:#eef5ff!important;color:var(--psm-ink)!important}.psm-bg-option:focus-visible{outline:2px solid var(--psm-accent);outline-offset:2px}.psm-custom-color{display:block!important;margin:0!important;margin-bottom:0!important;padding:0!important;font-weight:inherit!important;line-height:1!important}.psm-custom-color .psm-bg-label{position:absolute;inset:0;display:grid;width:auto;height:auto;place-items:center;padding:0 42px;text-align:center;pointer-events:none}.psm-custom-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.psm-color-swatch{position:absolute;right:11px;top:50%;width:24px;height:24px;border-radius:6px;transform:translateY(-50%);border:1px solid rgba(17,24,39,.18);box-shadow:inset 0 0 0 2px #fff;background:#fff;pointer-events:none}.psm-control-group small{display:block;color:var(--psm-muted);margin-top:10px;line-height:1.4}.psm-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.psm-forge-message{border:1px solid #b7e4c7;background:#effcf3;color:#066b3b;border-radius:14px;padding:14px 16px;margin:-2px 0 16px;font-weight:600}.psm-forge-message[data-tone="warning"]{border-color:#fed7aa;background:#fff7ed;color:#9a3412}.psm-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.psm-summary>div{background:#fff;border:1px solid var(--psm-line);border-radius:14px;padding:14px}.psm-summary span{display:block;color:var(--psm-muted);font-size:12px;margin-bottom:4px}.psm-summary strong{font-size:17px}.psm-summary small{display:block;color:var(--psm-muted);margin-top:4px}.psm-empty{padding:18px;text-align:center;color:var(--psm-muted);background:rgba(255,255,255,.55);border-radius:14px}.psm-list{display:grid;gap:12px}.psm-item{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:15px;align-items:center;background:#fff;border:1px solid var(--psm-line);border-radius:16px;padding:12px}.psm-thumb{width:86px;height:70px;object-fit:contain;border-radius:10px;background:linear-gradient(45deg,#eef1f5 25%,transparent 25%),linear-gradient(-45deg,#eef1f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef1f5 75%),linear-gradient(-45deg,transparent 75%,#eef1f5 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.psm-item-content{min-width:0}.psm-item-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}.psm-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--psm-muted);font-size:12px}.psm-status{display:inline-flex;border-radius:999px;padding:5px 9px;background:#f2f4f7;color:#475467;font-size:11px;font-weight:600}.psm-status[data-status="done"]{background:#ecfdf3;color:#067647}.psm-status[data-status="processing"]{background:#eef5ff;color:#285ead}.psm-status[data-status="stale"]{background:#fff8e1;color:#9a6700}.psm-status[data-status="error"]{background:#fef3f2;color:#b42318}.psm-item-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}.psm-item-actions button{min-width:94px;padding:9px 11px}.psm-message{box-sizing:border-box;min-height:42px;border-radius:12px;padding:11px 13px;margin:0 0 12px;background:transparent;color:transparent;border:1px solid transparent;opacity:0;visibility:hidden;transition:opacity .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease}.psm-message.is-visible{background:#fff7ed;color:#9a3412;border-color:#fed7aa;opacity:1;visibility:visible}.psm-footer{text-align:right;color:#98a2b3;font-size:11px;margin-top:18px}.psm-saving-positive{color:var(--psm-good)}.psm-saving-negative{color:#b42318}@media(max-width:900px){.psm-item{grid-template-columns:76px minmax(0,1fr)}.psm-thumb{width:76px;height:68px}.psm-item-actions{grid-column:1/-1}.psm-item-actions button{flex:1}}@media(max-width:760px){.psm-converter{width:calc(100vw - 16px);max-width:calc(100vw - 16px);margin:16px 0 16px 50%;transform:translateX(-50%)}.psm-shell{padding:18px;border-radius:18px}.psm-header{flex-direction:column}.psm-controls{grid-template-columns:1fr}.psm-summary{grid-template-columns:1fr 1fr}.psm-quality-presets{grid-template-columns:1fr}.psm-actions .psm-button{flex:1 1 150px}}@media(max-width:460px){.psm-converter{width:calc(100vw - 10px);max-width:calc(100vw - 10px)}.psm-shell{padding:14px;border-radius:16px}.psm-summary{grid-template-columns:1fr}.psm-item{grid-template-columns:1fr}.psm-thumb{width:100%;height:150px}.psm-item-actions{grid-column:auto;flex-direction:column}.psm-item-actions button{width:100%}.psm-language{width:100%;justify-content:space-between}.psm-backgrounds{grid-template-columns:1fr}}

.psm-hammer{display:none;width:19px;height:19px;flex:0 0 19px;transform-origin:72% 72%;color:currentColor}.psm-hammer svg{display:block;width:100%;height:100%}.psm-convert{display:inline-flex;align-items:center;justify-content:center;gap:7px}.psm-convert.is-forging .psm-hammer,.psm-hammer-inline{display:inline-flex}.psm-convert.is-forging .psm-hammer,.psm-item.is-processing .psm-hammer-inline{animation:psm-hammer-strike .82s cubic-bezier(.45,.05,.55,.95) infinite}.psm-status .psm-hammer-inline{width:15px;height:15px;flex-basis:15px;margin-right:4px}.psm-item-actions .psm-hammer-inline{width:16px;height:16px;flex-basis:16px;margin-right:4px}.psm-item.is-processing{border-color:#9bb9e5;box-shadow:0 0 0 3px rgba(50,111,203,.10)}@keyframes psm-hammer-strike{0%,18%{transform:rotate(-25deg) translateY(-1px)}45%{transform:rotate(13deg) translateY(1px)}58%{transform:rotate(7deg)}100%{transform:rotate(-25deg) translateY(-1px)}}@media(prefers-reduced-motion:reduce){.psm-converter *{scroll-behavior:auto!important}.psm-convert.is-forging .psm-hammer,.psm-item.is-processing .psm-hammer-inline{animation:none!important;transform:none!important}}
