@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{--background-start: #1e1e1e;--background-end-blue: #1c2a4a;--background-end-red: #4a1c2a;--text-primary: #ffffff;--text-secondary: #a0aec0;--noise-opacity: .05}*{margin:0;padding:0;box-sizing:border-box}html{height:100%}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--text-primary);background-color:var(--background-start);background-image:radial-gradient(at 80% 20%,var(--background-end-blue) 0px,transparent 50%),radial-gradient(at 20% 80%,var(--background-end-red) 0px,transparent 50%);position:relative;background-attachment:fixed}body:before{content:"";position:fixed;top:0;left:0;right:0;bottom:0;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAPElEQVR42mNkYGBg2LF4w/AYAMEASr///wz5+fn/f39/I5w2QfIH1k+aPiB9wIaB9E8g/QOpf4LUD6T+C1L/CwA+B2zYRg3tAAAAAElFTkSuQmCC);opacity:var(--noise-opacity);pointer-events:none;z-index:-1}#root{min-height:100vh}:root{--color-primary: #6366f1;--color-primary-light: #818cf8;--color-primary-dark: #4f46e5;--color-background: #f8fafc;--color-surface: #ffffff;--color-surface-light: #f1f5f9;--color-text-primary: #1e293b;--color-text-secondary: #475569;--color-text-muted: #64748b;--color-border: #e2e8f0;--color-border-light: #cbd5e1;--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-size-xs: .75rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-size-xl: 1.25rem;--font-size-2xl: 1.5rem;--font-size-3xl: 1.875rem;--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-6: 1.5rem;--space-8: 2rem;--space-12: 3rem;--radius-sm: .375rem;--radius: .5rem;--radius-lg: .75rem;--radius-xl: 1rem;--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--background-start: #1e1e1e;--background-end-blue: #1c2a4a;--background-end-red: #4a1c2a;--text-primary: #ffffff;--text-secondary: #a0aec0;--noise-opacity: .05}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:#0000001a}::-webkit-scrollbar-thumb{background:#fff3;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#ffffff4d}body.scroll-locked{overflow:hidden!important;position:fixed!important;width:100%!important;height:100%!important}.upload-page{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:40px 20px}.upload-container{width:100%;max-width:800px;display:flex;flex-direction:column;gap:40px}.upload-header{text-align:center}.upload-title{font-size:3.5rem;font-weight:700;color:var(--text-primary);margin:0 0 16px}.upload-subtitle{font-size:1.25rem;color:var(--text-secondary);max-width:50ch;margin:0 auto}.highlight{background:linear-gradient(120deg,#84fab0,#8fd3f4);padding:2px 8px;border-radius:6px;color:#2d3748;font-weight:600}.strikethrough{text-decoration:line-through;color:#a0aec0}.upload-section{display:flex;flex-direction:column;gap:24px}.upload-area{background:#0003;border:1px solid rgba(255,255,255,.1);border-radius:24px;padding:32px;text-align:center;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);min-height:160px;display:flex;align-items:center;justify-content:center}.upload-area:hover{border-color:#fff3;background:#00000040}.upload-area.drag-over{border-color:#ffffff4d;background:#0000004d;transform:scale(1.02)}.upload-area.disabled{opacity:.6;cursor:not-allowed;pointer-events:none}.upload-area.has-file{border-color:#43cc974d}.upload-content{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}.upload-icon{font-size:2.5rem;margin-bottom:8px;color:var(--text-secondary);transition:transform .3s ease}.upload-icon.success{color:#43cc97;font-size:3rem}.upload-area:hover .upload-icon{transform:scale(1.05)}.upload-text{display:flex;flex-direction:column;gap:4px}.primary-text{font-size:1.1rem;font-weight:500;color:var(--text-primary)}.secondary-text{font-size:.9rem;color:var(--text-secondary)}.file-name{font-size:1.1rem;font-weight:500;color:var(--text-primary);word-break:break-all}.file-info{font-size:.9rem;color:var(--text-secondary)}.upload-hint{font-size:.85rem;color:var(--text-secondary);opacity:.8;font-style:italic}.language-section{display:flex;flex-direction:column;gap:8px;background:#0003;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:20px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.language-label{font-size:1rem;font-weight:600;color:var(--text-primary);margin-bottom:4px}.language-input{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:12px 16px;font-size:1rem;color:var(--text-primary);transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.language-input:focus{outline:none;border-color:#8a2be280;box-shadow:0 0 0 3px #8a2be21a;background:#ffffff14}.language-input::placeholder{color:var(--text-secondary);opacity:.7}.language-input:disabled{opacity:.6;cursor:not-allowed}.language-hint{font-size:.9rem;color:var(--text-secondary);opacity:.8;margin:0;font-style:italic}.error-message{display:flex;align-items:center;gap:12px;background:#e0313133;border:1px solid rgba(224,49,49,.4);color:#ffcdd2;border-radius:12px;padding:16px 20px;animation:shake .5s ease-in-out}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.error-icon{font-size:1.25rem}.error-message span{font-weight:500;line-height:1.5}.generate-section{display:flex;justify-content:center}.upload-button{background:linear-gradient(90deg,#8a2be2,#4a00e0);color:#fff;border:none;border-radius:16px;padding:16px 32px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 8px 20px #4a00e04d;transform:scale(0);transform-origin:center;opacity:0;height:0;overflow:hidden;visibility:hidden}.upload-button.ready{transform:scale(1);opacity:1;height:auto;visibility:visible}.upload-button:hover:not(.disabled){transform:translateY(-2px) scale(1);box-shadow:0 12px 30px #4a00e066}.upload-button.disabled{opacity:.5;cursor:not-allowed;transform:scale(1)!important;box-shadow:none}.upload-button.loading{cursor:progress}.button-content{display:flex;align-items:center;justify-content:center;gap:12px}.button-icon{font-size:1.25rem}.loading-spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.upload-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;padding:30px 0 0;border-top:1px solid #e2e8f0}.info-item{display:flex;align-items:center;gap:12px;text-align:left}.info-icon{font-size:1.5rem;flex-shrink:0}.info-item span{color:#4a5568;font-weight:500;line-height:1.4}@media (max-width: 768px){.upload-area{padding:24px;min-height:140px}}@media (max-width: 480px){.upload-title{font-size:1.75rem}.upload-subtitle{font-size:1rem}.upload-area{padding:30px 15px}.primary-text{font-size:1.1rem}.upload-button{padding:16px 28px;font-size:1rem;min-width:160px}.language-section{padding:16px}.language-label{font-size:.9rem}.language-input{padding:10px 14px;font-size:.9rem}.language-hint{font-size:.8rem}}.promo-section{margin-top:32px;padding:24px;background:#00000026;border:1px solid rgba(255,255,255,.1);border-radius:16px;text-align:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.promo-text{font-size:1.1rem;color:var(--text-primary);margin:0 0 16px;line-height:1.6}.promo-text:last-child{margin-bottom:0}.promo-link{color:#43cc97;text-decoration:none;font-weight:600;transition:color .3s ease}.promo-link:hover{color:#36b085;text-decoration:underline}.contact-button{display:inline-block;background:linear-gradient(90deg,#43cc97,#36b085);color:#fff;text-decoration:none;padding:10px 20px;border-radius:8px;font-weight:600;transition:all .3s ease;box-shadow:0 4px 12px #43cc974d}.contact-button:hover{transform:translateY(-2px);box-shadow:0 6px 16px #43cc9766;color:#fff;text-decoration:none}@media (max-width: 768px){.promo-section{margin-top:24px;padding:20px}.promo-text{font-size:1rem}}.processing-mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;display:flex;align-items:center;justify-content:center;animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.processing-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:#121212cc;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.processing-content{position:relative;background:#1e1e1ecc;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:50px 40px;max-width:500px;width:90%;text-align:center;box-shadow:0 25px 50px #0006;animation:slideUp .5s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.processing-robot{margin-bottom:30px;display:flex;flex-direction:column;align-items:center;gap:10px}.robot-head{width:80px;height:80px;background:linear-gradient(135deg,#8a2be2,#4a00e0);border-radius:50%;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;animation:robotFloat 2s ease-in-out infinite}@keyframes robotFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.robot-eyes{display:flex;gap:12px;margin-bottom:8px}.eye{width:8px;height:8px;background:#fff;border-radius:50%;animation:robotBlink 3s ease-in-out infinite}@keyframes robotBlink{0%,90%,to{transform:scaleY(1)}95%{transform:scaleY(.1)}}.robot-mouth{width:16px;height:8px;background:#fff;border-radius:0 0 16px 16px;animation:robotTalk 1.5s ease-in-out infinite}@keyframes robotTalk{0%,to{transform:scaleY(1)}50%{transform:scaleY(.5)}}.robot-body{width:60px;height:40px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;position:relative;display:flex;align-items:center;justify-content:center}.processing-waves{display:flex;gap:4px;align-items:center}.wave{width:4px;height:16px;background:#fff;border-radius:2px;animation:wave 1.2s ease-in-out infinite}.wave:nth-child(2){animation-delay:.2s}.wave:nth-child(3){animation-delay:.4s}@keyframes wave{0%,to{transform:scaleY(1);opacity:.7}50%{transform:scaleY(1.8);opacity:1}}.processing-text{margin-bottom:30px}.processing-text h2{font-size:1.5rem;font-weight:600;color:var(--text-primary);margin:0 0 10px;min-height:2rem}.processing-text p{font-size:1rem;color:var(--text-secondary);margin:0;line-height:1.5}.processing-progress{margin-bottom:30px}.progress-bar{width:100%;height:8px;background:#0000004d;border-radius:4px;overflow:hidden;margin-bottom:8px}.progress-fill{height:100%;background:linear-gradient(90deg,#8a2be2,#4a00e0);border-radius:4px;transition:width .3s ease;animation:progressGlow 2s ease-in-out infinite}@keyframes progressGlow{0%,to{box-shadow:0 0 5px #8a2be24d}50%{box-shadow:0 0 15px #8a2be299}}.progress-text{font-size:.9rem;color:var(--text-secondary);font-weight:600}.processing-steps{display:flex;justify-content:space-between;margin-bottom:30px;gap:10px}.step{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;position:relative}.step-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;transition:all .3s ease}.step.active .step-icon{background:linear-gradient(135deg,#43cc97,#319795);color:#fff;transform:scale(1.1)}.step.processing .step-icon{background:linear-gradient(135deg,#8a2be2,#4a00e0);color:#fff;animation:stepPulse 1.5s ease-in-out infinite}.step:not(.active):not(.processing) .step-icon{background:#0003;color:var(--text-secondary)}@keyframes stepPulse{0%,to{transform:scale(1);box-shadow:0 0 #8a2be266}50%{transform:scale(1.05);box-shadow:0 0 0 10px #8a2be200}}.step span{font-size:.8rem;color:var(--text-secondary);font-weight:500;text-align:center;line-height:1.3}.step.active span,.step.processing span{color:var(--text-primary);font-weight:600}.step:not(:last-child):after{content:"";position:absolute;top:20px;right:-50%;width:calc(100% - 20px);height:2px;background:#ffffff1a;z-index:-1}.step.active:not(:last-child):after{background:linear-gradient(90deg,#43cc97,#319795)}.processing-info{border-top:1px solid rgba(255,255,255,.1);padding-top:20px}.processing-info p{font-size:.9rem;color:var(--text-secondary);margin:0;line-height:1.5}@media (max-width: 768px){.processing-content{padding:40px 30px;margin:20px}.processing-text h2{font-size:1.3rem}.robot-head{width:70px;height:70px}.robot-body{width:50px;height:35px}.processing-steps{gap:5px}.step span{font-size:.75rem}.step-icon{width:35px;height:35px;font-size:1rem}}@media (max-width: 480px){.processing-content{padding:30px 20px}.processing-text h2{font-size:1.2rem}.processing-text p{font-size:.9rem}.robot-head{width:60px;height:60px}.robot-body{width:45px;height:30px}.step span{font-size:.7rem}.step-icon{width:30px;height:30px;font-size:.9rem}.step:not(:last-child):after{top:15px}}.language-switcher{position:relative;display:inline-block}.language-switcher__trigger{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;font-size:13px;transition:all .2s ease;color:#374151;min-width:180px;justify-content:space-between;white-space:nowrap}.language-switcher__trigger:hover{background:#f9fafb;border-color:#d1d5db}.language-switcher__trigger:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.language-switcher__icon{color:#6b7280;flex-shrink:0}.language-switcher__text{flex:1;text-align:left}.language-switcher__chevron{transition:transform .2s ease;color:#6b7280;flex-shrink:0}.language-switcher__chevron--rotated{transform:rotate(180deg)}.language-switcher__dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;z-index:50;margin-top:4px;overflow:hidden}.language-switcher__item{display:block;width:100%;padding:10px 12px;text-align:left;background:#fff;border:none;cursor:pointer;font-size:14px;transition:background-color .2s ease;color:#374151}.language-switcher__item:hover{background:#f3f4f6}.language-switcher__item--active{background:#eff6ff;color:#2563eb;font-weight:500}.language-switcher__item--active:hover{background:#dbeafe}@media (max-width: 640px){.language-switcher__trigger{min-width:160px;padding:6px 8px;font-size:11px;gap:4px}.language-switcher__item{padding:8px 10px;font-size:13px}}@media (max-width: 480px){.language-switcher__trigger{min-width:140px;padding:6px 8px;font-size:10px}}.App{min-height:100vh;display:flex;flex-direction:column;padding:20px;max-width:1200px;margin:0 auto}.app-header{background:transparent;color:var(--text-primary);padding:40px 20px;text-align:center;box-shadow:none;margin-bottom:20px;flex-shrink:0}.app-title{font-size:3.5rem;font-weight:700;margin:0 0 16px;text-shadow:0 2px 8px rgba(0,0,0,.2)}.app-subtitle{font-size:1.25rem;font-weight:400;margin:0 auto;color:var(--text-secondary);max-width:50ch;line-height:1.6}.header-content{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px;gap:var(--space-4)}.language-switcher-container{position:fixed;top:20px;right:20px;z-index:1000}.header-language-switcher{margin-left:var(--space-3)}.header-text{flex:1}.header-actions{display:flex;align-items:center;gap:var(--space-3);flex-shrink:0}.restart-button{background:#ffffff1a;color:var(--text-primary);border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:12px 20px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);white-space:nowrap}.restart-button:hover{background:#ffffff26;border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 8px 20px #0003}.restart-button:active{transform:translateY(0)}.editor-wrapper{background:#fff;border:1px solid #e1e5e9;border-radius:var(--radius-xl);box-shadow:var(--shadow-xl);overflow:hidden;display:flex;flex-direction:column;max-height:70vh;min-height:500px;margin-bottom:40px}.toolbar{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-4) var(--space-6);background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-bottom:1px solid #e1e5e9;flex-wrap:wrap;flex-shrink:0;min-height:64px}.toolbar-group{display:flex;align-items:center;gap:var(--space-1);padding:0 var(--space-3);border-right:1px solid #d1d5db;height:40px}.toolbar-group:last-child{border-right:none;padding-right:0}.toolbar-btn{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;border:none;border-radius:var(--radius);background:transparent;color:#4b5563;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;position:relative;overflow:hidden;padding:0 var(--space-2);gap:var(--space-2)}.toolbar-btn--default{background:transparent}.toolbar-btn--primary{background:#3b82f6;color:#fff}.toolbar-btn--danger{background:#ef4444;color:#fff}.toolbar-btn--sm{min-width:32px;height:32px;font-size:12px}.toolbar-btn--md{min-width:40px;height:40px;font-size:14px}.toolbar-btn--lg{min-width:48px;height:48px;font-size:16px}.toolbar-btn:hover:not(.toolbar-btn--disabled){background:#f3f4f6;color:#1f2937;transform:translateY(-1px);box-shadow:0 4px 8px #0000001a}.toolbar-btn--active{background:#dbeafe!important;color:#1d4ed8!important;box-shadow:inset 0 2px 4px #3b82f61a;font-weight:600}.toolbar-btn--active:hover{background:#bfdbfe!important;transform:none}.toolbar-btn--disabled{opacity:.4;cursor:not-allowed;pointer-events:none}.toolbar-btn__icon{flex-shrink:0;transition:transform .2s ease}.toolbar-btn:hover:not(.toolbar-btn--disabled) .toolbar-btn__icon{transform:scale(1.1)}.toolbar-btn__text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar-select{padding:var(--space-2) var(--space-4);border:1px solid #d1d5db;border-radius:var(--radius);background:#fff;color:#374151;font-size:14px;font-weight:500;cursor:pointer;min-width:140px;height:40px;transition:all .2s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}.toolbar-select:hover{border-color:#9ca3af;box-shadow:0 1px 3px #0000001a}.toolbar-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.export-dropdown{position:relative;display:inline-block}.export-button{display:flex;align-items:center;gap:var(--space-2);background:#ffffff1a;color:var(--text-primary);border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:12px 16px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);white-space:nowrap;min-width:120px}.export-button:hover{background:#ffffff26;border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 8px 20px #0003}.export-button--open{background:#fff3;border-color:#fff6}.export-button__icon{flex-shrink:0}.export-button__text{flex:1}.export-button__chevron{flex-shrink:0;transition:transform .2s ease}.export-button__chevron--rotated{transform:rotate(180deg)}.export-dropdown__menu{position:absolute;top:calc(100% + 8px);right:0;background:#fff;border:1px solid #e1e5e9;border-radius:12px;box-shadow:0 10px 25px #00000026;padding:var(--space-2);min-width:220px;z-index:1000;animation:slideDown .2s ease-out}.export-dropdown__info{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);background:#fef3c7;border:1px solid #f59e0b;border-radius:var(--radius);margin-bottom:var(--space-2);font-size:12px;color:#92400e;line-height:1.3}.export-dropdown__info svg{flex-shrink:0;color:#f59e0b}.export-dropdown__item-note{font-size:11px;color:#f59e0b;font-weight:500;margin-top:2px}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.export-dropdown__item{display:flex;align-items:center;gap:var(--space-3);width:100%;padding:var(--space-3) var(--space-4);border:none;border-radius:var(--radius);background:transparent;color:#374151;font-size:14px;cursor:pointer;transition:all .2s ease;text-align:left}.export-dropdown__item:hover{background:#f3f4f6;color:#1f2937}.export-dropdown__item-icon{flex-shrink:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;color:#6b7280}.export-dropdown__item:hover .export-dropdown__item-icon{color:#374151}.export-dropdown__item-content{flex:1;min-width:0}.export-dropdown__item-label{font-weight:500;color:inherit;margin-bottom:2px}.export-dropdown__item-description{font-size:12px;color:#6b7280;line-height:1.3}.export-button--loading{background:#fff3;border-color:#fff6;opacity:.8;cursor:not-allowed}.export-button--loading .export-button__icon{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tiptap-container,.tiptap{background:#fff;color:#1f2937;padding:var(--space-8);font-size:var(--font-size-base);line-height:1.7;border:none;outline:none;overflow-y:auto;flex:1;min-height:400px;scrollbar-width:thin;scrollbar-color:#cbd5e1 #f1f5f9}.tiptap-container::-webkit-scrollbar,.tiptap::-webkit-scrollbar{width:12px}.tiptap-container::-webkit-scrollbar-track,.tiptap::-webkit-scrollbar-track{background:#f1f5f9;border-radius:6px}.tiptap-container::-webkit-scrollbar-thumb,.tiptap::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:6px;border:2px solid #f1f5f9}.tiptap-container::-webkit-scrollbar-thumb:hover,.tiptap::-webkit-scrollbar-thumb:hover{background:#94a3b8}.tiptap-container .ProseMirror,.tiptap .ProseMirror{outline:none;color:inherit;min-height:auto}.tiptap-container h1,.tiptap-container h2,.tiptap-container h3,.tiptap-container h4,.tiptap-container h5,.tiptap-container h6,.tiptap h1,.tiptap h2,.tiptap h3,.tiptap h4,.tiptap h5,.tiptap h6{color:#111827;font-weight:700;line-height:1.3;margin:var(--space-6) 0 var(--space-4)}.tiptap-container h1,.tiptap h1{font-size:var(--font-size-3xl)}.tiptap-container h2,.tiptap h2{font-size:var(--font-size-2xl)}.tiptap-container h3,.tiptap h3{font-size:var(--font-size-xl)}.tiptap-container h4,.tiptap h4{font-size:var(--font-size-lg)}.tiptap-container h1:first-child,.tiptap-container h2:first-child,.tiptap-container h3:first-child,.tiptap h1:first-child,.tiptap h2:first-child,.tiptap h3:first-child{margin-top:0}.tiptap-container p,.tiptap p{margin:var(--space-4) 0;color:#374151}.tiptap-container p:first-child,.tiptap p:first-child{margin-top:0}.tiptap-container p:last-child,.tiptap p:last-child{margin-bottom:0}.tiptap-container strong,.tiptap strong{color:#111827;font-weight:600}.tiptap-container em,.tiptap em{color:#6366f1;font-style:italic}.tiptap-container code,.tiptap code{background:#f3f4f6;color:#e11d48;padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);font-family:SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,Courier New,monospace;font-size:.9em}.tiptap-container s,.tiptap s{text-decoration:line-through;color:#6b7280}.tiptap-container a,.tiptap a{color:#3b82f6;text-decoration:underline;cursor:pointer}.tiptap-container a:hover,.tiptap a:hover{color:#1d4ed8}.tiptap-container ul,.tiptap-container ol,.tiptap ul,.tiptap ol{padding-left:var(--space-6);margin:var(--space-4) 0}.tiptap-container li,.tiptap li{margin:var(--space-2) 0;color:#374151}.tiptap-container ul li,.tiptap ul li{list-style-type:disc}.tiptap-container ol li,.tiptap ol li{list-style-type:decimal}.tiptap-container pre,.tiptap pre{background:#f9fafb;border:1px solid #e5e7eb;border-radius:var(--radius-lg);padding:var(--space-6);margin:var(--space-6) 0;overflow-x:auto;position:relative}.tiptap-container pre code,.tiptap pre code{background:transparent;color:#111827;padding:0;border-radius:0;font-size:var(--font-size-sm);line-height:1.6}.tiptap-container img,.tiptap img,.editor-image{max-width:60%;height:auto;border-radius:var(--radius);margin:var(--space-4) auto;box-shadow:0 2px 4px -1px #0000001a;display:block}@media (max-width: 768px){.App{padding:10px}.app-header{padding:30px 20px}.app-title{font-size:2.5rem}.app-subtitle{font-size:1.1rem}.header-content{flex-direction:column;gap:20px}.header-text{text-align:center}.restart-button{width:100%;max-width:220px}.editor-wrapper{max-height:60vh;min-height:400px}.tiptap-container,.tiptap{padding:var(--space-4);min-height:300px}.tiptap-container img,.tiptap img,.editor-image{max-width:80%}.toolbar{padding:var(--space-3) var(--space-4);gap:var(--space-1);min-height:56px}.toolbar-group{padding:0 var(--space-2);height:36px}.toolbar-btn{min-width:36px;height:36px;font-size:12px}.toolbar-select{min-width:120px;height:36px;font-size:13px}.export-dropdown__menu{min-width:200px}.header-actions{width:100%;justify-content:center}.language-switcher-container{top:10px;right:10px}.header-language-switcher{margin-left:0;margin-top:var(--space-3)}}@media (max-width: 480px){.app-title{font-size:2rem}.editor-wrapper{max-height:50vh;min-height:350px}.toolbar{padding:var(--space-2) var(--space-3)}.toolbar-btn{min-width:32px;height:32px}.export-button{padding:10px 14px;font-size:.9rem;min-width:100px}}.tiptap-container blockquote,.tiptap blockquote{border-left:4px solid #e5e7eb;padding-left:var(--space-6);margin:var(--space-6) 0;font-style:italic;color:#6b7280;background:#f9fafb;padding:var(--space-4) var(--space-6);border-radius:0 var(--radius) var(--radius) 0}.tiptap-container hr,.tiptap hr{border:none;height:1px;background:#e5e7eb;margin:var(--space-8) 0}.tiptap-container[style*="text-align: center"],.tiptap[style*="text-align: center"]{text-align:center}.tiptap-container[style*="text-align: right"],.tiptap[style*="text-align: right"]{text-align:right}.tiptap-container[style*="text-align: justify"],.tiptap[style*="text-align: justify"]{text-align:justify}.header-content .app-title{margin-bottom:0}
