.header{background:var(--surface);border-bottom:1px solid var(--border);padding:var(--spacing-sm) 0;box-shadow:0 1px 3px var(--shadow)}.header-content{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-xl)}.header-text{display:flex;flex-direction:column;gap:2px;flex:1}.header-title-wrapper{display:flex;align-items:center;gap:var(--spacing-md)}.header-logo{width:48px;height:48px;flex-shrink:0;transition:transform .3s ease}.header-logo:hover{transform:scale(1.05)}.header-title{font-size:1.65rem;font-weight:700;color:var(--primary);margin:0;line-height:1.1}.header-subtitle{font-size:.875rem;color:var(--text-secondary);margin:0;line-height:1.3;max-width:600px}.header-description{font-size:.8rem;color:var(--text-secondary);margin:4px 0 0;line-height:1.3;max-width:750px;opacity:.9}.header-nav{display:flex;align-items:center;gap:var(--spacing-sm);background-color:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--spacing-xs);box-shadow:0 2px 8px var(--shadow);margin-right:60px;margin-left:auto}.header-nav-link{display:flex;align-items:center;gap:var(--spacing-xs);padding:var(--spacing-sm) var(--spacing-md);color:var(--text);text-decoration:none;font-size:.875rem;font-weight:500;border-radius:var(--radius-md);transition:var(--transition);white-space:nowrap}.header-nav-link:hover{background-color:var(--surface-light);color:var(--primary)}.header-nav-link svg{flex-shrink:0}@media (max-width: 1024px){.header-content{flex-direction:column;align-items:flex-start;gap:var(--spacing-md)}.header-nav{margin-right:0;width:100%;justify-content:center}.header-nav-link span{display:none}.header-nav-link{padding:var(--spacing-sm)}}@media (max-width: 768px){.header{padding:var(--spacing-md) 0}.header-logo{width:40px;height:40px}.header-title{font-size:1.5rem}.header-subtitle{font-size:.85rem}.header-nav{flex-wrap:wrap}}@media (max-width: 480px){.header-logo{width:36px;height:36px}.header-title{font-size:1.25rem}.header-title-wrapper{gap:var(--spacing-sm)}}.editor-container{position:relative;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background-color:var(--editor-bg);min-height:380px;height:420px;display:flex;flex-direction:column;width:100%;box-shadow:0 2px 8px var(--shadow)}.editor-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:420px;gap:var(--spacing-md);color:var(--text-secondary)}.editor-loading .spinner{width:40px;height:40px;border:3px solid var(--surface-light);border-top-color:var(--primary);border-radius:50%}.editor-placeholder{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--text-secondary);opacity:.5;pointer-events:none;font-size:.95rem;text-align:center}.editor-container .monaco-editor{border-radius:var(--radius-lg)}.editor-container .monaco-editor .margin{background-color:var(--editor-bg)!important}.editor-container>div{flex:1;height:100%}.convert-button{display:flex;align-items:center;justify-content:center;gap:var(--spacing-sm);padding:var(--spacing-md) var(--spacing-xl);background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);color:#fff;font-size:1.125rem;font-weight:600;border-radius:var(--radius-lg);box-shadow:0 4px 12px #3b82f64d;transition:var(--transition);align-self:center;min-width:200px}.convert-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #3b82f666}.convert-button:active:not(:disabled){transform:translateY(0)}.convert-button:disabled{background:linear-gradient(135deg,var(--surface-light) 0%,var(--border) 100%);box-shadow:none}.button-spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%}.model-selector{position:relative;width:100%}.model-selector-label{display:block;font-size:.875rem;font-weight:600;color:var(--text-secondary);margin-bottom:var(--spacing-sm);text-transform:uppercase;letter-spacing:.5px}.model-selector-button{width:100%;display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-md);background-color:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);color:var(--text);font-size:.95rem;transition:var(--transition);text-align:left}.model-selector-button:hover:not(:disabled){background-color:var(--surface-light);border-color:var(--primary)}.model-selector-button:disabled{opacity:.5;cursor:not-allowed}.model-selector-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-selector-icon{flex-shrink:0;transition:transform .2s ease;color:var(--text-secondary)}.model-selector-icon.open{transform:rotate(180deg)}.model-selector-dropdown{position:absolute;top:calc(100% + var(--spacing-xs));left:0;right:0;background-color:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:0 8px 24px var(--shadow);z-index:1000;max-height:400px;display:flex;flex-direction:column;overflow:hidden}.model-selector-search{display:flex;align-items:center;gap:var(--spacing-sm);padding:var(--spacing-md);border-bottom:1px solid var(--border);background-color:var(--background)}.search-icon{color:var(--text-secondary);flex-shrink:0}.search-input{flex:1;border:none;background:transparent;color:var(--text);font-size:.95rem;outline:none}.search-input::placeholder{color:var(--text-secondary)}.search-clear{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;color:var(--text-secondary);cursor:pointer;border-radius:var(--radius-sm);transition:var(--transition)}.search-clear:hover{background-color:var(--surface-light);color:var(--text)}.search-clear:active{transform:scale(.95)}.model-selector-list{flex:1;overflow-y:auto;padding:var(--spacing-xs)}.model-option{width:100%;display:flex;flex-direction:column;gap:var(--spacing-xs);padding:var(--spacing-md);background-color:transparent;border:none;border-radius:var(--radius-sm);color:var(--text);text-align:left;transition:var(--transition);cursor:pointer}.model-option:hover{background-color:var(--surface-light)}.model-option.selected{background-color:var(--primary);color:#fff}.model-option.selected .model-provider,.model-option.selected .price-label,.model-option.selected .price-value,.model-option.selected .price-separator{color:#ffffffe6}.model-option-main{display:flex;flex-direction:column;gap:var(--spacing-xs)}.model-provider{font-size:.75rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.model-name{font-size:.95rem;font-weight:500;color:var(--text)}.model-option-pricing{display:flex;align-items:center;gap:var(--spacing-xs);font-size:.8rem}.price-label{color:var(--text-secondary);font-weight:500}.price-value{color:var(--text);font-weight:600;font-family:monospace}.price-separator{color:var(--text-secondary)}.model-selector-footer{padding:var(--spacing-sm) var(--spacing-md);border-top:1px solid var(--border);font-size:.75rem;color:var(--text-secondary);text-align:center;background-color:var(--background)}.no-results{padding:var(--spacing-xl);text-align:center;color:var(--text-secondary);font-size:.95rem}.model-selector-list::-webkit-scrollbar{width:6px}.model-selector-list::-webkit-scrollbar-track{background:var(--surface)}.model-selector-list::-webkit-scrollbar-thumb{background:var(--border);border-radius:var(--radius-sm)}.model-selector-list::-webkit-scrollbar-thumb:hover{background:var(--surface-light)}@media (max-width: 768px){.model-selector-dropdown{max-height:300px}.model-option{padding:var(--spacing-sm)}}.conversion-panel{display:flex;flex-direction:column;gap:var(--spacing-lg);width:100%;max-width:100%}.conversion-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-xl);flex-wrap:wrap}.mode-controls{display:flex;gap:var(--spacing-md);align-items:center;flex-wrap:wrap}.model-selector-container{flex:0 0 auto;min-width:300px;max-width:400px}.mode-tabs{display:flex;gap:var(--spacing-sm);background-color:var(--surface);padding:var(--spacing-sm);border-radius:var(--radius-lg);width:fit-content}.mode-tab{padding:var(--spacing-md) var(--spacing-xl);background-color:transparent;color:var(--text-secondary);font-weight:600;border-radius:var(--radius-md);transition:var(--transition)}.mode-tab:hover{background-color:var(--surface-light);color:var(--text)}.mode-tab.active{background-color:var(--primary);color:#fff}.key-folding-wrapper{display:flex;align-items:center;gap:var(--spacing-xs)}.key-folding-toggle{display:flex;align-items:center;gap:var(--spacing-xs);padding:var(--spacing-sm) var(--spacing-md);background-color:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-lg);font-size:.875rem;font-weight:500;cursor:pointer;transition:var(--transition);white-space:nowrap}.key-folding-toggle:hover{background-color:var(--surface-light);border-color:var(--primary)}.key-folding-toggle.active{background-color:var(--primary);color:#fff;border-color:var(--primary)}.key-folding-toggle svg{flex-shrink:0}.key-folding-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.key-folding-subtitle{font-size:.65rem;font-weight:400;opacity:.8;font-style:italic}.toggle-indicator{font-size:.75rem;font-weight:600;padding:2px 6px;border-radius:var(--radius-sm);background-color:#0000001a;margin-left:var(--spacing-xs)}.key-folding-toggle.active .toggle-indicator{background-color:#fff3}.key-folding-info{display:flex;align-items:center;justify-content:center;padding:var(--spacing-sm);background-color:var(--surface);color:var(--warning);border:1px solid var(--border);border-radius:var(--radius-lg);cursor:pointer;transition:var(--transition)}.key-folding-info:hover{background-color:var(--warning);color:#fff;border-color:var(--warning);transform:scale(1.1)}.key-folding-info svg{flex-shrink:0}.editors-container{display:grid;grid-template-columns:1fr 1fr;gap:var(--spacing-lg);min-height:420px;width:100%;align-items:start}.editor-wrapper{display:flex;flex-direction:column;min-height:420px;min-width:0;width:100%;align-items:stretch}.editor-header{display:flex;justify-content:space-between;align-items:center;padding:0;margin-bottom:var(--spacing-xs);min-height:32px}.editor-header h3{font-size:.875rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin:0}.load-sample-btn{padding:var(--spacing-xs) var(--spacing-md);background-color:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-md);font-size:.8rem;font-weight:500;cursor:pointer;transition:var(--transition)}.load-sample-btn:hover{background-color:var(--surface-light);border-color:var(--primary);color:var(--primary)}.output-actions{display:flex;gap:var(--spacing-xs);align-items:center}.editor-actions{display:flex;gap:var(--spacing-sm);align-items:center}.secondary-button{padding:var(--spacing-sm) var(--spacing-md);background-color:var(--surface-light);color:var(--text);font-size:.875rem;font-weight:500;border-radius:var(--radius-md);transition:var(--transition)}.secondary-button:hover:not(:disabled){background-color:var(--border)}.icon-button{padding:var(--spacing-sm);background-color:var(--surface-light);color:var(--text-secondary);border-radius:var(--radius-md);display:flex;align-items:center;gap:var(--spacing-xs);position:relative;transition:var(--transition)}.icon-button:hover:not(:disabled){background-color:var(--border);color:var(--text)}.icon-button:disabled{opacity:.4}.copy-success{position:absolute;top:-30px;right:0;background-color:var(--success);color:#fff;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-sm);font-size:.75rem;white-space:nowrap;animation:fadeIn .2s ease-in-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.error-message{display:flex;align-items:center;gap:var(--spacing-sm);padding:var(--spacing-md);background-color:#ef44441a;border:1px solid var(--danger);border-radius:var(--radius-md);color:var(--danger);font-size:.95rem}@media (max-width: 1024px){.editors-container{grid-template-columns:1fr}.conversion-header{flex-direction:column}.mode-controls{width:100%}.model-selector-container{width:100%;max-width:100%}}@media (max-width: 640px){.mode-controls{flex-direction:column;align-items:stretch}.mode-tabs,.key-folding-wrapper{width:100%}.key-folding-toggle{flex:1;justify-content:space-between}.key-folding-info{flex-shrink:0}}@media (max-width: 768px){.mode-tabs{width:100%}.mode-tab{flex:1;padding:var(--spacing-sm) var(--spacing-md);font-size:.875rem}.editor-header{flex-direction:column;align-items:flex-start;gap:var(--spacing-sm)}.editor-actions{width:100%;justify-content:flex-end}}.metrics-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--spacing-lg);margin-top:var(--spacing-lg);box-shadow:0 2px 8px var(--shadow)}.metrics-header{margin-bottom:var(--spacing-lg);text-align:center}.metrics-header h2{font-size:1.75rem;font-weight:700;color:var(--text);margin-bottom:var(--spacing-xs)}.metrics-header p{color:var(--text-secondary);font-size:.95rem}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:var(--spacing-lg);margin-bottom:var(--spacing-lg)}.metric-item{background-color:var(--background);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--spacing-lg);display:flex;gap:var(--spacing-md);transition:var(--transition);overflow:hidden;min-width:0}.metric-item:hover{transform:translateY(-2px);box-shadow:0 4px 8px var(--shadow)}.metric-item.highlight-green{border-color:var(--success);background:var(--surface-light);box-shadow:0 0 16px #10b98166,0 0 0 2px #10b98133;animation:pulse-green 2s ease-in-out infinite}.metric-item.highlight-red{border-color:var(--danger);background:var(--surface-light);box-shadow:0 0 16px #ef444466,0 0 0 2px #ef444433;animation:pulse-red 2s ease-in-out infinite}@keyframes pulse-green{0%,to{box-shadow:0 0 16px #10b98166,0 0 0 2px #10b98133}50%{box-shadow:0 0 24px #10b98199,0 0 0 3px #10b9814d}}@keyframes pulse-red{0%,to{box-shadow:0 0 16px #ef444466,0 0 0 2px #ef444433}50%{box-shadow:0 0 24px #ef444499,0 0 0 3px #ef44444d}}.metric-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background-color:var(--surface-light);border-radius:var(--radius-md);color:var(--primary);flex-shrink:0}.metric-icon-text{font-size:1.5rem;font-weight:700}.metric-content{flex:1;display:flex;flex-direction:column;gap:var(--spacing-xs);min-width:0;overflow:hidden}.metric-content h3{font-size:.875rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-values{display:flex;align-items:center;gap:var(--spacing-sm);font-size:1.1rem;font-weight:700;color:var(--text);flex-wrap:wrap;overflow:hidden}.metric-value{white-space:nowrap}.metric-arrow{color:var(--text-secondary);font-size:1rem;flex-shrink:0}.metric-change{display:flex;align-items:center;gap:var(--spacing-xs);font-size:.875rem;font-weight:600;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-sm);width:fit-content;max-width:100%;overflow:hidden}.metric-change span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-change.positive{color:var(--success);background-color:#10b9811a}.metric-change.negative{color:var(--danger);background-color:#ef44441a}.metrics-footer{padding-top:var(--spacing-lg);border-top:1px solid var(--border);text-align:center}.metrics-footer p{color:var(--text-secondary);font-size:.875rem;line-height:1.5}@media (max-width: 768px){.metrics-card{padding:var(--spacing-lg)}.metrics-grid{grid-template-columns:1fr}.metric-item{padding:var(--spacing-md)}.metric-values{font-size:1rem}.metric-content h3{font-size:.75rem}}@media (max-width: 1200px){.metric-values{font-size:1rem}}.info-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--spacing-xl);margin-top:var(--spacing-xl);box-shadow:0 2px 8px var(--shadow)}.info-header{display:flex;align-items:center;gap:var(--spacing-sm);margin-bottom:var(--spacing-md);color:var(--primary)}.info-header h3{font-size:1.25rem;font-weight:600;margin:0;color:var(--text)}.info-intro{font-size:.95rem;color:var(--text-secondary);margin-bottom:var(--spacing-lg);line-height:1.6}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--spacing-lg)}.info-card{background:var(--background);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--spacing-lg);display:flex;gap:var(--spacing-md);transition:var(--transition)}.info-card:hover{box-shadow:0 4px 12px var(--shadow);transform:translateY(-2px)}.info-card-icon{flex-shrink:0;width:36px;height:36px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center}.info-card-icon.danger{background-color:#ef44441a;color:var(--danger)}.info-card-icon.warning{background-color:#f59e0b1a;color:var(--warning)}.info-card-icon.success{background-color:#10b9811a;color:var(--success)}.info-card-icon.info{background-color:#3b82f61a;color:var(--primary)}.info-card-content{flex:1;min-width:0}.info-card-content h4{font-size:.95rem;font-weight:600;color:var(--text);margin:0 0 var(--spacing-xs) 0;line-height:1.3}.info-label{font-size:.75rem;font-weight:500;color:var(--text-secondary);margin:0 0 var(--spacing-sm) 0;text-transform:uppercase;letter-spacing:.5px}.info-card-content p{font-size:.875rem;color:var(--text-secondary);margin:0;line-height:1.5}@media (max-width: 1200px){.info-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}}@media (max-width: 768px){.info-section{padding:var(--spacing-lg);margin-top:var(--spacing-lg)}.info-grid{grid-template-columns:1fr;gap:var(--spacing-md)}.info-card{padding:var(--spacing-md)}.info-header h3{font-size:1.1rem}}.code-block-wrapper{position:relative;background:var(--editor-bg);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}.code-block-actions{position:absolute;top:var(--spacing-xs);right:var(--spacing-xs);display:flex;gap:var(--spacing-xs);z-index:10;opacity:0;transition:opacity .2s ease}.code-block-wrapper:hover .code-block-actions{opacity:1}.code-action-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:var(--spacing-xs);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-secondary);cursor:pointer;transition:var(--transition);box-shadow:0 2px 4px var(--shadow)}.code-action-btn:hover{background:var(--surface-light);color:var(--primary);border-color:var(--primary);transform:translateY(-1px);box-shadow:0 4px 8px var(--shadow)}.code-action-btn:active{transform:translateY(0)}.code-action-btn .icon-success{color:var(--success)}.code-block-content{margin:0;padding:var(--spacing-lg);overflow-x:auto;font-family:Monaco,Menlo,Courier New,monospace;font-size:.9rem;line-height:1.6;color:var(--text)}.code-block-content code{display:block;font-family:inherit;font-size:inherit}.code-line-numbered{display:flex;gap:var(--spacing-md)}.line-number{display:inline-block;min-width:2em;text-align:right;color:var(--text-secondary);opacity:.6;-webkit-user-select:none;user-select:none}.line-content{flex:1}.code-block-content::-webkit-scrollbar{height:8px}.code-block-content::-webkit-scrollbar-track{background:var(--surface);border-radius:var(--radius-sm)}.code-block-content::-webkit-scrollbar-thumb{background:var(--border);border-radius:var(--radius-sm)}.code-block-content::-webkit-scrollbar-thumb:hover{background:var(--surface-light)}@media (max-width: 768px){.code-block-actions{opacity:1}.code-action-btn{width:28px;height:28px}.code-action-btn svg{width:14px;height:14px}.code-block-content{padding:var(--spacing-md);font-size:.85rem}}.key-folding-example{margin-top:3rem;margin-bottom:var(--spacing-xl);padding:var(--spacing-xl) var(--spacing-lg);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:0 4px 12px var(--shadow);transition:all .3s ease}.key-folding-example h2{text-align:center;font-size:2rem;font-weight:700;color:var(--primary);margin-bottom:var(--spacing-md)}.example-intro{text-align:center;font-size:1.1rem;color:var(--text-secondary);max-width:800px;margin:0 auto var(--spacing-xl) auto;line-height:1.6;display:block}.collision-note{font-size:.95rem;color:var(--text-secondary);margin-bottom:1rem;line-height:1.5;text-align:left}.collision-note code{background:var(--surface-light);padding:.2em .4em;border-radius:3px;font-family:Monaco,Courier New,monospace;font-size:.9em;color:var(--primary);font-weight:600}@keyframes highlightFlash{0%,to{box-shadow:0 4px 12px var(--shadow)}50%{box-shadow:0 0 30px #3b82f699;border-color:var(--primary)}}.key-folding-example.highlight-flash{animation:highlightFlash 2s ease-in-out}.example-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:var(--spacing-xl);align-items:stretch;margin-bottom:var(--spacing-xl)}.example-arrow{font-size:4rem;color:var(--primary);font-weight:700;align-self:center}.example-card{background:var(--background);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--spacing-xl);transition:var(--transition);display:flex;flex-direction:column;gap:var(--spacing-md)}.example-card h3{font-size:1rem;font-weight:600;color:var(--text);margin:0;text-align:center}.example-card .code-block-wrapper{width:100%;min-height:120px}.example-card .code-block-content{min-height:100px;font-size:.85rem}.example-code{margin:0;padding:var(--spacing-md);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);overflow-x:auto;font-family:Monaco,Menlo,Courier New,monospace;font-size:.85rem;line-height:1.6;color:var(--text);white-space:pre}.example-card.highlight{border-color:var(--success);background:linear-gradient(to bottom,var(--background),rgba(16,185,129,.05))}.example-code{font-family:Monaco,Menlo,Courier New,monospace;font-size:.9rem;line-height:1.6;color:var(--text);background:var(--editor-bg);padding:var(--spacing-lg);border-radius:var(--radius-sm);overflow-x:auto;margin:0;border:1px solid var(--border)}.example-code.rainbow{background:linear-gradient(to right,#e31e240d,#0066cc0d,#00aa440d)}.example-stats{display:flex;align-items:center;gap:var(--spacing-sm);justify-content:center;padding:var(--spacing-md);background:var(--surface);border-radius:var(--radius-sm);margin:0}.example-stats.success{background:#10b9811a;border:1px solid var(--success)}.stat-label{font-size:.875rem;font-weight:500;color:var(--text-secondary)}.stat-value{font-size:1.1rem;font-weight:700;color:var(--primary);font-family:monospace}.stat-savings{font-size:.875rem;font-weight:600;color:var(--success);padding:var(--spacing-xs) var(--spacing-sm);background:#10b98133;border-radius:var(--radius-sm)}.example-note{background:var(--surface-light);border-left:4px solid var(--warning);padding:var(--spacing-lg);border-radius:var(--radius-md);font-size:.95rem;line-height:1.6;color:var(--text)}.example-note strong{color:var(--warning)}.example-note code{background:var(--surface);padding:2px 6px;border-radius:var(--radius-sm);font-family:Monaco,Menlo,Courier New,monospace;font-size:.9rem;color:var(--primary)}@media (max-width: 1024px){.example-grid{grid-template-columns:1fr;gap:var(--spacing-xl)}.example-arrow{display:none}.example-card{padding:var(--spacing-lg)}}@media (max-width: 768px){.key-folding-example{padding:var(--spacing-lg) var(--spacing-md);margin-top:var(--spacing-xl)}.key-folding-example h2{font-size:1.5rem}.example-intro{font-size:1rem}.example-grid{gap:var(--spacing-lg)}.example-card{padding:var(--spacing-lg)}.example-code{font-size:.85rem;padding:var(--spacing-md)}}.toon-examples{margin-top:3rem;margin-bottom:var(--spacing-xl);padding:var(--spacing-xl) var(--spacing-lg);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:0 4px 12px var(--shadow)}.examples-header{text-align:center;margin-bottom:var(--spacing-xl)}.examples-header h2{font-size:2rem;font-weight:700;color:var(--primary);margin-bottom:var(--spacing-md)}.examples-intro{font-size:1.1rem;color:var(--text-secondary);max-width:800px;margin:0 auto var(--spacing-md) auto;line-height:1.6}.examples-intro code{background:var(--surface-light);padding:.2em .4em;border-radius:3px;font-family:Monaco,Courier New,monospace;font-size:.9em;color:var(--primary);font-weight:600}.examples-hint{display:flex;align-items:center;gap:var(--spacing-md);max-width:750px;margin:0 auto;padding:var(--spacing-md);background:linear-gradient(135deg,#fbbf241a,#f59e0b0d);border:2px solid rgba(251,191,36,.3);border-radius:var(--radius-lg)}.hint-badge{font-size:.75rem;font-weight:700;letter-spacing:.05em;padding:.5rem 1rem;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;border-radius:var(--radius-full);text-transform:uppercase;flex-shrink:0;box-shadow:0 2px 8px #f59e0b4d}.hint-text{font-size:.95rem;color:var(--text);line-height:1.6}.example-category{margin-bottom:var(--spacing-xl);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:var(--background);transition:all .3s ease}.example-category:hover{border-color:var(--primary);box-shadow:0 2px 8px #3b82f633}.category-header{width:100%;padding:var(--spacing-lg);background:var(--surface);border:none;cursor:pointer;text-align:left;transition:all .2s ease;display:flex;flex-direction:column;gap:var(--spacing-sm)}.category-header:hover{background:var(--surface-light)}.category-header.expanded{background:var(--surface-light);border-bottom:1px solid var(--border)}.category-title-group{display:flex;align-items:center;gap:var(--spacing-sm)}.category-title-group svg{color:var(--primary);flex-shrink:0}.category-header h3{font-size:1.5rem;font-weight:700;color:var(--text);margin:0;flex:1}.category-badge{font-size:.75rem;font-weight:700;letter-spacing:.05em;padding:.375rem .875rem;border-radius:var(--radius-full);text-transform:uppercase;box-shadow:0 2px 4px #0000001a;flex-shrink:0}.badge-red{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.badge-blue{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff}.badge-green{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.badge-purple{background:linear-gradient(135deg,#a855f7,#9333ea);color:#fff}.category-count{font-size:.875rem;color:var(--text-secondary);background:var(--background);padding:.25rem .75rem;border-radius:var(--radius-full);font-weight:500;border:1px solid var(--border)}.category-description{font-size:1rem;color:var(--text-secondary);margin:0;padding-left:calc(20px + var(--spacing-sm));line-height:1.5}.category-content{padding:var(--spacing-lg);background:var(--background)}.example-item{margin-bottom:var(--spacing-xl);padding:var(--spacing-lg);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);transition:all .3s ease}.example-item:last-child{margin-bottom:0}.example-item:hover{border-color:var(--primary);box-shadow:0 4px 12px #3b82f626}.example-header{margin-bottom:var(--spacing-md)}.example-title-group{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-sm);gap:var(--spacing-md)}.example-header h4{font-size:1.25rem;font-weight:600;color:var(--text);margin:0}.copy-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s ease;white-space:nowrap}.copy-btn:hover{background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 2px 8px #3b82f64d}.copied-icon{color:var(--success)}.example-description{font-size:.95rem;color:var(--text-secondary);margin:0;line-height:1.5}.example-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:var(--spacing-lg);align-items:stretch;margin-bottom:var(--spacing-md)}.example-panel{background:var(--background);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;display:flex;flex-direction:column}.example-panel.highlight{border-color:var(--success);background:#10b9810d}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-sm) var(--spacing-md);background:var(--surface);border-bottom:1px solid var(--border)}.panel-label{font-size:.75rem;font-weight:700;letter-spacing:.05em;color:var(--text-secondary);text-transform:uppercase}.panel-badge{font-size:.75rem;padding:.25rem .5rem;border-radius:var(--radius-sm);font-weight:600;background:var(--background);color:var(--text-secondary)}.panel-badge.success{background:var(--success);color:#fff}.example-code{flex:1;margin:0;border-radius:0}.example-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:var(--spacing-md) 0}.arrow-icon{font-size:2rem;font-weight:700;color:var(--primary);animation:pulse-arrow 2s ease-in-out infinite}.arrow-label{font-size:.75rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap}@keyframes pulse-arrow{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.1)}}.example-highlight{display:flex;align-items:flex-start;gap:var(--spacing-md);padding:var(--spacing-md);background:linear-gradient(135deg,#3b82f61a,#2563eb0d);border:2px solid rgba(59,130,246,.3);border-radius:var(--radius-lg)}.highlight-badge{font-size:.7rem;font-weight:700;letter-spacing:.05em;padding:.4rem .8rem;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border-radius:var(--radius-full);text-transform:uppercase;flex-shrink:0;box-shadow:0 2px 6px #3b82f64d;white-space:nowrap}.highlight-text{font-size:.95rem;color:var(--text);line-height:1.6;font-weight:500}.examples-footer{margin-top:var(--spacing-xl);padding:var(--spacing-lg);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);text-align:center}.examples-footer p{font-size:.95rem;color:var(--text-secondary);margin:0 0 var(--spacing-sm) 0;line-height:1.6}.examples-footer p:last-child{margin-bottom:0}.examples-footer code{background:var(--background);padding:.2em .4em;border-radius:3px;font-family:Monaco,Courier New,monospace;font-size:.9em;color:var(--primary);font-weight:600}@media (max-width: 1024px){.example-grid{grid-template-columns:1fr;gap:var(--spacing-md)}.example-arrow{flex-direction:row;padding:var(--spacing-sm) 0}.arrow-icon{transform:rotate(90deg)}.arrow-label{writing-mode:horizontal-tb}.example-title-group{flex-direction:column;align-items:flex-start}.copy-btn{width:100%;justify-content:center}}@media (max-width: 768px){.toon-examples{padding:var(--spacing-md)}.examples-header h2{font-size:1.5rem}.examples-intro{font-size:1rem}.examples-hint{flex-direction:column;align-items:flex-start}.hint-badge{align-self:flex-start}.category-header{padding:var(--spacing-md)}.category-header h3{font-size:1.25rem}.category-content,.example-item{padding:var(--spacing-md)}.example-header h4{font-size:1.1rem}.example-highlight{flex-direction:column;align-items:flex-start}.highlight-badge{align-self:flex-start}}@media (max-width: 480px){.category-title-group{flex-wrap:wrap}.category-badge{font-size:.65rem;padding:.3rem .6rem;order:2}.category-count{font-size:.75rem;padding:.2rem .5rem;order:3}.category-header h3{order:1;width:100%;margin-bottom:.5rem}.arrow-icon{font-size:1.5rem}}.footer{background-color:var(--surface);border-top:1px solid var(--border);margin-top:var(--spacing-xl);padding:var(--spacing-xl) 0}.footer-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:var(--spacing-xl);margin-bottom:var(--spacing-xl)}.footer-section h3{font-size:1.25rem;font-weight:700;color:var(--text);margin-bottom:var(--spacing-sm)}.footer-section h4{font-size:1rem;font-weight:600;color:var(--text);margin-bottom:var(--spacing-sm)}.footer-section p{color:var(--text-secondary);font-size:.875rem;line-height:1.6}.footer-links{list-style:none;display:flex;flex-direction:column;gap:var(--spacing-sm)}.footer-links li a{display:flex;align-items:center;gap:var(--spacing-sm);color:var(--text-secondary);font-size:.875rem;transition:var(--transition)}.footer-links li a:hover{color:var(--primary-light)}.footer-links code{display:block;background-color:var(--background);padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-sm);font-size:.75rem;color:var(--primary-light);margin-bottom:var(--spacing-xs)}.api-note{margin-top:var(--spacing-sm);font-size:.75rem;color:var(--text-secondary);font-style:italic}.footer-bottom{padding-top:var(--spacing-lg);border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:var(--spacing-md)}.footer-bottom p{color:var(--text-secondary);font-size:.875rem}@media (max-width: 768px){.footer-content{grid-template-columns:1fr}.footer-bottom{flex-direction:column;text-align:center}}.theme-toggle{position:fixed;top:var(--spacing-lg);right:var(--spacing-lg);z-index:1000;background-color:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px var(--shadow);transition:var(--transition);cursor:pointer}.theme-toggle:hover{background-color:var(--surface-light);color:var(--primary);transform:rotate(15deg)}.theme-toggle svg{transition:var(--transition)}@media (max-width: 1024px){.theme-toggle{top:var(--spacing-md);right:var(--spacing-md);width:40px;height:40px}.theme-toggle svg{width:16px;height:16px}}@media (max-width: 768px){.theme-toggle{width:36px;height:36px}}.app{min-height:100vh;display:flex;flex-direction:column;width:100%}main{flex:1;padding-top:var(--spacing-md);padding-bottom:var(--spacing-lg);width:100%}@media (max-width: 768px){main{padding-top:var(--spacing-md);padding-bottom:var(--spacing-md)}}@media (min-width: 1920px){.container{max-width:1800px}}:root{--primary: #3b82f6;--primary-dark: #2563eb;--primary-light: #60a5fa;--success: #10b981;--danger: #ef4444;--warning: #f59e0b;--background: #ffffff;--surface: #f8fafc;--surface-light: #f1f5f9;--text: #0f172a;--text-secondary: #475569;--border: #e2e8f0;--shadow: rgba(0, 0, 0, .1);--editor-bg: #ffffff;--spacing-xs: .25rem;--spacing-sm: .5rem;--spacing-md: 1rem;--spacing-lg: 1.5rem;--spacing-xl: 2rem;--radius-sm: .375rem;--radius-md: .5rem;--radius-lg: .75rem;--transition: all .2s ease-in-out}[data-theme=dark]{--background: #0f172a;--surface: #1e293b;--surface-light: #334155;--text: #f1f5f9;--text-secondary: #cbd5e1;--border: #475569;--shadow: rgba(0, 0, 0, .3);--editor-bg: #1e1e1e}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-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;background-color:var(--background);color:var(--text);line-height:1.6}code{font-family:Fira Code,Courier New,monospace}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--surface)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:var(--radius-sm)}::-webkit-scrollbar-thumb:hover{background:var(--surface-light)}.container{max-width:1600px;width:100%;margin:0 auto;padding:var(--spacing-xl) var(--spacing-lg)}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-sm{gap:var(--spacing-sm)}.gap-md{gap:var(--spacing-md)}.gap-lg{gap:var(--spacing-lg)}button{font-family:inherit;cursor:pointer;border:none;outline:none;transition:var(--transition)}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--primary-light);text-decoration:none;transition:var(--transition)}a:hover{color:var(--primary);text-decoration:underline}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite}*:focus-visible{outline:2px solid var(--primary);outline-offset:2px}@media (max-width: 768px){.container{padding:var(--spacing-md)}}
