.image-rendering-generator{padding:2rem;max-width:var(--tool-container-max-width, 1600px);margin:0 auto}.generator-header{text-align:center;margin-bottom:2rem}.generator-header h1{font-size:2rem;margin-bottom:.5rem;color:var(--gray-800)}.generator-header p{color:var(--gray-500);font-size:1rem}.generator-layout{display:grid;grid-template-columns:var(--tool-controls-width, 420px) 1fr;gap:var(--tool-content-gap, 2rem)}.control-panel{background-color:#1f2937f2!important;border:2px solid var(--gray-400)!important;border-radius:6px}[data-theme=dark] .control-section{background-color:#1f2937e6!important;border-color:var(--gray-400)!important;border-width:2px}[data-theme=dark] .control-group input,[data-theme=dark] .control-group select,[data-theme=dark] .control-group textarea{background-color:#0f172acc!important;border:2px solid var(--gray-500)!important;color:var(--text-primary)}[data-theme=dark] .control-group label{display:block;color:var(--gray-900);font-size:1rem;margin-bottom:.5rem;font-weight:600;line-height:1.5;letter-spacing:.3px}@media (max-width: 1023px){.generator-layout{grid-template-columns:1fr}}.controls-panel{background:var(--gray-50);border-radius:12px;padding:1.5rem;height:fit-content}.control-section{margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid var(--gray-600)}.control-section:last-of-type{border-bottom:none;margin-bottom:1rem}.control-section h3{font-size:1.15rem;font-weight:700;color:var(--gray-900);margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:2px solid var(--primary);letter-spacing:.03em}.preset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.preset-btn{padding:.5rem;font-size:.75rem;border:1px solid var(--gray-200);border-radius:6px;background:var(--white);color:var(--gray-600);cursor:pointer;transition:all .15s ease}.preset-btn:hover{border-color:#a855f7;color:#a855f7}.preset-btn.active{background:#a855f7;border-color:#a855f7;color:var(--white)}.preset-description{font-size:.75rem;color:var(--gray-500);margin-top:.75rem;font-style:italic}.rendering-options{display:flex;flex-direction:column;gap:.5rem}.rendering-option{display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--gray-200);border-radius:8px;background:var(--white);cursor:pointer;transition:all .15s ease}.rendering-option:hover{border-color:#a855f7}.rendering-option.active{border-color:#a855f7;background:#faf5ff}.rendering-option input{display:none}.option-label{font-weight:600;color:var(--gray-900);font-size:1rem;font-family:monospace}.option-description{font-size:.75rem;color:var(--gray-500);margin-top:.25rem}.control-section select{width:100%;padding:.5rem;border:1px solid var(--gray-200);border-radius:6px;background:var(--white);font-size:.875rem;color:var(--gray-800)}.control-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.custom-selector-input{width:100%;padding:.5rem;border:1px solid var(--gray-200);border-radius:6px;margin-top:.5rem;font-family:monospace;font-size:.875rem}.toggle-option{display:flex;align-items:center;gap:.5rem;padding:.5rem 0;cursor:pointer;font-size:.875rem;color:var(--gray-600)}.toggle-option input[type=checkbox]{width:18px;height:18px;accent-color:#a855f7}.sub-options{margin-top:.75rem;margin-left:1.5rem;padding:.75rem;background:var(--white);border-radius:6px;border:1px solid var(--gray-200)}.control-row{margin-bottom:.75rem}.control-row:last-child{margin-bottom:0}.control-row label{display:block;font-size:.75rem;color:var(--gray-500);margin-bottom:.25rem}.control-row input[type=range]{width:100%;accent-color:#a855f7}.aspect-ratio-custom{display:flex;align-items:center;gap:.5rem;margin-top:.5rem}.aspect-ratio-custom input{width:60px;padding:.5rem;border:1px solid var(--gray-200);border-radius:6px;text-align:center;font-size:.875rem}.aspect-ratio-custom span{color:var(--gray-500);font-weight:600}.action-buttons{display:flex;gap:.5rem}.save-btn,.reset-btn{flex:1;padding:.75rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s ease}.save-btn{background:#a855f7;border:none;color:var(--white)}.save-btn:hover{background:#9333ea}.reset-btn{background:var(--white);border:1px solid var(--gray-200);color:var(--gray-500)}.reset-btn:hover{border-color:#a855f7;color:#a855f7}.preview-panel{display:flex;flex-direction:column;gap:1.5rem}.preview-section h3,.comparison-section h3,.use-case-section h3,.output-section h3{font-size:1rem;color:var(--gray-800);margin-bottom:1rem}.preview-container{background:#f9fafb;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #d1d5db;position:relative;overflow:hidden}.preview-image{width:80%;height:80%;display:flex;align-items:center;justify-content:center}.pixel-art-demo{display:flex;flex-direction:column;transform:scale(10);image-rendering:inherit}.pixel-art-demo.small{transform:scale(6)}.pixel-row{display:flex}.pixel{width:1px;height:1px}.pixel.filled{background:#a855f7}.pixel.empty{background:var(--gray-50)}.preview-label{position:absolute;bottom:.5rem;right:.5rem;font-family:monospace;font-size:.75rem;background:#000000b3;color:var(--white);padding:.25rem .5rem;border:2px solid #d1d5db;border-radius:4px;box-shadow:0 1px 3px #0000001a}.comparison-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem}@media (max-width: 768px){.comparison-grid{grid-template-columns:repeat(3,1fr)}}.comparison-item{text-align:center}.comparison-preview{width:100%;aspect-ratio:1;background:#f9fafb;border-radius:8px;display:flex;align-items:center;justify-content:center;border:2px solid #d1d5db;margin-bottom:.5rem;overflow:hidden}.comparison-label{font-family:monospace;font-size:1rem;color:var(--gray-900)}.use-case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}@media (max-width: 768px){.use-case-grid{grid-template-columns:1fr}}.use-case-card{background:var(--gray-50);border-radius:8px;padding:1rem;border:1px solid var(--gray-200)}.use-case-icon{font-size:2rem;margin-bottom:.5rem}.use-case-card h4{font-family:monospace;font-size:.875rem;color:#a855f7;margin-bottom:.5rem}.use-case-card ul{list-style:none;padding:0;margin:0}.use-case-card li{font-size:.75rem;color:var(--gray-500);padding:.25rem 0}.use-case-card li:before{content:"•";color:#a855f7;margin-right:.5rem}.output-tabs{display:flex;gap:.5rem;margin-bottom:1rem}.tab-btn{padding:.5rem 1rem;border:1px solid var(--gray-200);border-radius:6px;background:var(--white);color:var(--gray-500);cursor:pointer;font-size:.875rem;transition:all .15s ease}.tab-btn:hover{border-color:#a855f7;color:#a855f7}.tab-btn.active{background:#a855f7;border-color:#a855f7;color:var(--white)}.tab-content{background:var(--gray-50);border-radius:8px;padding:1rem}.code-block{background:var(--gray-800);border-radius:8px;overflow:hidden;margin-bottom:1rem}.code-block:last-child{margin-bottom:0}.code-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem;background:var(--gray-700);border-bottom:1px solid var(--gray-600)}.code-header span{font-size:.75rem;color:var(--gray-400)}.copy-btn{padding:.25rem .75rem;font-size:.75rem;background:var(--gray-600);border:none;border-radius:4px;color:var(--white);cursor:pointer;transition:all .15s ease}.copy-btn:hover{background:var(--gray-500)}.code-block pre{padding:1rem;margin:0;overflow-x:auto}.code-block code{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.8125rem;color:var(--gray-200);line-height:1.6}.examples-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}@media (max-width: 768px){.examples-grid{grid-template-columns:1fr}}.example-block{background:var(--gray-800);border-radius:8px;overflow:hidden}.reference-content{display:flex;flex-direction:column;gap:1.5rem}.reference-section h4{font-size:.875rem;color:var(--gray-800);margin-bottom:.75rem;font-weight:600}.reference-table{width:100%;border-collapse:collapse;font-size:.8125rem}.reference-table th,.reference-table td{padding:.5rem;text-align:left;border-bottom:1px solid var(--gray-200)}.reference-table th{background:var(--gray-100);color:var(--gray-600);font-weight:600}.reference-table td{color:var(--gray-800)}.reference-table code{background:var(--gray-200);padding:.125rem .375rem;border-radius:3px;font-size:.75rem;color:#a855f7}.reference-list{list-style:none;padding:0;margin:0}.reference-list li{padding:.5rem 0;font-size:.8125rem;color:var(--gray-600);border-bottom:1px solid var(--gray-100)}.reference-list li:last-child{border-bottom:none}.reference-list code{background:var(--gray-200);padding:.125rem .375rem;border-radius:3px;font-size:.75rem;color:#a855f7}
