:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh;display:flex;flex-direction:column}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.app{max-width:800px;margin:0 auto;padding:1.5rem;min-height:100vh;display:flex;flex-direction:column;justify-content:flex-start}header{text-align:center;margin-bottom:1.5rem}.header-links{position:fixed;top:1rem;right:1rem;display:flex;gap:1rem;align-items:center;z-index:1000}.header-link{display:flex;align-items:center;gap:.25rem;padding:.5rem .75rem;background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;text-decoration:none;color:#495057;font-size:.875rem;font-weight:600;transition:all .2s ease}.header-link:hover{background-color:#e9ecef;border-color:#dee2e6;transform:translateY(-1px);color:#495057}.link-icon{width:16px;height:16px;flex-shrink:0}header h1{color:#333;margin-bottom:.5rem}header p{color:#666;font-size:1.1rem;margin-bottom:.75rem}.description{margin-top:1rem}.description p{color:#555;font-size:.95rem;margin:.5rem 0;max-width:600px;margin-left:auto;margin-right:auto}.upload-section{margin-bottom:1.25rem;text-align:center}.upload-label{display:inline-block;padding:12px 24px;background-color:#646cff;color:#fff;border-radius:6px;cursor:pointer;font-size:1rem;transition:background-color .2s}.upload-label:hover{background-color:#535bf2}.file-input{display:none}.options-section{background-color:#f8f9fa;padding:1.25rem;border-radius:8px;margin-bottom:1.25rem}.option-group{display:flex;align-items:center;gap:1rem;margin-bottom:.75rem}.option-group:last-child{margin-bottom:0}.option-group label{font-weight:500;color:#333}.number-input{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:1rem;width:120px}.checkbox-label{display:flex;align-items:center;gap:.5rem;cursor:pointer}.preview-section{margin-bottom:1.25rem;min-height:0;transition:all .3s ease}.preview-section h3{color:#333;margin-bottom:.75rem}.csv-preview{background-color:#f5f5f5;border:1px solid #ddd;border-radius:4px;padding:1rem;max-height:200px;overflow-y:auto}.csv-preview pre{margin:0;font-family:Courier New,monospace;font-size:.9rem;white-space:pre-wrap}.file-info{background-color:#f0f9ff;border:1px solid #bae6fd;border-radius:6px;padding:.75rem;margin-bottom:.75rem}.file-info p{margin:.5rem 0;color:#0369a1;font-size:.95rem}.file-info p:first-child{margin-top:0}.file-info p:last-child{margin-bottom:0}.action-section{text-align:center;margin-bottom:1.25rem}.split-button{padding:12px 32px;background-color:#10b981;color:#fff;border:none;border-radius:6px;font-size:1.1rem;cursor:pointer;transition:background-color .2s}.split-button:hover:not(:disabled){background-color:#059669}.split-button:disabled{background-color:#9ca3af;cursor:not-allowed}.error-message{background-color:#fee2e2;border:1px solid #fecaca;color:#dc2626;padding:1rem;border-radius:6px;margin-bottom:2rem;text-align:center;animation:slideInFromTop .3s ease}@keyframes slideInFromTop{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.results-section{background-color:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:1.25rem;margin-bottom:1.25rem;animation:slideInFromBottom .3s ease}@keyframes slideInFromBottom{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.results-section h3{color:#166534;margin-bottom:.75rem}.result-info{margin-bottom:1rem}.result-info p{margin:.5rem 0;color:#374151;font-weight:500}.download-section{margin-top:1rem}.download-all-button{background-color:#3b82f6;color:#fff;border:none;padding:10px 20px;border-radius:6px;cursor:pointer;font-size:1rem;margin-bottom:.75rem;transition:background-color .2s}.download-all-button:hover{background-color:#2563eb}.chunk-list{display:flex;flex-direction:column;gap:.5rem}.chunk-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background-color:#fff;border:1px solid #e5e7eb;border-radius:6px}.chunk-item span{color:#374151;font-weight:500}.download-button{background-color:#8b5cf6;color:#fff;border:none;padding:6px 12px;border-radius:4px;cursor:pointer;font-size:.9rem;transition:background-color .2s}.download-button:hover{background-color:#7c3aed}.upload-section,.options-section,.action-section{transition:all .2s ease}main{flex:1;display:flex;flex-direction:column}.dynamic-content-area{min-height:20px;transition:min-height .3s ease}@media (max-width: 640px){.app{padding:1rem;min-height:100vh}.header-links{position:fixed;top:.5rem;right:.5rem;gap:.5rem}.header-link{font-size:.8rem;padding:.375rem .5rem}.option-group{flex-direction:column;align-items:flex-start;gap:.5rem}.chunk-item{flex-direction:column;gap:.5rem;align-items:flex-start}}
