:root{--surface:#ffffff;--surface-muted:#f4f6fb;--border:#e3e8f2;--text-main:#1c2333;--text-muted:#5f6b85;--primary:#4f46ef;--primary-dark:#312e81;--accent:#36cfc9;--shadow-soft:0 20px 45px rgba(15,23,42,0.08);--gradient:linear-gradient(135deg,#4f46ef 0%,#7c3aed 100%);}
.tool-hero{margin-bottom:18px;}
.hero-text h1{color:var(--text-main);}
.hero-subtitle{color:var(--text-muted);}
.jsx-formatter-wrapper{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-soft);overflow:hidden;margin-bottom:28px;}
.jsx-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;}
.jsx-toolbar-group{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.jsx-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--border);border-radius:12px;font-size:14px;font-weight:650;cursor:pointer;transition:transform .15s ease,background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;background:var(--surface);color:var(--text-main);box-shadow:0 1px 0 rgba(15,23,42,0.04);}
.jsx-btn:hover{background:var(--surface-muted);border-color:rgba(79,70,239,0.35);transform:translateY(-1px);}
.jsx-btn:active{transform:translateY(0);box-shadow:none;}
.jsx-btn:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(79,70,239,0.18);}
.jsx-btn-primary{background:var(--gradient);color:#ffffff;border-color:rgba(79,70,239,0.25);box-shadow:0 10px 20px rgba(79,70,239,0.18);}
.jsx-btn-primary:hover{background:linear-gradient(135deg,#4338ca 0%,#6d28d9 100%);border-color:rgba(79,70,239,0.25);}
.jsx-btn-secondary{background:var(--surface);color:var(--text-main);}
.jsx-btn-icon-only{padding:10px;min-width:40px;justify-content:center;}
.jsx-btn-icon{font-size:16px;line-height:1;}
.jsx-btn-text{line-height:1;}
.jsx-editor-container{display:grid;grid-template-columns:1fr 1fr;min-height:520px;}
.jsx-editor-panel{display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--border);}
.jsx-editor-panel:last-child{border-right:none;}
.jsx-editor-header{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:var(--surface-muted);border-bottom:1px solid var(--border);}
.jsx-panel-label{font-size:12px;font-weight:750;color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em;}
.jsx-panel-badge{font-size:12px;padding:3px 10px;background:#eef2ff;border:1px solid rgba(79,70,239,0.18);border-radius:999px;color:var(--primary-dark);font-weight:650;}
.jsx-editor-surface{flex:1;min-height:520px;}
.jsx-settings-panel{display:block;padding:16px;background:var(--surface-muted);border-bottom:1px solid var(--border);}
.jsx-settings-panel.hidden{display:none;}
.jsx-settings-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.jsx-settings-title{font-size:16px;font-weight:800;color:var(--text-main);margin:0;}
.jsx-close-btn{width:36px;height:36px;border:none;font-size:18px;color:var(--text-muted);cursor:pointer;background: transparent;}
.jsx-close-btn:hover{color:var(--primary-dark);}
.jsx-settings-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;}
.jsx-setting-item{display:flex;align-items:center;}
.jsx-setting-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;color:var(--text-main);font-weight:650;cursor:pointer;width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);}
.jsx-setting-input{width:76px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;font-size:14px;text-align:center;background:var(--surface-muted);color:var(--text-main);}
.jsx-setting-input:focus{outline:none;border-color:rgba(79,70,239,0.45);box-shadow:0 0 0 4px rgba(79,70,239,0.14);background:var(--surface);}
.jsx-setting-checkbox{width:18px;height:18px;cursor:pointer;accent-color:var(--primary);}
.jsx-status-bar{padding:10px 16px;background:var(--surface-muted);border-top:1px solid var(--border);font-size:13px;color:var(--text-muted);min-height:42px;display:flex;align-items:center;}
.jsx-status-bar.success{background:#ecfdf5;color:#065f46;border-top-color:#a7f3d0;}
.jsx-status-bar.error{background:#fff1f2;color:#9f1239;border-top-color:#fecdd3;}
.jsx-content-section{margin-top:28px;margin-bottom:18px;}
.jsx-content-inner{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-soft);padding:28px;}
.jsx-content-inner h2{font-size:22px;font-weight:850;color:var(--text-main);margin:0 0 10px;}
.jsx-content-inner h3{font-size:16px;font-weight:850;color:var(--text-main);margin:14px 0 6px;}
.jsx-content-inner p{color:var(--text-muted);line-height:1.85;margin:0 0 14px;}
.jsx-callout{border:1px solid var(--border);border-radius:16px;padding:16px;background:var(--surface-muted);margin:14px 0 18px;}
.jsx-callout-warning{border-color:#fecaca;background:#fff7ed;}
.jsx-steps{margin:8px 0 16px;padding-left:18px;color:var(--text-muted);line-height:1.85;}
.jsx-steps li{margin:6px 0;}
.jsx-example-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:10px 0 18px;}
.jsx-example-card{border:1px solid var(--border);border-radius:16px;background:var(--surface-muted);padding:14px;}
.jsx-code{margin:0;border-radius:14px;padding:14px;background:#0b1220;color:#e6edf3;overflow:auto;font-size:13px;line-height:1.6;border:1px solid rgba(255,255,255,0.08);    text-wrap: wrap;}
.jsx-settings-notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:14px;margin:10px 0 18px;}
.jsx-settings-note{border:1px solid var(--border);border-radius:16px;background:var(--surface-muted);padding:14px;}
.jsx-inline-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;background:rgba(79,70,239,0.12);color:var(--primary-dark);padding:2px 6px;border-radius:8px;white-space:nowrap;font-size:0.95em;}
.jsx-use-cases{margin:8px 0 16px;padding-left:18px;color:var(--text-muted);line-height:1.85;}
.jsx-use-cases li{margin:6px 0;}
.jsx-inline-links{margin:8px 0 0;padding-left:18px;line-height:1.85;}
.jsx-inline-links a{color:var(--primary);text-decoration:none;font-weight:800;}
.jsx-inline-links a:hover{text-decoration:underline;}
@media (max-width: 1024px){.jsx-editor-container{grid-template-columns:1fr;}.jsx-editor-panel{border-right:none;border-bottom:1px solid var(--border);}.jsx-editor-panel:last-child{border-bottom:none;}.jsx-toolbar{align-items:stretch;}.jsx-toolbar-group{justify-content:center;}.jsx-example-grid{grid-template-columns:1fr;}}
@media (max-width: 768px){.jsx-formatter-wrapper{border-radius:14px;}.jsx-toolbar{padding:12px;}.jsx-btn{padding:9px 12px;font-size:13px;border-radius:12px;}.jsx-editor-surface{min-height:360px;}.jsx-content-inner{padding:18px;}.jsx-setting-label{padding:10px;border-radius:12px;}}
@media (max-width: 480px){.jsx-btn-text{display:none;}.jsx-btn-icon-only{min-width:38px;padding:9px;}.jsx-editor-surface{min-height:300px;}}
