.pm-tool { padding: 26px 0 48px; background: var(--soft); color: var(--ink); }
.pm-tool [hidden] { display: none !important; }
.pm-tool [data-editor] { scroll-margin-top: 100px; outline: none; }
.pm-tool .icon { width: 20px; height: 20px; flex-shrink: 0; }
.pm-tool h1, .pm-tool h2, .pm-tool h3, .pm-tool p { margin: 0; }
.pm-tool button, .pm-tool input, .pm-tool textarea { font: inherit; }
.pm-tool button:disabled { cursor: not-allowed; opacity: .45; }
.pm-tool .button { min-height: 48px; border-radius: 10px; font-size: 13px; gap: 10px; justify-content: center; }
.pm-tool .button-primary { background: var(--primary); border: 1px solid var(--primary); color: #fff; box-shadow: 0 4px 12px #4c38ff15; }
.pm-tool .button-primary:hover { background: var(--primary-hover); }
.pm-tool .button-secondary { background: #fff; border: 1px solid var(--line); color: var(--text); }
.pm-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
.pm-back:hover { color: var(--primary); }
.pm-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; line-height: 1.7; }
.pm-eyebrow .icon { width: 17px; height: 17px; }
.pm-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 0 38px; }
.pm-hero h1 { font-size: clamp(36px, 4.1vw, 56px); font-weight: 650; letter-spacing: -2.2px; line-height: 1.1; margin: 16px 0 18px; }
.pm-hero h1 span { color: var(--primary); }
.pm-hero p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 710px; }
.pm-benefits { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; color: var(--text); font-size: 12px; }
.pm-benefits > span { display: flex; gap: 7px; align-items: center; }
.pm-benefits .icon { width: 15px; height: 15px; color: var(--primary); }
.pm-art { position: relative; display: grid; place-items: center; width: 310px; height: 265px; flex-shrink: 0; }
.pm-art-halo { position: absolute; width: 244px; height: 244px; background: #ece9ff; border: 1px solid #e2ddff; border-radius: 50%; box-shadow: 0 0 0 20px #eeebff66; }
.pm-art-card { position: relative; width: 230px; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transform: rotate(-5deg); box-shadow: 0 14px 40px #3849bd0d; }
.pm-art-heading { display: flex; align-items: center; gap: 8px; font-size: 8px; font-weight: 650; letter-spacing: 1.2px; color: var(--text); margin-bottom: 19px; }
.pm-art-heading .icon { width: 25px; height: 25px; color: var(--primary); }
.pm-art-card > div { border-top: 1px solid var(--line); padding: 10px 0; }
.pm-art-card small { display: block; font-size: 9px; color: var(--muted); margin-bottom: 7px; }
.pm-art-line { display: block; width: 90%; height: 5px; border-radius: 3px; background: #e6e3f6; }
.pm-art-line.pm-short { width: 60%; }
.pm-art-tags { display: flex; gap: 5px; }
.pm-art-tags i { width: 42px; height: 13px; border-radius: 4px; background: #eeebff; }
.pm-art-seal { position: absolute; right: 6px; bottom: 20px; display: grid; place-items: center; width: 66px; height: 66px; border: 6px solid var(--soft); border-radius: 19px; background: var(--primary); transform: rotate(8deg); color: #fff; box-shadow: 0 8px 18px #3849bd12; }
.pm-art-seal .icon { width: 27px; height: 27px; }
.pm-steps { display: flex; gap: 0; list-style: none; padding: 0 0 22px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.pm-steps li { display: flex; align-items: center; font-size: 12px; font-weight: 550; color: var(--muted); }
.pm-steps li + li:before { content: ''; width: 55px; height: 1px; background: #d9dded; margin: 0 23px; }
.pm-steps b { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 9px; border-radius: 50%; background: #e8eaf5; font-size: 10px; }
.pm-steps [aria-current] { color: var(--primary); }
.pm-steps [aria-current] b { background: var(--primary); color: #fff; }
.pm-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 12px #3849bd03; }
.pm-start { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.pm-upload { padding: 45px 28px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1.5px dashed #c9c4ed; transition: background .15s, border-color .15s; }
.pm-upload.is-dragging { border-color: var(--primary); background: #efecff; }
.pm-upload-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 19px; color: var(--primary); background: #eeebff; margin-bottom: 22px; }
.pm-upload-icon .icon { width: 30px; height: 30px; }
.pm-upload h2 { font-size: 23px; letter-spacing: -.7px; font-weight: 650; }
.pm-upload > p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 10px; }
.pm-upload > .button { margin: 25px 0 15px; min-width: 180px; }
.pm-upload > small { font-size: 11px; color: var(--muted); line-height: 1.8; }
.pm-upload-note { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--line); margin-top: 29px; padding-top: 18px; text-align: left; }
.pm-upload-note .icon { width: 13px; height: 13px; margin-top: 3px; }
.pm-intro { padding: 12px 16px 12px 0; }
.pm-intro h2 { font-size: 32px; font-weight: 600; line-height: 1.15; letter-spacing: -1px; margin: 13px 0; }
.pm-intro > p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 25px; }
.pm-intro-item { display: flex; align-items: flex-start; gap: 15px; margin-top: 22px; }
.pm-intro-item > span { font-size: 10px; font-weight: 700; color: var(--primary); border: 1px solid #dcd6ff; background: #eeebff; padding: 5px 7px; border-radius: 7px; }
.pm-intro-item h3 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; line-height: 1.6; }
.pm-intro-item p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 4px; }
.pm-text-button { padding: 8px 10px; min-height: 44px; border: 0; background: transparent; border-radius: 7px; color: var(--primary); font-size: 12px !important; font-weight: 600 !important; }
.pm-text-button:hover { background: var(--soft); }
.pm-status { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 14px 0 !important; }
.pm-status:empty { display: none; }
.pm-error { background: #fff1f1; border: 1px solid #f2c8cd; border-radius: 11px; padding: 16px 19px; color: #9c232e; font-size: 13px; line-height: 1.8; margin: 18px 0; }
.pm-progress { display: flex; align-items: center; gap: 19px; padding: 23px; margin: 22px 0; scroll-margin-top: 100px; }
.pm-progress > div { flex: 1; min-width: 0; }
.pm-progress strong { font-size: 14px; font-weight: 600; }
.pm-progress p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 5px; }
.pm-progress progress { display: block; width: 100%; height: 5px; margin-top: 12px; accent-color: var(--primary); }
.pm-spinner { width: 26px; height: 26px; border: 3px solid #e6e0ff; border-top-color: var(--primary); border-radius: 50%; animation: pm-spin .9s linear infinite; flex-shrink: 0; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
.pm-filebar { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); background: #fff; padding: 18px 23px; border-radius: 13px; margin-bottom: 22px; }
.pm-file-icon { width: 42px; height: 49px; background: #eeebff; color: var(--primary); border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.pm-filebar > div { flex: 1; min-width: 0; }
.pm-filebar strong { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pm-filebar > div > span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.pm-filebar .button { min-height: 44px; font-size: 12px; padding: 10px 15px; flex-shrink: 0; }
.pm-notice { display: flex; align-items: flex-start; gap: 10px; background: #fff9ec; border: 1px solid #eee0be; color: #7a602c; border-radius: 11px; padding: 15px 18px; margin-bottom: 18px; }
.pm-notice p { font-size: 12px; line-height: 1.8; }
.pm-notice .icon { width: 16px; height: 16px; margin-top: 3px; }
.pm-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.pm-fields { padding: 29px; min-width: 0; }
.pm-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.pm-card-heading h2 { font-size: 23px; letter-spacing: -.7px; font-weight: 600; margin: 8px 0 7px; line-height: 1.3; }
.pm-card-heading p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.pm-card-heading .pm-text-button { font-size: 11px !important; white-space: nowrap; margin-top: 3px; }
.pm-field { margin-bottom: 20px; }
.pm-field-label { display: flex; align-items: center; gap: 9px; }
.pm-field-label label { font-size: 13px; font-weight: 650; }
.pm-clear { margin-left: auto; font-size: 10px !important; color: var(--muted); padding: 5px 8px; }
.pm-clear:hover { color: var(--primary); }
.pm-changed { display: inline-flex; font-size: 8px; color: var(--primary); background: #eeebff; padding: 2px 6px; border-radius: 4px; font-weight: 550; }
.pm-tool textarea, .pm-tool input[type=text], .pm-output-name input { width: 100%; min-width: 0; border: 1px solid #dce0f0; border-radius: 9px; background: #fff; color: var(--ink); padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.pm-tool textarea { display: block; resize: vertical; min-height: 49px; max-height: 340px; }
.pm-tool textarea:disabled { background: #f7f8fc; color: var(--muted); }
.pm-field.is-changed textarea { border-color: #aaa0f5; background: #fdfcff; }
.pm-field-help { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-top: 7px; }
.pm-field-help p { color: var(--muted); font-size: 11px; line-height: 1.75; }
.pm-field-help > span { font-size: 9px; color: #7c87a2; white-space: nowrap; margin-top: 2px; }
.pm-field-note { background: #fff9ec; color: #856425; font-size: 11px; line-height: 1.8; border-radius: 6px; padding: 8px 10px; margin-top: 8px !important; }
.pm-advanced { border-top: 1px solid var(--line); margin-top: 27px; }
.pm-advanced > summary { cursor: pointer; padding: 20px 0 10px; font-size: 13px; font-weight: 600; min-height: 50px; }
.pm-advanced > summary > small { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 10px; }
.pm-advanced > p { font-size: 11px; color: var(--muted); line-height: 1.8; padding: 5px 0 8px; }
.pm-advanced .pm-field:last-child { margin-bottom: 0; }
.pm-sidebar { display: grid; gap: 20px; min-width: 0; }
.pm-preview-card { padding: 20px; }
.pm-preview-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pm-preview-card h3, .pm-file-details h3 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.pm-preview-card > header > span { font-size: 10px; color: var(--muted); }
.pm-preview-stage { display: flex; justify-content: center; align-items: center; min-height: 200px; background: #f0f1f9; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pm-preview-stage > span { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); padding: 25px; text-align: center; }
.pm-preview-stage .icon { width: 34px; height: 34px; color: #978ccb; }
.pm-preview-stage canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 430px; background: #fff; }
.pm-preview-status { color: var(--muted); font-size: 11px; line-height: 1.75; margin-top: 10px !important; }
.pm-preview-status:empty { display: none; }
.pm-preview-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.pm-preview-nav > span { font-size: 11px; color: var(--muted); }
.pm-icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--primary); flex-shrink: 0; }
.pm-file-details { padding: 22px; }
.pm-file-details dl { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 14px 8px; margin: 20px 0 18px; font-size: 11px; line-height: 1.7; }
.pm-file-details dt { color: var(--muted); }
.pm-file-details dd { text-align: right; margin: 0; overflow-wrap: anywhere; }
.pm-file-details > p { border-top: 1px solid var(--line); padding-top: 13px; font-size: 10px; line-height: 1.9; color: var(--muted); }
.pm-scope { display: flex; align-items: flex-start; gap: 10px; padding: 0 5px; }
.pm-scope > .icon { color: var(--primary); width: 15px; height: 15px; margin-top: 3px; }
.pm-scope h3 { font-size: 12px; font-weight: 600; line-height: 1.7; }
.pm-scope p { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 6px; }
.pm-scope details { margin-top: 7px; }
.pm-scope summary { font-size: 11px; color: var(--primary); cursor: pointer; padding: 11px 0; min-height: 44px; }
.pm-savebar { display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 20px 24px; margin-top: 20px; }
.pm-output-name { width: 380px; max-width: 100%; }
.pm-output-name label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.pm-output-name > div { display: flex; align-items: center; border: 1px solid #dce0f0; border-radius: 8px; overflow: hidden; background: var(--soft); }
.pm-output-name input { border: 0; border-radius: 0; min-height: 44px; padding: 10px 12px; font-size: 12px; }
.pm-output-name input:focus-visible { outline-offset: -3px; }
.pm-output-name > div > span { padding: 0 12px; font-size: 12px; color: var(--muted); }
.pm-output-name small { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; }
.pm-save-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.pm-save-actions > span { font-size: 11px; color: var(--muted); }
.pm-save-actions .button { min-width: 210px; }
.pm-result { margin-top: 30px; padding: 28px; border-color: #d6ceff; scroll-margin-top: 110px; outline: none; }
.pm-result-heading { display: flex; align-items: center; gap: 16px; }
.pm-result-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 13px; background: #eeebff; color: var(--primary); flex-shrink: 0; }
.pm-result-icon .icon { width: 25px; height: 25px; }
.pm-result h2 { font-size: 24px; font-weight: 600; letter-spacing: -.7px; margin: 4px 0 8px; line-height: 1.2; }
.pm-result-heading p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.pm-result-file { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
.pm-result-file > div { min-width: 0; }
.pm-result-file strong { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pm-result-file > div > span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.pm-result-file .button { flex-shrink: 0; }
.pm-result-changes h3 { font-size: 13px; font-weight: 600; }
.pm-result-changes dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 18px; font-size: 12px; line-height: 1.8; margin: 15px 0 20px; }
.pm-result-changes dt { color: var(--muted); }
.pm-result-changes dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.pm-result-notes { border-top: 1px solid var(--line); padding: 16px 0 0 17px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.pm-result-notes li + li { margin-top: 5px; }
.pm-result-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pm-footnote { text-align: center; font-size: 10px; line-height: 1.8; color: var(--muted); margin-top: 34px !important; }
@media (max-width: 1050px) {
    .pm-hero h1 { font-size: 46px; }
    .pm-art { width: 260px; }
    .pm-hero p { font-size: 14px; }
    .pm-editor-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
    .pm-fields { padding: 24px; }
    .pm-card-heading { flex-direction: column; gap: 5px; margin-bottom: 16px; }
    .pm-card-heading .pm-text-button { align-self: flex-end; }
    .pm-start { gap: 30px; }
}
@media (max-width: 760px) {
    .pm-tool { padding-top: 16px; }
    .pm-hero { padding: 20px 0 28px; }
    .pm-hero h1 { font-size: 42px; letter-spacing: -1.8px; }
    .pm-art { display: none; }
    .pm-hero p { font-size: 14px; }
    .pm-desktop { display: none; }
    .pm-start { grid-template-columns: 1fr; gap: 25px; }
    .pm-intro { padding: 10px 5px; }
    .pm-intro h2 { font-size: 28px; }
    .pm-intro h2 br { display: none; }
    .pm-upload { padding: 35px 24px 25px; }
    .pm-steps li { font-size: 10px; }
    .pm-steps li + li:before { width: 26px; margin: 0 13px; }
    .pm-editor-grid { grid-template-columns: 1fr; }
    .pm-sidebar { grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
    .pm-scope { grid-column: 1 / -1; padding: 5px; }
    .pm-savebar { gap: 20px; }
    .pm-card-heading { flex-direction: row; }
    .pm-card-heading .pm-text-button { align-self: flex-start; }
    .pm-card-heading h2 { font-size: 21px; }
    .pm-save-actions .button { min-width: 180px; }
    .pm-savebar { padding: 19px; }
}
@media (max-width: 480px) {
    .pm-tool .shell { width: calc(100% - 32px); }
    .pm-hero h1 { font-size: 38px; letter-spacing: -1.6px; }
    .pm-hero p { font-size: 13px; }
    .pm-benefits { flex-direction: column; gap: 9px; font-size: 11px; margin-top: 19px; }
    .pm-steps { gap: 19px; padding-bottom: 19px; margin-bottom: 23px; }
    .pm-steps li { flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; font-size: 9px; }
    .pm-steps b { width: 24px; height: 24px; margin: 0; font-size: 9px; }
    .pm-steps li + li:before { display: none; }
    .pm-upload { padding: 30px 19px 23px; }
    .pm-upload h2 { font-size: 21px; }
    .pm-upload > p { font-size: 12px; }
    .pm-upload > small { font-size: 10px; }
    .pm-upload-note { font-size: 10px; }
    .pm-intro .pm-eyebrow { font-size: 9px; }
    .pm-filebar { padding: 14px; gap: 11px; flex-wrap: wrap; }
    .pm-filebar strong { font-size: 13px; }
    .pm-filebar > .button { width: 100%; }
    .pm-notice { padding: 13px; }
    .pm-notice p { font-size: 11px; }
    .pm-fields { padding: 20px; }
    .pm-card-heading { flex-direction: column; gap: 5px; }
    .pm-card-heading .pm-text-button { align-self: flex-end; }
    .pm-card-heading h2 { font-size: 21px; }
    .pm-field-help { gap: 8px; }
    .pm-field-help p { font-size: 10px; }
    .pm-field-label label { font-size: 12px; }
    .pm-tool textarea, .pm-output-name input { font-size: 16px; }
    .pm-field-note { font-size: 10px; }
    .pm-advanced > summary > small { display: block; margin: 5px 0 0 15px; }
    .pm-sidebar { grid-template-columns: 1fr; }
    .pm-preview-card { padding: 19px; }
    .pm-preview-stage canvas { max-height: 390px; }
    .pm-savebar { flex-direction: column; align-items: stretch; }
    .pm-output-name { width: 100%; }
    .pm-save-actions { align-items: stretch; }
    .pm-save-actions > span { text-align: center; }
    .pm-result { padding: 20px; }
    .pm-result-heading { gap: 11px; align-items: flex-start; }
    .pm-result-icon { width: 37px; height: 37px; border-radius: 10px; }
    .pm-result h2 { font-size: 21px; }
    .pm-result-file { flex-direction: column; align-items: stretch; padding: 15px; }
    .pm-result-changes dl { grid-template-columns: 1fr; gap: 5px; }
    .pm-result-changes dd { margin-bottom: 12px; }
    .pm-result-actions { flex-direction: column; gap: 4px; }
    .pm-result-notes { font-size: 10px; }
    .pm-progress { padding: 16px; gap: 12px; }
    .pm-progress strong { font-size: 12px; }
    .pm-progress p { font-size: 10px; }
    .pm-progress .pm-text-button { padding: 6px; }
    .pm-footnote { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .pm-tool * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
