#jsxPngTool {
  --jsx-ink: #20243a;
  --jsx-muted: #69708a;
  --jsx-purple: #2f6b3c;
  --jsx-purple-dark: #214c2d;
  --jsx-line: #e3e6ee;
  color: var(--jsx-ink);
  width: 100%;
}

.jsx-page-container { display: block; }
.jsx-page-content { width: 100% !important; max-width: 1120px; }
.jsx-tool-heading { padding: 30px 28px 22px; text-align: center; }
.jsx-eyebrow { display: inline-block; color: var(--jsx-purple-dark); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.jsx-tool-heading h1 { margin: 9px 0 10px; color: var(--jsx-ink); font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.15; }
.jsx-tool-heading p { max-width: 700px; margin: 0 auto; color: var(--jsx-muted); font-size: 1rem; line-height: 1.65; }
.jsx-tabs { display: flex; gap: 8px; padding: 7px; margin: 0 auto 18px; max-width: 420px; border: 1px solid #ccebcf; border-radius: 14px; background: #eff9ef; }
#jsxPngTool .jsx-tab { width: 50%; margin: 0; padding: 12px 16px; border: 0; border-radius: 10px; background: transparent; color: #656b82; font: 600 .96rem Ubuntu, sans-serif; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
#jsxPngTool .jsx-tab.is-active { background: var(--jsx-purple); color: #fff; box-shadow: 0 2px 8px rgba(33, 76, 45, .2); }
.jsx-panel[hidden] { display: none !important; }
.jsx-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; }
.jsx-card, .jsx-info-card { min-width: 0; padding: 22px; border: 1px solid #e1e4ec; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(32, 36, 58, .045); }
.jsx-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.jsx-card-heading h2 { margin: 0 0 4px; color: var(--jsx-ink); font-size: 1.08rem; }
.jsx-card-heading p { margin: 0; color: var(--jsx-muted); font-size: .86rem; line-height: 1.45; }
#jsxPngTool .jsx-text-button { width: auto; margin: 0; padding: 7px 10px; background: transparent; color: var(--jsx-purple-dark); font-size: .83rem; white-space: nowrap; }
#jsxPngTool .jsx-text-button:hover { background: #eff9ef; }
.jsx-code-input { display: block; width: 100%; min-height: 246px; padding: 15px; border: 1px solid #dfe2ee; border-radius: 11px; background: #171a2b; color: #e6e9ff; font: 13px/1.6 Consolas, "Courier New", monospace; resize: vertical; tab-size: 2; }
.jsx-code-input:focus { outline: 2px solid rgba(107, 176, 113, .35); border-color: #70b978; }
.jsx-safety-note, .jsx-output-hint { margin: 10px 0 0; color: var(--jsx-muted); font-size: .78rem; line-height: 1.5; }
.jsx-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
#jsxPngTool .jsx-options label { display: flex; flex-direction: column; gap: 6px; color: #4e546e; font-size: .81rem; font-weight: 600; }
#jsxPngTool .jsx-options input:not([type="checkbox"]), #jsxPngTool .jsx-options select { box-sizing: border-box; width: 100%; min-height: 40px; margin: 0; padding: 8px 10px; border: 1px solid #dfe2ee; border-radius: 8px; background: #fff; color: var(--jsx-ink); font: 14px Ubuntu, sans-serif; }
#jsxPngTool .jsx-options input[type="color"] { padding: 4px; }
#jsxPngTool .jsx-options .jsx-color-option { flex-direction: row; align-items: center; align-self: end; min-height: 40px; gap: 8px; }
#jsxPngTool .jsx-color-option input { accent-color: var(--jsx-purple); }
.jsx-export-options { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px; margin: 17px 0 8px; }
#jsxPngTool .jsx-export-options label { display: flex; flex-direction: column; gap: 8px; color: #4e546e; font-size: .82rem; font-weight: 700; }
#jsxPngTool .jsx-export-options select { box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid #d9deea; border-radius: 8px; background: #fff; color: var(--jsx-ink); font: 14px Ubuntu, sans-serif; }
#jsxPngTool .jsx-quality-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#jsxPngTool .jsx-export-options output { color: var(--jsx-purple-dark); font-size: .78rem; }
#jsxPngTool .jsx-export-options input[type="range"] { width: 100%; margin: 9px 0 0; accent-color: var(--jsx-purple); }
#jsxPngTool .jsx-export-options input:disabled { opacity: .45; }
.jsx-quality-control.is-disabled { opacity: .55; }
.jsx-export-note { min-height: 18px; margin: 0 0 16px; color: var(--jsx-muted); font-size: .76rem; line-height: 1.45; }
#jsxPngTool button.jsx-primary-button, #jsxPngTool button.jsx-secondary-button { width: 100%; min-height: 46px; margin: 0; padding: 11px 16px; border-radius: 9px; font: 700 .92rem Ubuntu, sans-serif; transition: transform .15s ease, background .15s ease; }
#jsxPngTool button.jsx-primary-button { background: var(--jsx-purple); color: #fff; box-shadow: inset 0 0 0 1px rgba(20, 64, 31, .16); }
#jsxPngTool button.jsx-primary-button:hover:not(:disabled) { background: #245630; transform: translateY(-1px); }
#jsxPngTool button.jsx-primary-button:focus-visible, #jsxPngTool button.jsx-secondary-button:focus-visible, #jsxPngTool .jsx-tab:focus-visible, .jsx-guide-toc a:focus-visible, .jsx-guide-cta:focus-visible { outline: 3px solid #2f6b3c; outline-offset: 2px; }
#jsxPngTool button.jsx-secondary-button { border: 1px solid #b9dfbd; background: #eff9ef; color: var(--jsx-purple-dark); }
#jsxPngTool button.jsx-secondary-button:hover:not(:disabled) { background: #dff3e1; }
#jsxPngTool button:disabled { opacity: .48; cursor: not-allowed; }
.jsx-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; background: #effaf4; color: #278253; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.jsx-live-badge span { width: 7px; height: 7px; border-radius: 50%; background: #36b875; }
.jsx-preview-stage { position: relative; width: 100%; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #e4e7ef; border-radius: 10px; background: #f3f5f9; }
#jsxRenderFrame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.jsx-status { min-height: 20px; margin: 12px 0; color: var(--jsx-muted); font-size: .83rem; line-height: 1.45; }
.jsx-status.is-error { color: #b42318; }
.jsx-status.is-success { color: #21804e; }
.jsx-upload-box { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; border: 1px solid #dfe2ee; border-radius: 11px; background: #f9faff; color: var(--jsx-ink); cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease; }
.jsx-upload-box:hover, .jsx-upload-box:focus-within { border-color: #78bc80; background: #f1faf1; }
.jsx-upload-box strong { font-size: .95rem; }
.jsx-upload-box > span:last-child { color: var(--jsx-muted); font-size: .78rem; line-height: 1.4; }
.jsx-upload-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #e5f6e5; color: var(--jsx-purple-dark); font-size: 1.6rem; font-weight: 700; }
.jsx-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.jsx-image-preview { display: block; max-width: 100%; max-height: 250px; margin: 14px auto 0; border: 1px solid var(--jsx-line); border-radius: 8px; object-fit: contain; }
.jsx-reverse-options { margin-top: 18px; }
.jsx-output { min-height: 350px; }
.jsx-output-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.jsx-info-card { margin-top: 20px; padding: 22px 26px; }
.jsx-info-card h2 { margin: 0 0 12px; color: var(--jsx-ink); font-size: 1.2rem; }
.jsx-info-card ol { margin: 0 0 12px; padding-left: 22px; color: #4e546e; line-height: 1.8; }
.jsx-info-card p { margin: 0; color: var(--jsx-muted); line-height: 1.65; }
.jsx-info-card code { padding: 2px 5px; border-radius: 4px; background: #edf7ed; color: #28583a; font-size: .9em; }
.jsx-seo-guide { --jsx-ink: #20243a; --jsx-muted: #69708a; --jsx-purple: #2f6b3c; --jsx-purple-dark: #214c2d; --jsx-line: #e3e6ee; margin-top: 24px; padding: clamp(22px, 4vw, 42px); color: var(--jsx-ink); }
.jsx-feature-figure { margin: 0 0 20px; overflow: hidden; border: 1px solid #e6e8f1; border-radius: 14px; background: #f4f5fb; }
.jsx-feature-figure img { display: block; width: 100%; height: auto; }
.jsx-feature-figure figcaption { padding: 9px 14px; border-top: 1px solid #e6e8f1; background: #fff; color: #737991; font-size: .76rem; line-height: 1.5; text-align: center; }
.jsx-guide-header { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 42px); border: 1px solid #d2ecd3; border-radius: 16px; background: linear-gradient(120deg, #f0faef 0%, #fbfefb 56%, #edfaf2 100%); }
.jsx-guide-header::after { position: absolute; top: -90px; right: -45px; width: 245px; height: 245px; border: 1px solid rgba(63, 139, 77, .16); border-radius: 50%; box-shadow: 0 0 0 26px rgba(63, 139, 77, .045), 0 0 0 54px rgba(63, 139, 77, .03); content: ""; pointer-events: none; }
.jsx-guide-header .jsx-eyebrow { position: relative; z-index: 1; margin-bottom: 10px; }
.jsx-guide-header .jsx-eyebrow span { margin-right: 5px; }
.jsx-guide-header h2 { position: relative; z-index: 1; max-width: 760px; margin: 0 0 12px; color: var(--jsx-ink); font-size: clamp(1.65rem, 3.2vw, 2.25rem); line-height: 1.2; }
.jsx-guide-header p { position: relative; z-index: 1; max-width: 760px; margin: 0; color: #646b84; font-size: 1rem; line-height: 1.75; }
.jsx-guide-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 10px 15px; border-radius: 8px; background: var(--jsx-purple); color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; }
.jsx-guide-cta:hover { background: #245630; }
.jsx-guide-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 20px; padding: 14px 16px; border: 1px solid #e8eaf1; border-radius: 11px; background: #fff; }
.jsx-guide-toc > span { margin-right: 3px; color: #737991; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.jsx-guide-toc a { padding: 7px 10px; border-radius: 7px; background: #f5f6fa; color: #515873; font-size: .78rem; font-weight: 600; text-decoration: none; }
.jsx-guide-toc a:hover { background: #e5f6e5; color: var(--jsx-purple-dark); }
.jsx-guide-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.jsx-highlight-card { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 11px; padding: 16px; border: 1px solid #e8eaf1; border-radius: 11px; background: #fff; }
.jsx-highlight-icon { display: grid; grid-row: 1 / 3; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #e5f6e5; color: var(--jsx-purple-dark); font-size: 1.2rem; font-weight: 700; }
.jsx-highlight-card strong { color: #30364f; font-size: .84rem; }
.jsx-highlight-card > span:last-child { margin-top: 4px; color: #747a90; font-size: .73rem; line-height: 1.45; }
.jsx-guide-section { padding: 28px 4px 5px; scroll-margin-top: 24px; }
.jsx-guide-divider { margin-top: 22px; border-top: 1px solid #e8eaf1; }
.jsx-guide-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.jsx-section-number { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: #e5f6e5; color: var(--jsx-purple-dark); font-size: .9rem; font-weight: 800; letter-spacing: .04em; }
.jsx-section-kicker { display: block; margin-bottom: 3px; color: #777d94; font-size: .69rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.jsx-guide-section h3 { margin: 0; color: var(--jsx-ink); font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.3; }
.jsx-guide-section p { margin: 0 0 12px; color: #606780; line-height: 1.75; }
.jsx-guide-section h4 { margin: 17px 0 6px; color: #333950; font-size: .98rem; }
.jsx-guide-section .jsx-guide-intro { max-width: 900px; margin: 0 0 18px; font-size: .94rem; }
.jsx-guide-section strong { color: #353a52; }
.jsx-guide-section code { padding: 2px 5px; border-radius: 4px; background: #edf7ed; color: #28583a; font-size: .9em; }
.jsx-step-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 0 0 17px; padding: 0; list-style: none; }
.jsx-step-list li { display: flex; gap: 12px; padding: 16px; border: 1px solid #e7e9f0; border-radius: 11px; background: #fff; }
.jsx-step-count { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e5f6e5; color: var(--jsx-purple-dark); font-size: .78rem; font-weight: 800; }
.jsx-step-list h4 { margin: 1px 0 5px; color: #343950; font-size: .9rem; }
.jsx-step-list p { margin: 0; font-size: .82rem; line-height: 1.65; }
.jsx-guide-callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #dfe8fa; border-radius: 10px; background: #f5f9ff; }
.jsx-guide-callout .jsx-callout-icon { display: grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #e4edff; color: #4165b5; font-size: .78rem; font-weight: 800; }
.jsx-guide-callout p { margin: 0; color: #53617d; font-size: .82rem; line-height: 1.65; }
.jsx-reverse-flow { display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr; align-items: center; gap: 10px; margin: 17px 0 20px; }
.jsx-reverse-flow > div { min-height: 132px; padding: 16px; border: 1px solid #e7e9f0; border-radius: 11px; background: #fff; }
.jsx-reverse-flow > div > span { display: block; margin-bottom: 9px; color: var(--jsx-purple-dark); font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.jsx-reverse-flow strong { display: block; margin-bottom: 5px; color: #343950; font-size: .86rem; }
.jsx-reverse-flow p { margin: 0; font-size: .77rem; line-height: 1.55; }
.jsx-flow-arrow { color: #9297aa; font-size: 1.15rem; text-align: center; }
.jsx-guide-prose { padding: 2px 1px; }
.jsx-format-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 12px; }
.jsx-format-card { padding: 17px; border: 1px solid #e7e9f0; border-radius: 11px; background: #fff; }
.jsx-format-label { display: inline-flex; padding: 5px 9px; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.jsx-format-png { background: #eaf4ff; color: #3067a7; }
.jsx-format-jpeg { background: #fff4df; color: #976712; }
.jsx-format-webp { background: #e9f8ee; color: #247547; }
.jsx-format-card h4 { margin: 12px 0 7px; font-size: .94rem; }
.jsx-format-card p { min-height: 110px; margin: 0 0 12px; font-size: .79rem; line-height: 1.65; }
.jsx-format-meta { display: block; padding-top: 10px; border-top: 1px solid #eceef3; color: #777d91; font-size: .68rem; font-weight: 600; line-height: 1.45; }
.jsx-guide-footnote { color: #757b90 !important; font-size: .78rem; }
.jsx-tip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 15px 0; }
.jsx-tip-card { padding: 15px; border: 1px solid #e7e9f0; border-radius: 10px; background: #fff; }
.jsx-tip-card h4 { margin: 0 0 7px; }
.jsx-tip-card p { margin: 0; font-size: .8rem; line-height: 1.65; }
.jsx-guide-warning { margin-top: 14px; border-color: #f1e4c7; background: #fffbf1; }
.jsx-guide-warning .jsx-callout-icon { background: #fff0ce; color: #98701a; }
.jsx-guide-warning p { color: #776642; }
.jsx-faq { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--jsx-line); }
.jsx-faq h2 { margin: 0 0 14px; color: var(--jsx-ink); font-size: 1.35rem; }
.jsx-faq details { margin-bottom: 8px; padding: 0 14px; border: 1px solid #e7e9f0; border-radius: 9px; background: #fff; }
.jsx-faq summary { position: relative; padding: 14px 32px 14px 0; color: #333950; font-size: .88rem; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
.jsx-faq summary::-webkit-details-marker { display: none; }
.jsx-faq summary::after { position: absolute; top: 50%; right: 4px; color: var(--jsx-purple-dark); content: "+"; font-size: 1.25rem; transform: translateY(-50%); }
.jsx-faq details[open] summary::after { content: "−"; }
.jsx-faq details p { margin: 0; padding: 0 28px 14px 0; color: #626982; font-size: .83rem; line-height: 1.7; }

@media (max-width: 760px) {
  .jsx-tool-heading { padding: 22px 8px 18px; }
  .jsx-grid { grid-template-columns: 1fr; }
  .jsx-card { padding: 17px; }
  .jsx-output { min-height: 270px; }
  .jsx-guide-highlights { grid-template-columns: 1fr; }
  .jsx-highlight-card { grid-template-columns: 36px 1fr; }
  .jsx-format-cards { grid-template-columns: 1fr; }
  .jsx-format-card p { min-height: 0; }
}
@media (max-width: 440px) {
  .jsx-options { grid-template-columns: 1fr 1fr; gap: 9px; }
  .jsx-export-options { grid-template-columns: 1fr; gap: 10px; }
  .jsx-output-actions { grid-template-columns: 1fr; }
  .jsx-tabs { margin-bottom: 13px; }
  #jsxPngTool .jsx-tab { padding: 10px 8px; font-size: .86rem; }
  .jsx-guide-toc { gap: 6px; padding: 12px; }
  .jsx-guide-toc > span { flex-basis: 100%; margin-bottom: 2px; }
  .jsx-guide-toc a { font-size: .72rem; }
  .jsx-step-list, .jsx-tip-grid { grid-template-columns: 1fr; }
  .jsx-reverse-flow { grid-template-columns: 1fr; gap: 7px; }
  .jsx-reverse-flow > div { min-height: auto; }
  .jsx-flow-arrow { transform: rotate(90deg); }
  .jsx-guide-section-heading { align-items: flex-start; gap: 10px; }
  .jsx-section-number { flex-basis: 38px; width: 38px; height: 38px; }
}
