*{box-sizing:border-box;padding:0}*,body{margin:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f3f4f6;color:#1f2937;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;height:100vh;overflow-x:hidden}#root{height:100%}body{overscroll-behavior-y:contain}.app{display:flex;flex-direction:column;height:100vh;overflow:hidden}.app-header{background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 2px 8px #0000001a;color:#fff;padding:1rem}.header-content{align-items:center;display:flex;justify-content:space-between;margin:0 auto;max-width:1200px}.app-header h1{font-size:1.5rem;font-weight:600}.user-info{align-items:center;display:flex;gap:1rem}.btn-logout{background:#fff3;border:1px solid #ffffff4d;border-radius:.5rem;color:#fff;cursor:pointer;font-size:.875rem;padding:.5rem 1rem;transition:background .2s}.btn-logout:hover{background:#ffffff4d}.tab-navigation{-webkit-overflow-scrolling:touch;background:#fff;border-bottom:2px solid #e5e7eb;display:flex;gap:.5rem;margin:0 auto;max-width:1200px;overflow-x:auto;padding:1rem}.tab-btn{background:#0000;border:none;border-bottom:3px solid #0000;border-radius:.5rem;color:#6b7280;cursor:pointer;flex-shrink:0;font-size:.875rem;font-weight:500;padding:.75rem 1rem;transition:all .2s;white-space:nowrap}.tab-btn:hover{background:#f3f4f6;color:#374151}.tab-btn.active{background:#eff6ff;border-bottom-color:#2563eb;color:#2563eb}.app-main{flex:1 1;overflow-y:auto;padding:1rem}.app-main,.room-selector{-webkit-overflow-scrolling:touch}.room-selector{display:flex;gap:.5rem;margin-bottom:1.5rem;overflow-x:auto;padding-bottom:.5rem}.room-btn{background:#fff;border:2px solid #e5e7eb;border-radius:.5rem;cursor:pointer;flex-shrink:0;font-size:1rem;font-weight:500;padding:.75rem 1.5rem;transition:all .2s;white-space:nowrap}.room-btn.active,.room-btn:hover{border-color:#2563eb}.room-btn.active{background:#2563eb;color:#fff}.room-content{margin:0 auto;max-width:800px}.room-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:1.5rem}.room-header h2{color:#1f2937;font-size:1.5rem;font-weight:600}.events-list{display:flex;flex-direction:column;gap:1rem}.event-card{background:#fff;border-radius:.75rem;box-shadow:0 1px 3px #0000001a;padding:1rem}.event-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:.75rem}.event-date{color:#1f2937;font-size:1rem;font-weight:600;word-break:break-word}.event-actions{display:flex;gap:.5rem}.btn-icon{background:#0000;border:none;cursor:pointer;font-size:1.25rem;padding:.25rem;transition:transform .2s}.btn-icon:hover{transform:scale(1.1)}.event-details{align-items:center;background:#f9fafb;border-radius:.5rem;display:flex;justify-content:space-between;margin-bottom:.5rem;padding:.75rem}.event-time{color:#4b5563;font-size:1rem;font-weight:500}.event-temperature{color:#2563eb;font-size:1.5rem;font-weight:700}.event-footer{word-wrap:break-word;color:#6b7280;font-size:.875rem;font-style:italic;overflow-wrap:break-word}.login-container{align-items:center;background:linear-gradient(135deg,#2563eb,#1d4ed8);display:flex;justify-content:center;min-height:100vh;padding:1rem}.login-card{background:#fff;border-radius:1rem;box-shadow:0 10px 40px #0000001a;max-width:400px;padding:2rem;width:100%}.login-title{color:#1f2937;font-size:1.875rem;font-weight:700;margin-bottom:2rem;text-align:center}.form-group{margin-bottom:1.5rem}.form-group label{color:#374151;display:block;font-weight:500;margin-bottom:.5rem}.form-group input[type=date],.form-group input[type=password],.form-group input[type=text]{border:2px solid #e5e7eb;border-radius:.5rem;box-sizing:border-box;font-size:1rem;max-width:100%;padding:.75rem;transition:border-color .2s;width:100%}.form-group input:focus{border-color:#2563eb}.form-group input:disabled{background:#f3f4f6}.hour-grid{grid-gap:.5rem;display:grid;gap:.5rem;grid-template-columns:repeat(6,1fr);margin-top:.5rem}.hour-btn{background:#fff;border:2px solid #e5e7eb;border-radius:.5rem;cursor:pointer;font-size:.875rem;padding:.75rem .5rem;transition:all .2s}.hour-btn:hover:not(:disabled){background:#eff6ff;border-color:#2563eb}.hour-btn.active{background:#2563eb;border-color:#2563eb;color:#fff}.hour-btn:disabled{cursor:not-allowed;opacity:.3}.temperature-slider{-webkit-appearance:none;background:#e5e7eb;border-radius:4px;height:8px;outline:none;width:100%}.temperature-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#2563eb;border-radius:50%;cursor:pointer;height:24px;width:24px}.temperature-slider::-moz-range-thumb{background:#2563eb;border:none;border-radius:50%;cursor:pointer;height:24px;width:24px}.temperature-labels{color:#6b7280;display:flex;font-size:.875rem;justify-content:space-between;margin-top:.5rem}.btn{border:none;border-radius:.5rem;cursor:pointer;font-size:1rem;font-weight:500;padding:.75rem 1.5rem;transition:all .2s;width:100%}.btn-primary{background:#2563eb;color:#fff}.btn-primary:hover:not(:disabled){background:#1d4ed8}.btn-primary:disabled{cursor:not-allowed;opacity:.5}.btn-secondary{background:#fff;border:2px solid #e5e7eb;color:#374151}.btn-secondary:hover{background:#f9fafb}.modal-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:1rem;position:fixed;right:0;top:0;z-index:1000}.modal{-webkit-overflow-scrolling:touch;background:#fff;border-radius:1rem;max-height:90vh;max-width:600px;overflow-y:auto;width:100%}.modal-header{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;padding:1.5rem}.modal-header h2{color:#1f2937;font-size:1.5rem;font-weight:600}.btn-close{background:none;border:none;color:#6b7280;cursor:pointer;font-size:2rem;height:2rem;line-height:1;padding:0;width:2rem}.btn-close:hover{color:#1f2937}.modal form{padding:1.5rem}.modal-actions{display:flex;gap:1rem;margin-top:2rem}.modal-actions .btn{flex:1 1}.empty-state,.loading{color:#6b7280;font-size:1.125rem;padding:3rem 1rem;text-align:center}.error-message{background:#fee2e2;border-radius:.5rem;color:#991b1b;font-size:.875rem;margin-bottom:1rem;padding:.75rem}@media (max-width:640px){.app-header h1{font-size:1.125rem}.user-info span{display:none}.btn-logout{font-size:.8125rem;padding:.5rem .75rem}.tab-navigation{gap:.25rem;padding:.75rem}.tab-btn{font-size:.8125rem;padding:.5rem .75rem}.app-main{padding:.75rem}.room-header{align-items:stretch;flex-direction:column;gap:1rem}.room-header h2{font-size:1.25rem}.hour-grid{gap:.375rem;grid-template-columns:repeat(4,1fr)}.hour-btn{font-size:.75rem;padding:.5rem .25rem}.event-card{padding:.875rem}.event-date{font-size:.9375rem}.event-details{padding:.625rem}.event-time{font-size:.9375rem}.event-temperature{font-size:1.25rem}.event-footer{font-size:.8125rem;line-height:1.4}.modal-overlay{padding:.5rem}.modal{max-height:95vh;max-width:100%}.modal-header{padding:.875rem}.modal-header h2{font-size:1.125rem}.btn-close{font-size:1.5rem}.modal form{padding:.875rem}.modal .form-group{margin-bottom:1rem}.modal .form-group label{font-size:.875rem}.modal .form-group input[type=date]{-webkit-appearance:none;appearance:none;font-size:.875rem;max-width:100%;min-height:2.5rem;padding:.625rem;width:100%}.modal-actions{flex-direction:column;gap:.5rem;margin-top:1rem}.modal-actions .btn{font-size:.875rem;padding:.625rem 1rem}.temperature-slider{height:6px}.temperature-labels{font-size:.75rem}}@media (max-height:500px){.modal{max-height:95vh}.hour-grid{grid-template-columns:repeat(8,1fr)}}.heating-schedule{margin:0 auto;max-width:1400px;padding:20px}.schedule-header{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:30px;padding:20px}.schedule-header h2{color:#333;font-size:24px;margin:0 0 20px}.settings-panel{display:flex;flex-wrap:wrap;gap:20px}.setting-item{align-items:center;display:flex;gap:10px}.setting-item label{color:#555;font-weight:600}.view-factor{align-items:center;display:flex;gap:10px}.factor-value{color:#2196f3;font-size:20px;font-weight:700}.factor-percent{color:#666;font-size:14px}.edit-factor{align-items:center;display:flex;gap:8px}.edit-factor input{border:1px solid #ddd;border-radius:4px;font-size:16px;padding:6px 10px;width:80px}.btn-cancel,.btn-edit,.btn-save{padding:6px 12px}.btn-edit:hover{background:#1976d2}.btn-save:hover{background:#45a049}.btn-cancel:hover{background:#da190b}.empty-schedule{color:#999;font-size:18px;padding:60px 20px;text-align:center}.schedule-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));margin-bottom:30px}.schedule-card{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;overflow:hidden;transition:transform .2s,box-shadow .2s}.schedule-card:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px)}.schedule-card.needs_immediate_heating{border-left:4px solid #ff9800}.schedule-card.in_heating_window{border-left:4px solid #f44336}.schedule-card.scheduled{border-left:4px solid #4caf50}.schedule-card.past{border-left:4px solid #9e9e9e;opacity:.6}.card-header{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:space-between;padding:15px 20px}.card-header h3{color:#fff;font-size:18px;margin:0}.status-badge{border-radius:12px;font-size:12px;font-weight:600;padding:4px 12px;text-transform:uppercase}.status-scheduled{background:#4caf5033;color:#4caf50}.status-immediate{animation:pulse 2s infinite;background:#ff980033;color:#ff9800}.status-active{animation:pulse 2s infinite;background:#f4433633;color:#f44336}.status-past{background:#9e9e9e33;color:#9e9e9e}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.card-body{padding:20px}.info-row{align-items:center}.info-row .value{font-weight:600}.info-row .value.highlight{color:#2196f3;font-size:18px}.info-row.prominent{background:#f8f9fa;border-bottom:none;margin:15px -20px;padding:15px}.info-row.prominent .value-time{color:#2196f3;font-size:16px;font-weight:700}.divider{background:#e0e0e0;height:1px;margin:15px 0}.warning-box{background:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404}.active-box,.warning-box{font-weight:500;margin-top:15px;padding:12px;text-align:center}.active-box{background:#ffebee;border:1px solid #f44336;border-radius:4px;color:#c62828}.schedule-footer{background:#f8f9fa;border-radius:8px;margin-top:20px;padding:20px}.info-text{line-height:1.6}@media (max-width:768px){.heating-schedule{padding:10px}.schedule-grid{gap:15px;grid-template-columns:1fr}.schedule-header{padding:12px}.schedule-header h2{font-size:18px;margin-bottom:12px}.settings-panel{flex-direction:column;gap:12px}.setting-item{align-items:flex-start;flex-direction:column;gap:6px;width:100%}.setting-item label{font-size:13px}.factor-value{font-size:16px}.factor-percent{font-size:12px}.card-header{padding:12px 15px}.card-header h3{font-size:15px;word-break:break-word}.status-badge{font-size:10px;padding:3px 8px;white-space:nowrap}.card-body{padding:15px}.info-row{align-items:flex-start;flex-direction:column;gap:4px;padding:8px 0}.info-row .label{font-size:12px}.info-row .value{font-size:13px}.info-row .value.highlight{font-size:15px}.info-row.prominent{margin:12px -15px;padding:12px}.info-row.prominent .value-time{font-size:14px}.active-box,.warning-box{font-size:13px;margin-top:12px;padding:10px}.schedule-footer{padding:15px}.info-text{font-size:12px}.btn-cancel,.btn-edit,.btn-save{font-size:12px;padding:5px 10px}.edit-factor input{font-size:14px;padding:5px 8px;width:70px}}.room-management{margin:0 auto;max-width:1200px;padding:20px}.room-header{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:30px;padding:20px}.room-header h2{color:#333;font-size:24px;margin:0 0 10px}.info-text{color:#666;font-size:14px;margin:0}.rooms-list{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));margin-bottom:30px}.room-card{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;overflow:hidden;transition:transform .2s,box-shadow .2s}.room-card:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px)}.room-card-header{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:space-between;padding:15px 20px}.room-card-header h3{color:#fff;font-size:18px;margin:0}.room-card-body{padding:20px}.room-info{display:flex;flex-direction:column;gap:12px}.info-row{align-items:flex-start;border-bottom:1px solid #f0f0f0;display:flex;justify-content:space-between;padding:10px 0}.info-row:last-child{border-bottom:none}.info-row .label{color:#666;font-size:14px;font-weight:500;min-width:150px}.info-row .value{color:#333;font-size:14px;font-weight:400;text-align:right;word-break:break-all}.info-row .value code{background:#f5f5f5;border-radius:3px;font-family:Courier New,monospace;font-size:12px;padding:2px 6px}.child-id{display:inline-block;font-size:11px!important;max-width:200px}.edit-form{display:flex;flex-direction:column;gap:15px}.form-group{gap:5px}.form-group input{border:1px solid #ddd;border-radius:4px;font-size:14px;padding:10px;transition:border-color .2s}.form-group input:focus{border-color:#667eea;outline:none}.form-group input:disabled{background:#f5f5f5;cursor:not-allowed}.help-text{margin-top:3px}.help-text code{background:#f5f5f5;border-radius:2px;font-size:11px;padding:2px 4px}.form-actions{display:flex;gap:10px;margin-top:10px}.btn-cancel,.btn-edit,.btn-save{border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;padding:8px 16px;transition:all .2s}.btn-edit{background:#2196f3;color:#fff}.btn-edit:hover:not(:disabled){background:#1976d2}.btn-save{background:#4caf50;color:#fff;flex:1 1}.btn-save:hover:not(:disabled){background:#45a049}.btn-cancel{background:#f44336;color:#fff;flex:1 1}.btn-cancel:hover:not(:disabled){background:#da190b}.btn-cancel:disabled,.btn-edit:disabled,.btn-save:disabled{cursor:not-allowed;opacity:.6}.help-section{background:#fffbea;border:1px solid #ffd93d;border-radius:8px;margin-top:30px;padding:20px}.help-section h3{color:#333;font-size:18px;margin:0 0 15px}.help-section p{color:#555;line-height:1.6;margin:10px 0}.help-section ol{color:#555;margin:10px 0;padding-left:20px}.help-section li{line-height:1.6;margin:8px 0}.help-section pre{background:#2d2d2d;border-radius:4px;color:#f8f8f2;font-size:13px;margin:8px 0;overflow-x:auto;padding:12px}.help-section code{background:#f5f5f5;border-radius:3px;font-family:Courier New,monospace;font-size:13px;padding:2px 6px}.warning{background:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404;margin-top:15px;padding:12px}.warning strong{font-weight:600}@media (max-width:768px){.room-management{padding:10px}.rooms-list{gap:15px;grid-template-columns:1fr}.room-header{padding:12px}.room-header h2{font-size:18px}.info-text{font-size:12px}.room-card-header{padding:12px 15px}.room-card-header h3{font-size:15px;word-break:break-word}.room-card-body{padding:15px}.info-row{flex-direction:column;gap:4px;padding:8px 0}.info-row .label{font-size:12px;min-width:auto}.info-row .value{font-size:13px;text-align:left;word-break:break-word}.info-row .value code{font-size:11px}.child-id{font-size:10px!important;max-width:100%}.form-group label{font-size:13px}.form-group input{font-size:13px;padding:8px}.help-text{font-size:11px}.form-actions{flex-direction:column}.btn-cancel,.btn-edit,.btn-save{font-size:13px;padding:7px 14px}.help-section{margin-top:20px;padding:15px}.help-section h3{font-size:16px}.help-section li,.help-section p{font-size:13px}.help-section pre{font-size:11px;overflow-x:auto;padding:10px}.help-section code{font-size:12px}.warning{font-size:13px;padding:10px}}.kasa-test{margin:0 auto;max-width:800px;padding:20px}.test-header{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:30px;padding:20px}.test-header h2{color:#333;font-size:24px;margin:0 0 10px}.test-panel{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-bottom:20px;padding:25px}.test-form{gap:20px}.form-group,.test-form{display:flex;flex-direction:column}.form-group{gap:8px}.form-group label{color:#555;font-size:14px;font-weight:600}.form-group input,.form-group select{border:1px solid #ddd;border-radius:6px;font-size:14px;padding:12px;transition:border-color .2s}.form-group input:focus,.form-group select:focus{border-color:#667eea;outline:none}.form-group input:disabled,.form-group select:disabled{background:#f5f5f5;cursor:not-allowed}.btn-test{background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:16px;font-weight:600;margin-top:10px;padding:15px 30px;transition:all .3s}.btn-test:hover:not(:disabled){box-shadow:0 4px 12px #667eea66;transform:translateY(-2px)}.btn-test:disabled{cursor:not-allowed;opacity:.6;transform:none}.test-result{animation:slideIn .3s ease-out;border-radius:8px;margin-top:25px;padding:20px}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.test-result.success{background:#d4edda;border:2px solid #28a745}.test-result.error{background:#f8d7da;border:2px solid #dc3545}.result-header{font-size:18px;font-weight:600;margin-bottom:15px}.test-result.success .result-header{color:#155724}.test-result.error .result-header{color:#721c24}.result-body p{color:#333;margin:8px 0}.result-body strong{font-weight:600}.result-body details{background:#0000000d;border-radius:4px;margin-top:15px;padding:10px}.result-body summary{cursor:pointer;font-weight:600;padding:5px}.result-body pre{background:#2d2d2d;border-radius:4px;color:#f8f8f2;font-family:Courier New,monospace;font-size:12px;margin-top:10px;overflow-x:auto;padding:10px}.test-info{background:#fffbea;border:1px solid #ffd93d;border-radius:8px;padding:20px}.test-info h3{color:#333;font-size:18px;margin:0 0 15px}.test-info ul{margin:0;padding-left:20px}.test-info li{color:#555;line-height:1.6;margin:10px 0}.help-text{color:#888;font-size:12px;margin-top:5px}@media (max-width:768px){.kasa-test{padding:10px}.test-header{margin-bottom:15px;padding:12px}.test-header h2{font-size:18px}.test-header p{font-size:12px}.test-panel{margin-bottom:15px;padding:15px}.test-form{gap:15px}.form-group label{font-size:13px}.form-group input,.form-group select{font-size:13px;padding:10px}.btn-test{font-size:14px;padding:12px 20px}.test-result{margin-top:15px;padding:15px}.result-header{font-size:16px;margin-bottom:12px}.result-body p{font-size:13px}.result-body pre{font-size:11px;padding:8px}.test-info{padding:15px}.test-info h3{font-size:16px;margin-bottom:12px}.test-info li{font-size:13px;margin:8px 0}.help-text{font-size:11px}}
/*# sourceMappingURL=main.29977588.css.map*/