.canvas-container{width:100%;height:500px;background:#fff;border-radius:16px;box-shadow:0 10px 40px #00000026;overflow:hidden;position:relative;transition:all .3s ease}.canvas-container:hover{box-shadow:0 15px 50px #0003}.drawing-canvas{width:100%;height:100%;cursor:crosshair;display:block;touch-action:none}@media (max-width: 768px){.canvas-container{height:400px}}.toolbar{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 10px 40px #00000026;display:flex;flex-direction:column;gap:1.5rem}.toolbar-section{display:flex;flex-direction:column;gap:.75rem}.toolbar-label{font-weight:600;font-size:.9rem;color:#333;text-transform:uppercase;letter-spacing:.5px}.tool-buttons{display:flex;gap:.5rem}.tool-button{flex:1;padding:.75rem 1rem;border:2px solid #e0e0e0;background:#fff;border-radius:8px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease}.tool-button:hover{border-color:#667eea;background:#f8f9ff}.tool-button.active{border-color:#667eea;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.color-picker{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.color-button{width:36px;height:36px;border:3px solid transparent;border-radius:8px;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #0000001a}.color-button:hover{transform:scale(1.1);box-shadow:0 4px 12px #0003}.color-button.active{border-color:#667eea;transform:scale(1.15);box-shadow:0 4px 12px #667eea66}.color-input{width:36px;height:36px;border:2px solid #e0e0e0;border-radius:8px;cursor:pointer;transition:all .2s ease}.color-input:hover{border-color:#667eea}.brush-size-buttons{display:flex;gap:.5rem}.size-button{flex:1;padding:.75rem;border:2px solid #e0e0e0;background:#fff;border-radius:8px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.size-button:hover,.size-button.active{border-color:#667eea;background:#f8f9ff}.size-indicator{background:#333;border-radius:50%;transition:all .2s ease}.size-button.active .size-indicator{background:#667eea}.brush-slider{width:100%;height:6px;border-radius:3px;background:linear-gradient(to right,#e0e0e0,#667eea);outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.brush-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:#667eea;cursor:pointer;box-shadow:0 2px 8px #667eea66;transition:all .2s ease}.brush-slider::-webkit-slider-thumb:hover{transform:scale(1.2);box-shadow:0 4px 12px #667eea99}.brush-slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#667eea;cursor:pointer;border:none;box-shadow:0 2px 8px #667eea66;transition:all .2s ease}.brush-slider::-moz-range-thumb:hover{transform:scale(1.2);box-shadow:0 4px 12px #667eea99}.action-buttons-toolbar{display:flex;gap:.5rem}.action-button{flex:1;padding:.75rem 1rem;border:none;border-radius:8px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease;color:#fff}.action-button.clear{background:linear-gradient(135deg,#f093fb,#f5576c)}.action-button.clear:hover{transform:translateY(-2px);box-shadow:0 4px 12px #f5576c66}.action-button.download{background:linear-gradient(135deg,#4facfe,#00f2fe)}.action-button.download:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4facfe66}@media (max-width: 768px){.toolbar{padding:1rem;gap:1rem}.color-button,.color-input{width:32px;height:32px}}.result-panel{background:#f5f7fa;border-radius:16px;padding:0;box-shadow:0 10px 40px #00000026;min-height:500px;display:flex;flex-direction:column;overflow-y:auto;max-height:calc(100vh - 200px)}.result-wrapper{display:flex;flex-direction:column;gap:0}.transcribed-section{background:#fff;border-radius:16px 16px 0 0;padding:2rem;border-bottom:2px solid #e5e7eb}.transcribed-text{background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-left:4px solid #3b82f6;padding:1.5rem;border-radius:8px;margin-top:1rem}.transcribed-text p{margin:0;color:#1e3a8a;font-size:1rem;line-height:1.6;font-style:italic}.result-loading,.result-error,.result-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;flex:1}.loading-spinner{width:60px;height:60px;border:4px solid rgba(102,126,234,.2);border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1.5rem}.result-loading h3,.result-error h3,.result-empty h3{font-size:1.5rem;margin-bottom:.5rem;color:#333}.result-loading p,.result-error p,.result-empty p{color:#666;font-size:1rem;line-height:1.6}.error-icon,.empty-icon{font-size:4rem;margin-bottom:1rem}.error-hint{margin-top:1.5rem;padding:1rem;background:#fff3cd;border-left:4px solid #ffc107;border-radius:8px;text-align:left}.error-hint strong{color:#856404}.tips{margin-top:2rem;text-align:left;background:#f8f9ff;padding:1.5rem;border-radius:12px;border:2px solid #e8ebff}.tips h4{color:#667eea;margin-bottom:1rem;font-size:1.1rem}.tips ul{list-style:none;padding:0}.tips li{padding:.5rem 0 .5rem 1.5rem;position:relative;color:#555}.tips li:before{content:"✓";position:absolute;left:0;color:#667eea;font-weight:700}.result-content{display:flex;flex-direction:column;gap:1.5rem}.result-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:1rem;border-bottom:2px solid #f0f0f0}.image-section{background:#fff;padding:2rem;border-bottom:1px solid #e0e0e0;flex-shrink:0}.image-container{display:flex;justify-content:center;align-items:center;min-height:300px;background:linear-gradient(135deg,#f8f9ff,#f0f4ff);border-radius:12px;padding:1.5rem;border:2px solid #e8ebff}.generated-image{width:100%;height:auto;max-height:450px;object-fit:contain;border-radius:8px;box-shadow:0 4px 12px #0000001a;transition:transform .3s ease}.generated-image:hover{transform:scale(1.02);box-shadow:0 6px 20px #00000026}.section-header{margin-bottom:1.5rem}.section-header h3{font-size:1.4rem;color:#333;margin:0;font-weight:600}.materials-section{background:#fff;padding:2rem;flex-shrink:0}.total-cost-card{display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#10b981,#059669);border:3px solid #047857;border-radius:16px;padding:2.5rem 2rem;margin-bottom:2rem;box-shadow:0 8px 24px #10b9814d;transition:transform .3s ease,box-shadow .3s ease}.total-cost-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px #10b98166}.cost-label{font-size:1.2rem;font-weight:600;color:#fff;text-transform:uppercase;letter-spacing:1px;margin-bottom:1rem;opacity:.95}.cost-value{font-size:3.5rem;font-weight:800;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.2);letter-spacing:-1px}.cost-breakdown{display:flex;gap:2rem;margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.3)}.breakdown-item{font-size:1rem;font-weight:600;color:#ffffffe6;letter-spacing:.5px}.area-card{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#fff8f0,#fff5e6);border:2px solid #ffe8cc;border-radius:12px;padding:1.5rem 2rem;margin-bottom:2rem}.area-label{font-size:1rem;font-weight:600;color:#666;text-transform:uppercase;letter-spacing:.5px}.area-value{font-size:1.8rem;font-weight:700;color:#ff8c00}.table-wrapper{overflow-x:auto;border-radius:12px;border:1px solid #e0e0e0;margin-bottom:2rem}.materials-table{width:100%;border-collapse:collapse;background:#fff}.materials-table thead{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;position:sticky;top:0;z-index:5}.materials-table th{padding:1rem 1.5rem;text-align:left;font-weight:600;font-size:.95rem;letter-spacing:.5px;text-transform:uppercase}.materials-table tbody tr{border-bottom:1px solid #f0f0f0;transition:background-color .2s ease}.materials-table tbody tr:hover{background-color:#f8f9ff}.materials-table tbody tr.even{background-color:#fafbff}.materials-table tbody tr.odd{background-color:#fff}.materials-table td{padding:1rem 1.5rem;font-size:.95rem;color:#333}.category-cell{font-weight:600;color:#667eea;text-transform:capitalize}.material-cell{color:#555;text-transform:capitalize}.quantity-cell{font-weight:600;color:#ff8c00;text-align:right}.cost-cell{font-weight:700;color:#10b981;text-align:right;font-size:1rem}.cost-section{background:#fff;padding:1.2rem;border-radius:8px;margin-bottom:1rem}.notes-section{background:linear-gradient(135deg,#f8f9ff,#f0f4ff);border:2px solid #e8ebff;border-radius:12px;padding:1.5rem}.notes-section h4{color:#667eea;margin:0 0 1rem;font-size:1.1rem;font-weight:600}.notes-section p{color:#555;line-height:1.6;margin:0}.cost-breakdown{display:grid;gap:.6rem}.breakdown-item{display:flex;justify-content:space-between;padding:.6rem 0;border-bottom:1px solid #f0f0f0}.breakdown-item:last-child{border-bottom:none}.breakdown-item span:first-child{font-weight:500;color:#555;text-transform:capitalize}.breakdown-item span:last-child{color:#ff8c00;font-weight:600}.cost-text pre{background:#fff;padding:1rem;border-radius:6px;overflow-x:auto;font-size:.9rem;line-height:1.6}.result-header h3{font-size:1.5rem;color:#333;margin:0}.timestamp{font-size:.85rem;color:#999}.result-body{display:none}.design-section{padding:1rem;background:#f8f9ff;border-radius:12px;border-left:4px solid #667eea}.design-section h4{color:#667eea;margin-bottom:.75rem;font-size:1.1rem;display:flex;align-items:center;gap:.5rem}.design-section p{color:#555;line-height:1.7;margin:0}.design-section ul{margin:0;padding-left:1.5rem;color:#555}.design-section li{margin:.5rem 0;line-height:1.6}.design-text{background:#f8f9ff;padding:1.5rem;border-radius:12px;border:2px solid #e8ebff}.design-text pre{white-space:pre-wrap;word-wrap:break-word;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-size:.95rem;line-height:1.7;color:#555;margin:0}.result-footer{margin-top:auto;padding-top:1.5rem;border-top:2px solid #f0f0f0;display:flex;justify-content:flex-end}.model-badge{display:inline-block;padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:20px;font-size:.85rem;font-weight:500}@media (max-width: 768px){.result-panel{padding:1.5rem;min-height:400px}.result-header{flex-direction:column;align-items:flex-start;gap:.5rem}.result-header h3{font-size:1.25rem}}.voice-input-container{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:2rem}.voice-input-card{background:#fff;border-radius:16px;box-shadow:0 4px 20px #0000001a;padding:2rem;max-width:600px;width:100%}.voice-header{text-align:center;margin-bottom:2rem}.voice-header h3{font-size:1.8rem;margin:0 0 .5rem;color:#333}.voice-header p{color:#666;margin:0;font-size:1rem}.recording-area{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;background:linear-gradient(135deg,#f5f7fa,#e8ecf1);border-radius:12px;margin-bottom:1.5rem}.record-button{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:2rem 3rem;font-size:1.1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:50px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea66}.record-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea80}.record-button:disabled{opacity:.6;cursor:not-allowed}.mic-icon{font-size:2.5rem}.recording-active{display:flex;flex-direction:column;align-items:center;gap:1.5rem;width:100%}.recording-indicator{display:flex;align-items:center;gap:1rem}.pulse{width:16px;height:16px;background:#ef4444;border-radius:50%;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.2)}}.recording-text{font-size:1.2rem;font-weight:600;color:#ef4444}.recording-timer{font-size:2rem;font-weight:700;color:#333;font-family:Courier New,monospace}.stop-button{padding:1rem 2rem;font-size:1.1rem;font-weight:600;color:#fff;background:#ef4444;border:none;border-radius:50px;cursor:pointer;transition:all .3s ease}.stop-button:hover{background:#dc2626;transform:translateY(-2px)}.audio-preview{display:flex;flex-direction:column;align-items:center;gap:1.5rem;width:100%}.audio-info{display:flex;align-items:center;gap:.5rem;font-size:1.1rem;color:#10b981;font-weight:600}.check-icon{font-size:1.5rem}audio{width:100%;border-radius:50px}.audio-actions{display:flex;gap:1.25rem;justify-content:center;align-items:center;margin-top:1.5rem}.clear-button{padding:.75rem 1.75rem;font-size:1rem;font-weight:600;color:#666;background:#fff;border:2px solid #e0e0e0;border-radius:12px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:.5rem}.clear-button:hover:not(:disabled){border-color:#999;color:#333;background:#f9f9f9;transform:translateY(-2px);box-shadow:0 2px 8px #0000001a}.clear-button:disabled{opacity:.5;cursor:not-allowed}.generate-voice-button{padding:1rem 2.5rem;font-size:1.1rem;font-weight:700;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:12px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:.75rem;box-shadow:0 4px 20px #667eea66;min-width:200px;text-transform:none;letter-spacing:.3px}.generate-voice-button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 6px 25px #667eea99;background:linear-gradient(135deg,#7c8ef5,#8a5bb8)}.generate-voice-button:active:not(:disabled){transform:translateY(-1px);box-shadow:0 3px 15px #667eea80}.generate-voice-button:disabled{opacity:.7;cursor:not-allowed;transform:none}.voice-tips{background:#f0f9ff;border-left:4px solid #3b82f6;padding:1rem 1.5rem;border-radius:8px}.voice-tips p{margin:0 0 .5rem;font-weight:600;color:#1e40af}.voice-tips ul{margin:0;padding-left:1.5rem;color:#1e3a8a}.voice-tips li{margin:.25rem 0;font-size:.9rem}.app{min-height:100vh;padding:2rem}.app-header{text-align:center;margin-bottom:2rem;color:#fff}.app-header h1{font-size:2.5rem;font-weight:700;margin-bottom:.5rem;text-shadow:2px 2px 4px rgba(0,0,0,.2)}.app-header p{font-size:1.1rem;opacity:.95;font-weight:300}.app-container{display:grid;grid-template-columns:1fr 1fr;gap:2rem;max-width:1600px;margin:0 auto}.canvas-section{display:flex;flex-direction:column;gap:1rem}.action-buttons{margin-top:1.5rem;display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.input-mode-toggle{display:inline-flex;gap:0;justify-content:center;margin-top:1.5rem;background:#ffffff26;border-radius:50px;padding:.25rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 4px 20px #0000001a}.mode-button{padding:.75rem 2.5rem;font-size:1rem;font-weight:600;border:none;background:transparent;color:#fff;border-radius:50px;cursor:pointer;transition:all .3s ease;position:relative;z-index:1}.mode-button:hover:not(.active){background:#ffffff1a}.mode-button.active{background:#fff;color:#667eea;box-shadow:0 2px 10px #00000026;font-weight:700}.generate-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1.25rem 3rem;font-size:1.2rem;font-weight:700;border:none;border-radius:16px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 8px 30px #667eea80;display:flex;align-items:center;justify-content:center;gap:.75rem;min-width:240px;letter-spacing:.5px;text-transform:none;position:relative;overflow:hidden}.generate-button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.generate-button:hover:before{left:100%}.generate-button:hover:not(:disabled){transform:translateY(-4px);box-shadow:0 12px 40px #667eeab3;background:linear-gradient(135deg,#7c8ef5,#8a5bb8)}.generate-button:active:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 25px #667eea99}.generate-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.voice-estimate-section{max-width:1600px;margin:2rem auto 0;display:flex;justify-content:center}.estimate-button-voice{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff;padding:1rem 2.5rem;font-size:1.1rem;font-weight:600;border-radius:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #f093fb66;display:flex;align-items:center;gap:.5rem;border:none}.estimate-button-voice:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #f093fb99}.estimate-button-voice:disabled{opacity:.7;cursor:not-allowed}.estimate-button{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff;padding:1rem 2.5rem;font-size:1.1rem;font-weight:600;border-radius:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #f093fb66;display:flex;align-items:center;gap:.5rem}.estimate-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #f093fb99}.estimate-button:active:not(:disabled){transform:translateY(0)}.estimate-button:disabled{opacity:.7;cursor:not-allowed}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 1200px){.app-container{grid-template-columns:1fr}}@media (max-width: 768px){.app{padding:1rem}.app-header h1{font-size:1.8rem}.app-header p{font-size:.95rem}.generate-button{padding:1rem 2rem;font-size:1rem;min-width:180px}}*{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:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;overflow-x:hidden}#root{width:100%;min-height:100vh}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:#ffffff1a}::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#ffffff80}
