*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg-deep:#06060e;--bg:#0a0a1a;--surface:#141028b3;--surface-solid:#141028;--border:#7850c833;--border-bright:#a064ff59;--text:#eae4f5;--text-muted:#9889b8;--accent-blue:#5b7fff;--accent-violet:#a855f7;--accent-pink:#ec4899;--gradient-primary:linear-gradient(135deg, #5b7fff, #a855f7, #ec4899);--gradient-surface:linear-gradient(135deg, #5b7fff14, #a855f714, #ec489914);--gradient-border:linear-gradient(135deg, #5b7fff, #a855f7, #ec4899);--error:#f43f5e;--radius:12px;--radius-sm:8px;--glow-violet:0 0 30px #a855f726;--glow-pink:0 0 30px #ec48991a}body{background:var(--bg-deep);color:var(--text);background-image:radial-gradient(80% 60% at 20% 10%,#5b7fff1f 0%,#0000 60%),radial-gradient(60% 50% at 80% 80%,#a855f71a 0%,#0000 60%),radial-gradient(50% 40%,#ec48990f 0%,#0000 60%);min-height:100vh;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;line-height:1.6}main{max-width:680px;margin:0 auto;padding:4rem 1.5rem 3rem}h1{background:var(--gradient-primary);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:.25rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:2rem;font-weight:800}h1+p{margin-bottom:2rem}p{color:var(--text-muted);margin-bottom:1.5rem;font-size:.95rem}.dropzone{border:2px dashed var(--border);border-radius:var(--radius);text-align:center;cursor:pointer;background:var(--surface);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);margin-bottom:1rem;padding:2.5rem 1rem;transition:all .3s;position:relative;overflow:hidden}.dropzone:before{content:"";border-radius:var(--radius);background:var(--gradient-surface);opacity:0;transition:opacity .3s;position:absolute;inset:0}.dropzone:hover:before,.dropzone.dragging:before{opacity:1}.dropzone:hover,.dropzone.dragging{border-color:var(--accent-violet);box-shadow:var(--glow-violet)}.dropzone p{z-index:1;margin:0;font-size:.95rem;position:relative}.dropzone strong{color:var(--text)}button{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:var(--text);cursor:pointer;align-items:center;gap:.4rem;padding:.65rem 1.35rem;font-family:inherit;font-size:.9rem;transition:all .2s;display:inline-flex}button:hover:not(:disabled){border-color:var(--border-bright);background:#a855f726;box-shadow:0 0 20px #a855f71a}button:disabled{opacity:.4;cursor:not-allowed}button:first-of-type{background:var(--gradient-primary);color:#fff;border:none;font-weight:600;box-shadow:0 4px 20px #a855f74d}button:first-of-type:hover:not(:disabled){background:var(--gradient-primary);transform:translateY(-1px);box-shadow:0 4px 30px #a855f780}.error{color:var(--error);margin:1rem 0;font-size:.9rem}.result-header{justify-content:space-between;align-items:center;margin:1.5rem 0 .5rem;display:flex}.tabs{gap:0;display:flex}.tabs button{border:1px solid var(--border);background:var(--surface);color:var(--text-muted);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:0;padding:.4rem .85rem;font-size:.8rem}.tabs button:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm)}.tabs button:last-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0;border-left:none}.tabs button.active{background:var(--gradient-primary);color:#fff;border-color:#0000;font-weight:600}textarea{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);width:100%;min-height:400px;color:var(--text);resize:vertical;outline:none;padding:1rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.85rem;line-height:1.5;transition:border-color .2s,box-shadow .2s}textarea:focus{border-color:var(--accent-violet);box-shadow:0 0 20px #a855f726}.preview{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);width:100%;min-height:400px;color:var(--text);padding:1rem;line-height:1.6;overflow-y:auto}.preview h1,.preview h2,.preview h3,.preview h4,.preview h5,.preview h6{color:var(--text);margin-top:1rem;margin-bottom:.5rem;font-weight:600;line-height:1.3}.preview h1{font-size:1.5rem}.preview h2{font-size:1.3rem}.preview h3{font-size:1.1rem}.preview p{margin-bottom:.75rem}.preview ul,.preview ol{margin-bottom:.75rem;padding-left:1.5rem}.preview li{margin-bottom:.25rem}.preview code{color:#d8b4fe;background:#a855f726;border-radius:5px;padding:.15em .4em;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.9em}.preview pre{border:1px solid var(--border);border-radius:var(--radius-sm);background:#06060ecc;margin-bottom:.75rem;padding:1rem;overflow-x:auto}.preview pre code{color:var(--text);background:0 0;padding:0}.preview blockquote{border-left:3px solid var(--accent-violet);color:var(--text-muted);margin-bottom:.75rem;padding-left:1rem}.preview table{border-collapse:collapse;width:100%;margin-bottom:.75rem}.preview th,.preview td{border:1px solid var(--border);text-align:left;padding:.5rem .75rem}.preview th{background:#a855f71a;font-weight:600}.preview a{color:var(--accent-violet);text-decoration:none;transition:color .15s}.preview a:hover{color:var(--accent-pink);text-decoration:underline}.preview hr{background:var(--gradient-primary);opacity:.4;border:none;height:1px;margin:1.5rem 0}
