*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background-color:#f5f5f7;color:#1d1d1f;line-height:1.6;padding-top:80px}.container{max-width:1500px;margin:0 auto;padding:20px 20px 0}.main-header{position:fixed;top:0;left:0;right:0;background:#fff;border-bottom:1px solid #e5e5e7;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);z-index:1000;box-shadow:0 1px 5px rgba(0,0,0,.1)}.main-header .header-container{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;height:80px}@media(max-width:768px){.main-header .header-container{flex-direction:column;height:auto;padding:16px}}.main-header .header-brand{display:flex;flex-direction:column;align-items:flex-start}@media(max-width:768px){.main-header .header-brand{align-items:center;margin-bottom:16px}}.main-header .header-brand .brand-title{font-size:24px;font-weight:700;color:#007aff;margin:0;line-height:1.2;text-align:start}.main-header .header-brand .brand-subtitle{font-size:14px;color:#86868b;font-weight:500;margin-top:2px}.main-header .header-nav{display:flex;gap:8px}@media(max-width:768px){.main-header .header-nav{width:100%;justify-content:center}}.main-header .header-nav .nav-link{display:flex;align-items:center;gap:8px;padding:12px 20px;border-radius:12px;text-decoration:none;color:#1d1d1f;font-weight:500;font-size:14px;transition:all .2s ease;border:1px solid transparent}.main-header .header-nav .nav-link:hover{background-color:rgba(0,122,255,.1);color:#007aff}.main-header .header-nav .nav-link.active{background-color:#007aff;color:#fff;box-shadow:0 2px 8px rgba(0,122,255,.3)}.main-header .header-nav .nav-link svg{transition:transform .2s ease}.main-header .header-nav .nav-link:hover svg{transform:translateY(-1px)}@media(max-width:480px){.main-header .header-nav .nav-link{padding:10px 16px;font-size:14px}.main-header .header-nav .nav-link svg{width:18px;height:18px}}.main-header .header-nav .language-switcher{position:relative;margin-left:16px}.main-header .header-nav .language-switcher .lang-toggle{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:12px;background:rgba(0,122,255,.1);border:1px solid rgba(0,122,255,.2);color:#007aff;font-weight:500;font-size:14px;cursor:pointer;transition:all .2s ease}.main-header .header-nav .language-switcher .lang-toggle:hover{background:rgba(0,122,255,.15);transform:translateY(-1px)}.main-header .header-nav .language-switcher .lang-toggle .current-lang{font-weight:600}.main-header .header-nav .language-switcher .lang-toggle .chevron{transition:transform .2s ease}.main-header .header-nav .language-switcher .lang-toggle.active .chevron{transform:rotate(180deg)}.main-header .header-nav .language-switcher .lang-dropdown{position:absolute;top:100%;right:0;background:#fff;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.12);border:1px solid #e5e5e7;min-width:160px;margin-top:8px;opacity:0;visibility:hidden;transform:translateY(-10px);transition:all .2s ease;z-index:1001}.main-header .header-nav .language-switcher .lang-dropdown.show{opacity:1;visibility:visible;transform:translateY(0)}.main-header .header-nav .language-switcher .lang-dropdown .lang-option{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:8px;text-decoration:none;color:#1d1d1f;font-size:14px;font-weight:500;transition:background-color .2s ease}.main-header .header-nav .language-switcher .lang-dropdown .lang-option:hover{background-color:rgba(0,122,255,.1)}.main-header .header-nav .language-switcher .lang-dropdown .lang-option.active{background-color:#007aff;color:#fff}.main-header .header-nav .language-switcher .lang-dropdown .lang-option .flag{font-size:16px;line-height:1}.main-header .header-nav .language-switcher .lang-dropdown .lang-option .lang-name{flex:1 1}@media(max-width:768px){.main-header .header-nav .language-switcher{margin-left:8px}.main-header .header-nav .language-switcher .lang-toggle{padding:8px 12px;font-size:13px}.main-header .header-nav .language-switcher .lang-dropdown{min-width:140px}}.footer{background:#1d1d1f;color:#fff;padding:48px 0 24px}.footer .footer-content{display:grid;grid-template-columns:2fr 1fr 1fr;grid-gap:48px;gap:48px;max-width:1200px;margin:0 auto;padding:0 24px}@media(max-width:768px){.footer .footer-content{grid-template-columns:1fr;gap:32px;padding:0 16px}}.footer .footer-section .footer-title{font-size:18px;font-weight:700;margin-bottom:16px;color:#fff}.footer .footer-section .footer-description{font-size:14px;color:hsla(0,0%,100%,.7);line-height:1.6}.footer .footer-section .footer-links{list-style:none;padding:0;margin:0}.footer .footer-section .footer-links li{margin-bottom:8px}.footer .footer-section .footer-links li a{color:hsla(0,0%,100%,.7);text-decoration:none;font-size:14px;transition:color .2s ease}.footer .footer-section .footer-links li a:hover{color:#fff}.footer .footer-bottom{text-align:center;padding-top:24px}.footer .footer-bottom p{font-size:14px;color:hsla(0,0%,100%,.5);margin:0}.page-header{text-align:center;margin-bottom:40px}.page-header .page-title{font-size:2rem;font-weight:600;color:#1d1d1f;margin-bottom:10px}@media(min-width:992px){.page-header .page-title{font-size:2.5rem}}.page-header .page-description{color:#86868b;font-size:1.1rem;max-width:600px;margin:0 auto}.hero-section{display:grid;grid-template-columns:1fr 1fr;grid-gap:60px;gap:60px;align-items:center;padding:80px 0;min-height:600px}@media(max-width:992px){.hero-section{grid-template-columns:1fr;gap:40px;padding:60px 0;text-align:center}}.hero-section .hero-content .hero-title{font-size:48px;font-weight:700;line-height:1.1;margin-bottom:24px;color:#1d1d1f}@media(max-width:992px){.hero-section .hero-content .hero-title{font-size:40px}}@media(max-width:768px){.hero-section .hero-content .hero-title{font-size:32px}}.hero-section .hero-content .hero-title .highlight{color:#007aff;position:relative}.hero-section .hero-content .hero-title .highlight:after{content:"";position:absolute;bottom:4px;left:0;right:0;height:3px;background:linear-gradient(90deg,#007aff,rgba(0,122,255,.3));border-radius:2px}.hero-section .hero-content .hero-description{font-size:20px;color:#86868b;line-height:1.6;margin-bottom:32px;max-width:500px}@media(max-width:992px){.hero-section .hero-content .hero-description{max-width:none;font-size:18px}}.hero-section .hero-content .hero-buttons{display:flex;gap:16px;flex-wrap:wrap}@media(max-width:992px){.hero-section .hero-content .hero-buttons{justify-content:center}}.hero-section .hero-visual{display:flex;justify-content:center;align-items:center}.hero-section .hero-visual .code-preview{background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.1);border:1px solid #d2d2d7;overflow:hidden;max-width:500px;width:100%}.hero-section .hero-visual .code-preview .code-header{background:#f8f9fa;padding:16px;border-bottom:1px solid #d2d2d7}.hero-section .hero-visual .code-preview .code-header .code-tabs{display:flex;gap:8px}.hero-section .hero-visual .code-preview .code-header .code-tabs .tab{padding:8px 16px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.hero-section .hero-visual .code-preview .code-header .code-tabs .tab.active{background:#007aff;color:#fff}.hero-section .hero-visual .code-preview .code-header .code-tabs .tab:not(.active){background:#fff;color:#86868b}.hero-section .hero-visual .code-preview .code-content{padding:24px}.hero-section .hero-visual .code-preview .code-content pre{margin:0;font-family:SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,Courier New,monospace;font-size:13px;line-height:1.5;color:#1d1d1f;background:none;white-space:pre-wrap;word-wrap:break-word}.tools-section{padding:80px 0;background:#fff}@media(max-width:768px){.tools-section{padding:60px 0}}.tools-section .section-header{text-align:center;margin-bottom:64px}@media(max-width:768px){.tools-section .section-header{margin-bottom:48px}}.tools-section .section-header .section-title{font-size:40px;font-weight:700;margin-bottom:16px;color:#1d1d1f}@media(max-width:768px){.tools-section .section-header .section-title{font-size:32px}}@media(max-width:576px){.tools-section .section-header .section-title{font-size:28px}}.tools-section .section-header .section-description{font-size:18px;color:#86868b;max-width:600px;margin:0 auto}@media(max-width:768px){.tools-section .section-header .section-description{font-size:16px}}.tools-section .tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));grid-gap:32px;gap:32px;max-width:1000px;margin:0 auto}@media(max-width:576px){.tools-section .tools-grid{grid-template-columns:1fr;gap:24px}}.tools-section .tool-card{background:#fff;border-radius:20px;padding:32px;box-shadow:0 4px 20px rgba(0,0,0,.08);border:1px solid #d2d2d7;transition:all .3s ease;position:relative;overflow:hidden}.tools-section .tool-card:hover{transform:translateY(-8px);box-shadow:0 20px 40px rgba(0,0,0,.12)}.tools-section .tool-card.featured{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none}.tools-section .tool-card.featured .feature,.tools-section .tool-card.featured .tool-description,.tools-section .tool-card.featured .tool-title{color:#fff}.tools-section .tool-card.featured .tool-badge{position:absolute;top:20px;right:20px;background:hsla(0,0%,100%,.2);color:#fff;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.tools-section .tool-card .tool-icon{width:60px;height:60px;background:rgba(0,122,255,.1);border-radius:16px;display:flex;align-items:center;justify-content:center;margin-bottom:24px;color:#007aff}.tools-section .tool-card .tool-icon svg{width:32px;height:32px}.tools-section .tool-card .tool-title{font-size:24px;font-weight:700;margin-bottom:16px;color:#1d1d1f}.tools-section .tool-card .tool-description{font-size:16px;color:#86868b;line-height:1.6;margin-bottom:24px}.tools-section .tool-card .tool-features{margin-bottom:32px}.tools-section .tool-card .tool-features .feature{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-size:14px;color:#1d1d1f}.tools-section .tool-card .tool-features .feature svg{width:16px;height:16px;color:#34c759;flex-shrink:0}.tools-section .tool-card .tool-button{display:inline-flex;align-items:center;gap:8px;padding:16px 24px;background:#007aff;color:#fff;text-decoration:none;border-radius:12px;font-weight:600;font-size:16px;transition:all .2s ease;width:100%;justify-content:center}.tools-section .tool-card .tool-button:hover{background:#0062cc;transform:translateY(-2px)}.tools-section .tool-card .tool-button svg{width:18px;height:18px;transition:transform .2s ease}.tools-section .tool-card .tool-button:hover svg{transform:translateX(4px)}.app-layout{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;gap:30px;margin-bottom:30px}@media(max-width:768px){.app-layout{grid-template-columns:1fr}}.url-extraction-section{background:#fff;border-radius:12px;padding:25px;margin-bottom:30px;box-shadow:0 2px 10px rgba(0,0,0,.05);border:1px solid #e5e5e7}.url-extraction-section .url-input-group{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.url-extraction-section .url-input-group .url-input{flex:1 1;min-width:300px;padding:12px 16px;border:2px solid #d2d2d7;border-radius:8px;font-size:1rem;transition:border-color .2s ease}.url-extraction-section .url-input-group .url-input:focus{outline:none;border-color:#007aff}@media(max-width:768px){.url-extraction-section .url-input-group{flex-direction:column;align-items:stretch}.url-extraction-section .url-input-group .url-input{min-width:auto}}.dropzone{background:rgba(0,122,255,.1);border:3px dashed #007aff;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.dropzone.highlight{background:rgba(0,122,255,.15);border-color:#007aff}.dropzone .dropzone-content svg{width:48px;height:48px;margin-bottom:16px}.dropzone .dropzone-content p{font-size:18px;font-weight:600;margin:0}.formatting-controls{margin-top:30px}.formatting-controls .formatting-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:16px}.formatting-controls .formatting-header .formatting-tools{display:flex;gap:12px;flex-wrap:wrap}.formatting-controls .formatting-section{margin-bottom:32px}.formatting-controls .formatting-section:last-child{margin-bottom:0}.formatting-controls .formatting-section .sub-section-title{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:600;margin-bottom:20px;color:#1d1d1f}.formatting-controls .control-group{display:grid;grid-gap:20px;gap:20px}.formatting-controls .control-group.general-settings{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.formatting-controls .control-group.color-settings,.formatting-controls .control-group.options-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.formatting-controls .advanced-toggle-ghost{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:6px!important;background:transparent!important;border:none!important;border-radius:6px!important;color:#6c757d!important;cursor:pointer!important;transition:all .2s ease!important;opacity:1!important;margin-left:auto!important}.formatting-controls .advanced-toggle-ghost:hover{background:transparent!important;color:#495057!important;opacity:1!important;transform:scale(1.1)!important}.formatting-controls .advanced-toggle-ghost:active{transform:scale(.95)!important}.formatting-controls .advanced-toggle-ghost:focus{outline:none!important;box-shadow:0 0 0 2px rgba(0,123,255,.25)!important}.formatting-controls .control-item{display:flex;flex-direction:column;gap:8px}.formatting-controls .control-item .label-with-wrench{justify-content:space-between!important}.formatting-controls .control-item label{font-weight:500;color:#1d1d1f;display:flex;align-items:center;gap:8px;font-size:14px}.formatting-controls .control-item input,.formatting-controls .control-item select{padding:10px 12px;border:2px solid #d2d2d7;border-radius:8px;font-size:14px;transition:border-color .2s ease}.formatting-controls .control-item input:focus,.formatting-controls .control-item select:focus{outline:none;border-color:#007aff}.formatting-controls .control-item .range-input{width:100%}.formatting-controls .control-item .range-value{font-size:12px;color:#86868b;text-align:center;margin-top:4px}.formatting-controls .control-item .color-input{width:50px;height:40px;border:none;border-radius:8px;cursor:pointer}.formatting-controls .control-item .color-input-group{display:flex;align-items:center;gap:12px}.formatting-controls .control-item .color-input-group .color-preview{width:24px;height:24px;border-radius:4px;border:1px solid #d2d2d7}.formatting-controls .btn-preset{background:#f5f5f7;border:1px solid #d2d2d7;border-radius:8px;padding:12px 16px;color:#1d1d1f;font-weight:500;font-size:14px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px}.formatting-controls .btn-preset.active,.formatting-controls .btn-preset:hover{background:#007aff;color:#fff;border-color:#007aff}.formatting-controls .btn-preset.active{box-shadow:0 0 0 2px rgba(0,122,255,.2)}.formatting-controls .collapsible-group{border:1px solid #d2d2d7;border-radius:8px;margin-bottom:16px;overflow:hidden}.formatting-controls .collapsible-group .collapsible-header{width:100%;padding:16px 20px;background:#f8f9fa;border:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background-color .2s ease}.formatting-controls .collapsible-group .collapsible-header:hover{background:#e9ecef}.formatting-controls .collapsible-group .collapsible-header.expanded{background:#007aff;color:#fff}.formatting-controls .collapsible-group .collapsible-header .heading-preview{font-weight:600;font-size:14px;padding:4px 8px;border-radius:4px;background:rgba(0,0,0,.1);margin-right:12px}.formatting-controls .collapsible-group .collapsible-header .heading-preview.h1-preview{font-size:18px}.formatting-controls .collapsible-group .collapsible-header .heading-preview.h2-preview{font-size:16px}.formatting-controls .collapsible-group .collapsible-header .heading-preview.h3-preview{font-size:14px}.formatting-controls .collapsible-group .collapsible-header .chevron{transition:transform .2s ease}.formatting-controls .collapsible-group .collapsible-header .chevron.expanded{transform:rotate(180deg)}.formatting-controls .collapsible-group .collapsible-content{max-height:0;overflow:hidden;transition:max-height .3s ease}.formatting-controls .collapsible-group .collapsible-content.expanded{max-height:500px}.formatting-controls .collapsible-group .collapsible-content .control-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));grid-gap:16px;gap:16px;padding:20px;background:#fff}.formatting-controls .button-group-toggle{display:flex;border:1px solid #d2d2d7;border-radius:6px;overflow:hidden}.formatting-controls .button-group-toggle .toggle-btn{flex:1 1;padding:8px 12px;border:none;background:#fff;color:#1d1d1f;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.formatting-controls .button-group-toggle .toggle-btn:hover{background:#f8f9fa}.formatting-controls .button-group-toggle .toggle-btn.active{background:#007aff;color:#fff}@media(max-width:768px){.formatting-controls{padding:20px 15px}.formatting-controls .formatting-header{flex-direction:column;align-items:stretch}.formatting-controls .formatting-header .formatting-tools{justify-content:center}.formatting-controls .control-group{grid-template-columns:1fr}}.input-section,.preview-section{background:#fff;border-radius:12px;padding:25px;box-shadow:0 2px 10px rgba(0,0,0,.05);border:1px solid #e5e5e7}.file-badge{background:rgba(0,122,255,.1);color:#007aff;padding:8px 12px;font-size:14px;margin-right:12px}.file-badge .remove-file{color:#007aff;border-radius:4px}.file-badge .remove-file:hover{background:rgba(0,122,255,.2)}.file-badge .remove-file svg{width:14px;height:14px}.load-file-btn{padding:12px 16px;background:#f5f5f7;border:2px dashed #d2d2d7;color:#1d1d1f;font-size:14px}.load-file-btn:hover{background:rgba(0,122,255,.05);border-color:#007aff;color:#007aff}.option-btn{gap:8px;padding:10px 16px;font-weight:500;font-size:14px}.option-btn:hover{background:rgba(0,122,255,.1);border-color:#007aff;color:#007aff}.input-options,.output-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.button-group{gap:16px;margin-top:32px;flex-wrap:wrap}@media(max-width:768px){.button-group{flex-direction:column}.button-group .btn{width:100%;justify-content:center}}.preview-content{border:2px solid #d2d2d7;background:#fafafa}.preview-content h1{font-size:2em}.preview-content h2{font-size:1.5em}.preview-content h3{font-size:1.25em}.preview-content ol li,.preview-content ul li{margin-bottom:8px}.preview-content code{font-size:.875em;color:#d73a49}.preview-content code,.preview-content pre{background-color:#f6f8fa;border:1px solid #e1e4e8}.preview-content pre{line-height:1.5}.preview-content pre code{border:none;color:#1d1d1f;font-size:.875rem}.preview-content blockquote{padding:12px 16px;border-left:4px solid #007aff;background-color:#f8f9fa;border-radius:0 4px 4px 0}.preview-content blockquote p{margin:0 0 8px;color:#6a737d;font-style:italic}.preview-content blockquote p:last-child{margin-bottom:0}.preview-content table{font-size:.9rem;overflow:hidden;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.1)}.preview-content table td,.preview-content table th{padding:12px 16px;border-bottom:1px solid #e1e4e8}.preview-content table th{background-color:#f8f9fa;color:#1d1d1f}.section-header{justify-content:space-between;margin-bottom:20px;flex-wrap:wrap;gap:10px}.section-header,.section-title{display:flex;align-items:center}.section-title{font-size:1.3rem;font-weight:600;color:#1d1d1f;margin:0;gap:8px}.section-title svg{width:20px;height:20px;color:#007aff}.input-options{display:flex;gap:10px}.option-btn{background:#f5f5f7;border:1px solid #d2d2d7;border-radius:8px;padding:8px 12px;display:flex;align-items:center;gap:6px;font-size:.9rem;color:#1d1d1f;cursor:pointer;transition:all .2s ease}.option-btn:hover{background:#e7e7ec;border-color:#b7b7bf}.option-btn svg{width:16px;height:16px}.input-container{position:relative}.markdown-input{width:100%;height:400px;resize:vertical;border:2px solid #d2d2d7;border-radius:8px;padding:16px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px;line-height:1.5;background:#fafafa;transition:border-color .2s ease}.markdown-input:focus{outline:none;border-color:#007aff;background:#fff}.markdown-input::placeholder{color:#86868b}.file-badge{display:flex;align-items:center;gap:8px;background:#007aff;color:#fff;padding:6px 12px;border-radius:20px;font-size:.85rem;font-weight:500}.file-badge .file-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-badge .remove-file{background:none;border:none;color:#fff;cursor:pointer;padding:2px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease}.file-badge .remove-file:hover{background:hsla(0,0%,100%,.2)}.file-badge .remove-file svg{width:12px;height:12px}.dropzone{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,122,255,.05);border:2px dashed #007aff;border-radius:12px;display:flex;align-items:center;justify-content:center;z-index:10;transition:all .3s ease}.dropzone.highlight{background:rgba(0,122,255,.1);border-color:#0062cc;transform:scale(1.02)}.dropzone .dropzone-content{text-align:center}.dropzone .dropzone-content svg{color:#007aff;margin-bottom:12px}.dropzone .dropzone-content p{font-size:1.1rem;font-weight:500;color:#007aff;margin-bottom:8px}.dropzone .dropzone-content .file-info{font-size:.9rem;color:#86868b}.preview-content{background:#fff;border:1px solid #d2d2d7;border-radius:8px;padding:20px;min-height:400px;max-height:600px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;position:relative;resize:vertical;overflow:auto}.preview-content:hover:after{opacity:1;background:linear-gradient(-45deg,transparent 30%,#007aff 0,#007aff 40%,transparent 0,transparent 60%,#007aff 0,#007aff 70%,transparent 0)}.preview-content h1,.preview-content h2,.preview-content h3,.preview-content h4,.preview-content h5,.preview-content h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.preview-content h1:first-child,.preview-content h2:first-child,.preview-content h3:first-child,.preview-content h4:first-child,.preview-content h5:first-child,.preview-content h6:first-child{margin-top:0}.preview-content>:last-child{margin-bottom:20px}.preview-content h1{font-size:2rem}.preview-content h2{font-size:1.5rem}.preview-content h3{font-size:1.25rem}.preview-content p{margin-bottom:16px}.preview-content p:last-child{margin-bottom:0}.preview-content ol,.preview-content ul{margin-bottom:16px;padding-left:24px}.preview-content ol li,.preview-content ul li{margin-bottom:4px}.preview-content blockquote{margin:16px 0;padding:0 16px;color:#86868b;border-left:4px solid #d2d2d7}.preview-content blockquote p{margin-bottom:0}.preview-content code{background:#f6f8fa;padding:2px 6px;border-radius:4px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9em}.preview-content pre{background:#f6f8fa;padding:16px;border-radius:8px;overflow-x:auto;margin:16px 0}.preview-content pre code{background:none;padding:0}.preview-content img{max-width:100%;height:auto}.preview-content table{width:100%;border-collapse:collapse;margin:16px 0}.preview-content table td,.preview-content table th{padding:8px 12px;text-align:left;border-bottom:1px solid #d2d2d7}.preview-content table th{font-weight:600;background:#f5f5f7}.preview-content hr{border:none;height:1px;background:#d2d2d7;margin:24px 0}.output-actions{display:flex;gap:10px}.btn{padding:12px 20px;border-radius:8px;border:none;font-size:1rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .2s ease;text-decoration:none}.btn svg{width:20px;height:20px}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:#007aff;color:#fff}.btn-primary:hover:not(:disabled){background:#0066d6;transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,122,255,.3)}.btn-secondary{background:#f5f5f7;color:#1d1d1f;border:1px solid #d2d2d7}.btn-secondary:hover:not(:disabled){background:#e7e7ec;border-color:#b7b7bf}.btn-outline{background:transparent;color:#007aff;border:2px solid #007aff}.btn-outline:hover:not(:disabled){background:#007aff;color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,122,255,.3)}.btn-accent{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-accent:hover:not(:disabled){background:linear-gradient(135deg,#5a6fd8,#6a4190);transform:translateY(-1px);box-shadow:0 4px 12px rgba(102,126,234,.4)}.spinner{width:20px;height:20px;border-radius:50%;border:2px solid hsla(0,0%,100%,.3);border-top-color:#fff;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.button-group{display:flex;gap:15px;justify-content:center;margin:40px 0}@media(max-width:576px){.button-group{flex-direction:column}}.formatting-controls{background:#fff;border-radius:12px;padding:30px;margin-bottom:30px;box-shadow:0 2px 10px rgba(0,0,0,.05);border:1px solid #e5e5e7}.formatting-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;flex-wrap:wrap;gap:15px}.formatting-header .section-title{font-size:1.4rem;font-weight:600;color:#1d1d1f;margin:0;display:flex;align-items:center;gap:10px}.formatting-header .section-title svg{width:22px;height:22px;color:#007aff}.formatting-tools{display:flex;gap:10px;flex-wrap:wrap}.btn-preset{background:#f5f5f7;border:1px solid #d2d2d7;border-radius:8px;padding:8px 16px;display:flex;align-items:center;gap:8px;font-size:.9rem;font-weight:500;color:#1d1d1f;cursor:pointer;transition:all .2s ease}.btn-preset:hover{transform:translateY(-1px)}.btn-preset.active,.btn-preset:hover{background:#007aff;color:#fff;border-color:#007aff}.btn-preset.active{box-shadow:0 0 0 2px rgba(0,122,255,.2)}.btn-preset svg{width:16px;height:16px}.formatting-section{margin-bottom:30px}.formatting-section:last-child{margin-bottom:0}.sub-section-title{font-size:1.1rem;font-weight:600;color:#1d1d1f;margin-bottom:20px;display:flex;align-items:center;gap:8px}.sub-section-title svg{width:18px;height:18px;color:#007aff}.control-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));grid-gap:20px;gap:20px}.control-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));grid-gap:15px;gap:15px;margin-top:15px}.general-settings{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.color-settings{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.control-item{display:flex;flex-direction:column;gap:8px}.control-item label{font-size:.9rem;font-weight:500;color:#1d1d1f;display:flex;align-items:center;gap:6px}.control-item label svg{width:14px;height:14px;color:#86868b}.control-item select{padding:8px 12px;border:1px solid #d2d2d7;border-radius:6px;background:#fff;font-size:.9rem;color:#1d1d1f;cursor:pointer;transition:border-color .2s ease}.control-item select:focus{outline:none;border-color:#007aff}.range-input{-webkit-appearance:none;width:100%;height:6px;border-radius:3px;background:#e0e0e0;outline:none;cursor:pointer}.range-input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#007aff;cursor:pointer;border:2px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.2);-webkit-transition:all .2s ease;transition:all .2s ease}.range-input::-webkit-slider-thumb:hover{transform:scale(1.1);box-shadow:0 3px 8px rgba(0,122,255,.3)}.range-input::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#007aff;cursor:pointer;border:2px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}.range-value{font-size:.85rem;font-weight:500;color:#007aff;background:rgba(0,122,255,.1);padding:2px 8px;border-radius:12px;text-align:center;min-width:50px}.color-input-group{display:flex;align-items:center;gap:10px}.color-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:40px;height:40px;background-color:transparent;border:none;cursor:pointer;border-radius:8px}.color-input::-webkit-color-swatch{border-radius:6px;border:2px solid #e5e5e7}.color-input::-webkit-color-swatch-wrapper{padding:0;border-radius:6px}.color-input::-moz-color-swatch{border-radius:6px;border:2px solid #e5e5e7}.color-preview{width:20px;height:20px;border-radius:4px;border:1px solid #e5e5e7;display:inline-block}.button-group-toggle{display:flex;border:1px solid #d2d2d7;border-radius:6px;overflow:hidden}.toggle-btn{background:#fff;padding:8px 12px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;border:none;border-right:1px solid #d2d2d7}.toggle-btn:last-child{border-right:none}.toggle-btn:hover{background:#f5f5f7}.toggle-btn.active{background:#007aff;color:#fff}.toggle-btn.active svg{color:#fff}.toggle-btn svg{width:14px;height:14px;color:#86868b}.collapsible-group{border:1px solid #d2d2d7;border-radius:8px;margin-bottom:15px;overflow:hidden}.collapsible-header{width:100%;background:#f5f5f7;border:none;padding:12px 16px;display:flex;align-items:center;gap:12px;cursor:pointer;font-size:.95rem;font-weight:500;color:#1d1d1f;transition:all .2s ease}.collapsible-header:hover{background:#ededf0}.collapsible-header.expanded{background:#fff;border-bottom:1px solid #d2d2d7}.collapsible-header.expanded .chevron{transform:rotate(180deg)}.collapsible-header .chevron{margin-left:auto;transition:transform .2s ease;color:#86868b}.collapsible-header .chevron svg{width:16px;height:16px}.heading-preview{font-weight:600;color:#007aff;min-width:30px;text-align:center}.heading-preview.h1-preview{font-size:1.2rem}.heading-preview.h2-preview{font-size:1.1rem}.heading-preview.h3-preview{font-size:1rem}.collapsible-content{max-height:0;overflow:hidden;transition:all .3s ease;background:#fff}.collapsible-content.expanded{max-height:500px;padding:20px}.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));grid-gap:20px;gap:20px;margin-top:20px}.feature-card{background:#fff;padding:20px;border-radius:10px;border:1px solid #d2d2d7;text-align:center;transition:all .2s ease}.feature-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.1);border-color:#007aff}.feature-icon{display:flex;justify-content:center;margin-bottom:12px}.feature-icon svg{width:32px;height:32px;color:#007aff}.feature-title{font-size:1.1rem;font-weight:600;color:#1d1d1f;margin-bottom:8px}.feature-description{font-size:.9rem;color:#86868b;line-height:1.4}.load-file-btn{background:#007aff;color:#fff;border:none;border-radius:8px;padding:12px 20px;display:flex;align-items:center;gap:8px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease}.load-file-btn:hover{background:#0066d6;transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,122,255,.3)}.load-file-btn svg{width:16px;height:16px}#pdf-preview-container{width:210mm;min-height:297mm;padding:20mm;box-sizing:border-box;background:#fff;border:1px solid #ccc;margin:20px auto;position:absolute;left:-9999px;top:-9999px;visibility:hidden;opacity:0}@media(max-width:768px){.formatting-header{flex-direction:column;align-items:flex-start;gap:15px}.control-grid,.control-group{grid-template-columns:1fr}.button-group{flex-direction:column}.button-group .btn{width:100%;justify-content:center}.tools-grid{grid-template-columns:1fr}}@media(max-width:576px){.container{padding:15px}.formatting-controls{padding:20px 15px}.control-item label{font-size:.85rem}}.advanced-settings .advanced-toggle{display:flex;align-items:center;gap:8px;width:100%;padding:12px 16px;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border:1px solid #dee2e6;border-radius:8px;font-size:.9rem;font-weight:500;color:#495057;cursor:pointer;transition:all .2s ease;position:relative}.advanced-settings .advanced-toggle:hover{background:linear-gradient(135deg,#e9ecef,#dee2e6);border-color:#adb5bd;transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.1)}.advanced-settings .advanced-toggle:active{transform:translateY(0);box-shadow:0 1px 4px rgba(0,0,0,.1)}.advanced-settings .advanced-toggle .chevron{margin-left:auto;transition:transform .2s ease}.advanced-settings .advanced-toggle .chevron.open{transform:rotate(180deg)}.advanced-settings .advanced-controls{margin-top:12px;padding:16px;background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;animation:slideDown .2s ease-out}.advanced-settings .advanced-controls .control-group{margin:0}.advanced-settings .advanced-controls .control-group h4{margin:0 0 12px;font-size:.85rem;font-weight:600;color:#495057;text-transform:uppercase;letter-spacing:.5px}.advanced-settings .advanced-controls .control-item{margin-bottom:12px}.advanced-settings .advanced-controls .control-item:last-child{margin-bottom:0}.advanced-settings .advanced-controls .control-item label{font-size:.8rem;color:#6c757d;font-weight:500}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}