*{margin:0;padding:0;box-sizing:border-box}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#555}.app{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#667eea,#764ba2)}.header{text-align:center;padding:2rem 1rem;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.1)}.header h1{margin:0;font-size:2.5rem;font-weight:700;letter-spacing:-.5px}.header p{margin:.5rem 0 0;font-size:1.1rem;opacity:.95}.container{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;padding:0 1.5rem 1.5rem;max-width:1800px;margin:0 auto;width:100%}.editor-section,.preview-section{display:flex;flex-direction:column;background:#fff;border-radius:12px;box-shadow:0 10px 40px #0003;overflow:hidden}.section-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);border-bottom:1px solid #e0e0e0}.section-header h2{margin:0;font-size:1.25rem;color:#2d3748;font-weight:600}.char-count{font-size:.875rem;color:#718096;background:#fff;padding:.25rem .75rem;border-radius:20px;font-weight:500}.editor{flex:1;padding:1.5rem;border:none;outline:none;font-family:Consolas,Monaco,Courier New,monospace;font-size:14px;line-height:1.6;resize:none;color:#2d3748;background:#f9fafb}.editor:focus{background:#fff}.preview{flex:1;padding:2rem;overflow-y:auto;background:#fff;color:#2d3748;line-height:1.8}.preview h1,.preview h2,.preview h3,.preview h4,.preview h5,.preview h6{margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.3;color:#1a202c}.preview h1{font-size:2em;border-bottom:2px solid #e2e8f0;padding-bottom:.3em}.preview h2{font-size:1.5em;border-bottom:1px solid #e2e8f0;padding-bottom:.3em}.preview h3{font-size:1.25em}.preview p{margin:1em 0}.preview code{background:#f7fafc;padding:.2em .4em;border-radius:3px;font-family:Consolas,Monaco,Courier New,monospace;font-size:.9em;color:#e53e3e;border:1px solid #e2e8f0}.preview pre{background:#2d3748;color:#f7fafc;padding:1em;border-radius:6px;overflow-x:auto;margin:1em 0}.preview pre code{background:transparent;padding:0;border:none;color:inherit;font-size:.875em}.preview blockquote{border-left:4px solid #667eea;margin:1em 0;color:#4a5568;font-style:italic;background:#f7fafc;padding:1em;border-radius:0 6px 6px 0}.preview ul,.preview ol{padding-left:2em;margin:1em 0}.preview li{margin:.5em 0}.preview a{color:#667eea;text-decoration:none;border-bottom:1px solid #667eea;transition:opacity .2s}.preview a:hover{opacity:.7}.preview hr{border:none;border-top:2px solid #e2e8f0;margin:2em 0}.preview table{border-collapse:collapse;width:100%;margin:1em 0}.preview th,.preview td{border:1px solid #e2e8f0;padding:.75em;text-align:left}.preview th{background:#f7fafc;font-weight:600}.preview img{max-width:100%;height:auto;border-radius:6px;margin:1em 0}.download-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea66}.download-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.download-btn:active:not(:disabled){transform:translateY(0)}.download-btn:disabled{opacity:.6;cursor:not-allowed}.error-message{background:#fff5f5;border:1px solid #fc8181;color:#c53030;padding:1rem;border-radius:8px;margin:1rem 1.5rem 0;font-size:.9rem}.error-message strong{font-weight:600}.footer{text-align:center;padding:1.5rem;color:#fff;font-size:.9rem;opacity:.9}@media(max-width:1024px){.container{grid-template-columns:1fr;gap:1rem}.editor-section{min-height:400px}.preview-section{min-height:500px}.header h1{font-size:2rem}}@media(max-width:640px){.header h1{font-size:1.5rem}.header p{font-size:1rem}.section-header{flex-direction:column;gap:.5rem;align-items:flex-start}.download-btn{width:100%;padding:.6rem 1rem;font-size:.9rem}}
