.app-root{max-width:1200px;margin:0 auto;padding:24px 24px calc(92px + env(safe-area-inset-bottom,0px))}.app-header{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}.header-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.header-actions{display:flex;align-items:center;gap:12px;position:relative}.header-sub{display:flex;align-items:center;justify-content:flex-start}@media (max-width: 640px){.header-top{flex-direction:column;align-items:flex-start;gap:8px}.header-actions{width:100%}.header-price,.header-live-power{font-size:16px;padding:4px 10px;align-self:flex-start}.header-actions-desktop{display:none}.mobile-menu-toggle{display:inline-flex}}@media (min-width: 641px){.header-actions-desktop{display:inline-flex;gap:12px}.mobile-menu-toggle{display:none}}.mobile-menu-panel{position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #d1d5db;border-radius:10px;box-shadow:0 12px 24px #0f172a33;padding:8px;display:none;flex-direction:column;gap:6px;z-index:60}.mobile-menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:transparent;z-index:50;display:none}body.theme-dark .mobile-menu-panel{background:#0b1220;border-color:#334155;color:#e5e7eb;box-shadow:0 12px 24px #02061799}.mobile-menu-item{display:flex;align-items:center;gap:10px;border:1px solid #d1d5db;background:#f8fafc;color:inherit;border-radius:8px;padding:8px 10px;width:220px}.mobile-menu-item:hover{background:#eef2f7}.mobile-menu-icon svg{display:block}.mobile-menu-label{font-size:13px}body.theme-dark .mobile-menu-item{background:#111827;border-color:#374151}body.theme-dark .mobile-menu-item:hover{background:#1f2937}body.theme-dark .mobile-menu-label{color:#e5e7eb}@media (max-width: 640px){.mobile-menu-panel{display:flex}.mobile-menu-backdrop{display:block}}.app-header h1{margin:0;font-size:28px;font-weight:600}.bottom-sticky-nav{position:fixed;left:0;right:0;bottom:0;z-index:70;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid #d1d5db}.bottom-sticky-nav-item{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;border:1px solid #d1d5db;border-radius:10px;background:#f8fafc;color:#334155;font-size:12px;font-weight:600;line-height:1;padding:6px 8px}.bottom-sticky-nav-icon{display:inline-flex;align-items:center;justify-content:center}.bottom-sticky-nav-label{letter-spacing:.01em}.bottom-sticky-nav-item.active{background:#dbeafe;border-color:#60a5fa;color:#1e3a8a}.bottom-sticky-nav-item:hover{background:#e2e8f0}.header-left{display:flex;flex-direction:column;gap:12px}.header-right{display:flex;align-items:center;min-width:220px;gap:12px}.date-picker{display:flex;align-items:center;gap:8px}.date-picker input[type=date]{padding:6px 10px;border:1px solid #d0d7e2;border-radius:6px;font-size:14px}.date-controls{display:flex;flex-wrap:wrap;align-items:center;gap:16px}.range-select{display:flex;align-items:center;gap:8px;font-size:14px}.range-select select{padding:6px 10px;border:1px solid #d0d7e2;border-radius:6px;font-size:14px;background-color:#fff}.error-banner{background-color:#fee2e2;color:#991b1b;border:1px solid #fecaca;border-radius:8px;padding:12px 16px;margin-bottom:24px}.sections-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px}.section{background-color:#fff;border:1px solid #d0d7e2;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:12px}.section-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.section-title{margin:0;font-size:18px;font-weight:600;flex:1;min-width:0}.section-title-toggle{width:100%;border:1px solid transparent;background:transparent;padding:8px 10px;margin:0;color:#0f172a;font:inherit;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:10px;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease}.section-title-toggle:hover{background:#f8fafc;border-color:#dbe4f0;color:#1d4ed8}.section-title-toggle:focus-visible{outline:2px solid #60a5fa;outline-offset:2px;border-radius:8px}.section-title-toggle-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:#fff;border:1px solid #dbe4f0;color:#475569;font-size:12px;line-height:1;transform:rotate(0);transition:transform .18s ease,background-color .16s ease,border-color .16s ease,color .16s ease}.section-title-toggle[aria-expanded=true] .section-title-toggle-icon{transform:rotate(180deg);border-color:#93c5fd;background:#dbeafe;color:#1d4ed8}.section-actions{display:flex;gap:8px}.icon-button{width:37px;height:37px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid #d0d7e2;background:#f1f5f9;color:#111827}.icon-button svg{width:24px;height:24px}.icon-button.table-icon-button{width:32px;height:32px}.icon-button.table-icon-button svg{width:18px;height:18px}.icon-button:hover{background:#e5e7eb}.section pre{background-color:#f1f5f9;border-radius:8px;padding:12px;overflow:auto;font-size:13px;margin:0}.chart-container{position:relative;width:100%;height:280px}.chart-badges{display:flex;gap:12px;margin-top:6px;font-size:12px;color:#374151}.chart-badges .badge strong{font-weight:600}.section .loading{color:#4b5563;font-style:italic}.section .section-error{color:#b91c1c;font-weight:500}button{padding:6px 12px;border-radius:6px;border:1px solid #d0d7e2;background-color:#e2e8f0;color:#1f2933;font-size:14px;cursor:pointer;transition:background-color .2s ease}button:hover{background-color:#cbd5f5}button:disabled{cursor:not-allowed;background-color:#e5e7eb;color:#9ca3af}.button-danger{background-color:#dc2626;border-color:#dc2626;color:#fff}.button-danger:hover{background-color:#b91c1c}.button-danger:disabled{background-color:#fecaca;border-color:#fecaca;color:#991b1b}.strategy-list{display:flex;flex-direction:column;gap:16px}.strategy-hours{display:grid;grid-template-columns:repeat(96,minmax(0,1fr));gap:1px;margin-bottom:6px}.strategy-hour-ranks{display:grid;grid-template-columns:repeat(96,minmax(0,1fr));gap:1px;margin-bottom:4px}.strategy-hour-ranks .hour-rank{grid-column:span 4;text-align:center;font-size:10px;color:#6b7280;padding:2px 0}.strategy-hour-ranks .hour-rank.next{color:#92400e}.strategy-hour-button{grid-column:span 4;position:relative;padding:4px 0;border:1px solid #d1d5db;border-radius:6px;background-color:#f1f5f9;color:#1f2937;font-size:12px;font-weight:600;text-align:center;cursor:pointer}.strategy-hour-button.enabled{background-color:#dbeafe;border-color:#93c5fd}.strategy-hour-button.current{background-color:#fef3c7;border-color:#fbbf24;color:#92400e}.strategy-hour-button.next-cheapest{box-shadow:0 0 0 2px #f59e0b40 inset,0 0 0 2px #f59e0b40}.strategy-hour-button.readonly{cursor:default}.strategy-mobile-hours{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:8px}.strategy-mobile-hour-chip{min-height:44px;border:1px solid #d1d5db;border-radius:10px;background:#f1f5f9;color:#1f2937;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:8px 6px}.strategy-mobile-hour-chip.enabled{background-color:#dbeafe;border-color:#93c5fd}.strategy-mobile-hour-chip.current{border-color:#f59e0b;box-shadow:0 0 0 2px #f59e0b2e}.strategy-mobile-hour-chip.next-cheapest .marker{color:#c2410c}.strategy-mobile-hour-chip.selected{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.strategy-mobile-summary{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}.strategy-mobile-summary .label{font-size:12px;color:#64748b}.strategy-mobile-summary .value{font-size:18px;font-weight:700;color:#0f172a}.strategy-mobile-hint{font-size:12px;color:#64748b;margin-bottom:8px}.strategy-card{border:1px solid #e2e8f0;border-radius:8px;padding:12px 16px;background-color:#f8fafc;display:flex;flex-direction:column;gap:8px}.strategy-card h3{margin:0;font-size:16px;font-weight:600}.strategy-card-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.strategy-card-title-meta{font-size:13px;font-weight:500;color:#64748b}.strategy-card-header{display:flex;justify-content:space-between;align-items:center}.strategy-timeline{display:grid;grid-template-columns:repeat(96,minmax(0,1fr));gap:1px}.strategy-segment{height:12px;border-radius:2px;cursor:pointer}.strategy-segment.enabled{background-color:#34d399}.strategy-segment.disabled{background-color:#d1d5db}.strategy-segment.hour-highlight{box-shadow:inset 0 0 0 2px #2563eb59}.strategy-segment.current{box-shadow:inset 0 0 0 2px #f59e0b}.strategy-segment.next-cheapest{box-shadow:inset 0 0 0 2px #fbbf24,0 0 0 2px #f59e0b59}.strategy-segment.readonly{cursor:default}.strategy-mobile-sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:90;display:flex;align-items:flex-end;justify-content:center;padding:12px}.strategy-mobile-sheet{width:min(720px,100%);background:#fff;border:1px solid #d1d5db;border-radius:14px 14px 10px 10px;padding:12px;box-shadow:0 20px 40px #0f172a59;max-height:min(80vh,620px);overflow:auto}.strategy-mobile-sheet-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.strategy-mobile-sheet-header .title{font-size:15px;font-weight:700;color:#0f172a}.strategy-mobile-actions-row{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin-bottom:12px}.strategy-mobile-open-cheapest{width:auto;min-height:34px;font-size:12px;font-weight:700;padding:6px 10px;display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto}.strategy-mobile-cheapest-list{display:flex;flex-direction:column;gap:8px}.strategy-mobile-cheapest-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #d1d5db;border-radius:10px;background:#f8fafc;padding:10px}.strategy-mobile-cheapest-row .info{min-width:0;display:flex;flex-direction:column;gap:2px}.strategy-mobile-cheapest-row .time{font-size:14px;font-weight:700;color:#0f172a}.strategy-mobile-cheapest-row .price{font-size:12px;color:#475569}.strategy-mobile-cheapest-row .estimate{font-size:12px;font-weight:600;color:#1e40af}.strategy-mobile-cheapest-row .enable-btn{min-height:36px;padding:6px 10px;font-size:12px;font-weight:700}.strategy-mobile-sheet-hour-title{margin-bottom:8px;font-size:13px;font-weight:700;color:#334155}.strategy-mobile-cheapest-section-title{margin-top:12px;margin-bottom:8px;font-size:13px;font-weight:700;color:#334155}.strategy-mobile-quarter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.strategy-mobile-quarter-btn{min-height:64px;border:1px solid #d1d5db;border-radius:10px;background:#f8fafc;color:#1f2937;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:10px;text-align:left}.strategy-mobile-quarter-btn.enabled{background:#dcfce7;border-color:#86efac}.strategy-mobile-quarter-btn .time{font-size:14px;font-weight:700}.strategy-mobile-quarter-btn .state{font-size:12px;font-weight:600}.strategy-mobile-quarter-btn .price{font-size:12px;color:#475569}.strategy-mobile-quarter-btn .estimate{font-size:12px;font-weight:600;color:#1e40af}@media (min-width: 901px){.strategy-mobile-hours,.strategy-mobile-hint{display:none}}.section.current-price-card{width:100%;max-width:320px;margin:0}.section.current-price-card .section-header{margin-bottom:8px}.section.current-price-card .section-title{font-size:16px}.summary-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.summary-widget{display:flex;flex-direction:column;background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px 16px}.summary-widget-title{font-size:13px;font-weight:600;color:#6b7280;margin-bottom:4px}.summary-widget-value{font-size:18px;font-weight:600;color:#0f172a}.summary-widget-sub{margin-top:2px;font-size:12px;color:#475569}.current-price-content{display:flex;flex-direction:column;gap:8px}.current-price-value{padding:16px 20px;border-radius:12px;font-size:32px;font-weight:700;color:#fff;box-shadow:0 8px 16px #0f172a26}.current-price-meta{font-size:13px;color:#475569}@media (max-width: 720px){.header-right{width:100%}}.section.full-width{grid-column:1 / -1}.data-table{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:4px 12px}.devices-analytics-controls{margin-top:14px;display:flex;flex-wrap:wrap;gap:14px;align-items:center}.devices-analytics-control{display:inline-flex;align-items:center;gap:8px;font-size:14px}.devices-analytics-control input[type=range]{width:180px}.devices-analytics-meta{margin-top:8px;font-size:12px;color:#6b7280}.kv-table{grid-template-columns:220px 1fr}.devices-table{grid-template-columns:120px 1fr 140px 200px}.devices-empty-state{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border:1px dashed #cbd5e1;border-radius:10px;background:linear-gradient(180deg,#f8fafc,#eef2ff)}.devices-empty-title{margin:0;font-size:16px;font-weight:700;color:#0f172a}.devices-empty-text{margin:0;font-size:13px;color:#475569;max-width:64ch}.devices-empty-action{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;margin-top:2px;padding:8px 12px;border:1px solid #2563eb;border-radius:8px;background:#2563eb;color:#fff;text-decoration:none;font-size:13px;font-weight:600}.devices-empty-action:hover{background:#1d4ed8}.devices-analytics-table{grid-template-columns:1fr 220px 190px 190px}.devices-analytics-group-table{grid-template-columns:1fr 110px 210px 190px 190px}.devices-analytics-table-mode{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px}.devices-analytics-mode-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #cbd5e1;background:#f8fafc;color:#334155;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700;white-space:nowrap}.devices-analytics-mode-btn:hover{background:#e2e8f0}.devices-analytics-mode-btn.active{background:#dbeafe;border-color:#93c5fd;color:#1d4ed8}.devices-analytics-desktop{display:grid}.devices-analytics-mobile{display:none}.devices-analytics-mobile-sort{display:flex;gap:8px;margin-bottom:10px;overflow-x:auto;padding-bottom:4px}.devices-analytics-mobile-sort-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #cbd5e1;background:#f8fafc;color:#334155;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:600;white-space:nowrap}.devices-analytics-mobile-sort-btn:hover{background:#e2e8f0}.devices-analytics-mobile-list{display:flex;flex-direction:column;gap:10px}.devices-analytics-mobile-card{border:1px solid #d1d5db;border-radius:10px;background:#f8fafc;padding:10px 12px}.devices-analytics-mobile-name{margin:0 0 8px;font-size:15px;font-weight:700;color:#0f172a}.devices-analytics-mobile-metric{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-top:6px;margin-top:6px;border-top:1px solid #e2e8f0}.devices-analytics-mobile-metric .label{font-size:12px;color:#64748b}.devices-analytics-mobile-metric .value{font-size:14px;font-weight:600;color:#0f172a;text-align:right}.devices-config-table{grid-template-columns:1fr 160px 180px 120px 160px}.events-table{grid-template-columns:170px 56px 140px 160px 1fr}.users-table{grid-template-columns:80px 1fr 1fr 80px 160px}.strategy-details-table{grid-template-columns:1fr 160px 160px}@media (max-width: 640px){.devices-table{grid-template-columns:80px 1fr}.devices-table .data-table-row .data-table-cell:nth-child(3),.devices-table .data-table-row .data-table-cell:nth-child(4),.devices-table .data-table-row.data-table-header .data-table-cell:nth-child(3),.devices-table .data-table-row.data-table-header .data-table-cell:nth-child(4){grid-column:1 / -1}.devices-config-table{grid-template-columns:1fr}.devices-config-table .data-table-row .data-table-cell,.devices-config-table .data-table-row.data-table-header .data-table-cell{grid-column:1 / -1}.events-table{grid-template-columns:1fr;gap:10px}.events-table .data-table-row.data-table-header{display:none}.events-table .data-table-row{border:1px solid #dbe4f0;border-radius:10px;padding:8px 10px;margin-bottom:10px;background:#f8fafc}.events-table .data-table-row .data-table-cell{grid-column:1 / -1;border-bottom:1px dashed #dbe4f0;padding:7px 0;display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;align-items:start;word-break:break-word}.events-table .data-table-row .data-table-cell:before{content:attr(data-label);font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.03em}.events-table .data-table-row .data-table-cell:last-child{border-bottom:none}.events-table .data-table-row .data-table-cell.events-empty-row{display:block;text-align:center;border-bottom:none}.events-table .data-table-row .data-table-cell.events-empty-row:before{content:none}.devices-analytics-table{grid-template-columns:1fr}.devices-analytics-table .data-table-row .data-table-cell,.devices-analytics-table .data-table-row.data-table-header .data-table-cell{grid-column:1 / -1;text-align:left}.devices-analytics-table .sort-button{text-align:left}}@media (max-width: 900px){.devices-analytics-desktop{display:none}.devices-analytics-mobile{display:block}}@media (max-width: 420px){.devices-analytics-mobile-metric{flex-direction:column;align-items:flex-start;gap:4px}.devices-analytics-mobile-metric .value{text-align:left}}@media (max-width: 640px){.strategy-details-table{grid-template-columns:1fr 120px}.strategy-details-table .data-table-row .data-table-cell:nth-child(3),.strategy-details-table .data-table-row.data-table-header .data-table-cell:nth-child(3){grid-column:1 / -1}}.data-table-row{display:grid;grid-template-columns:inherit;gap:inherit;grid-column:1 / -1;align-items:center}.data-table-cell{padding:4px 0;border-bottom:1px solid #e5e7eb;font-size:14px}.data-table-cell.numeric{text-align:right}.data-table-row.data-table-header .data-table-cell{font-size:12px;font-weight:600;text-transform:uppercase;color:#6b7280;border-bottom:1px solid #d1d5db}.sort-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;border-bottom:1px solid #d1d5db;text-transform:uppercase;color:#6b7280;font-size:12px;font-weight:600;text-align:left;padding:4px 0}.sort-button.numeric{text-align:right}.sort-button:hover{background:transparent;color:#334155}.data-table-row:last-of-type .data-table-cell{border-bottom:none}.data-table-empty{font-size:14px;color:#6b7280}.data-table-empty-link{color:#2563eb;font-weight:600;text-decoration:underline;text-underline-offset:2px}.data-table-empty-link:hover{color:#1d4ed8}.price-timeline{display:grid;grid-template-columns:repeat(96,minmax(0,1fr));gap:1px;margin-top:4px}.price-segment{height:8px;border-radius:2px}.price-segment.hour-highlight{box-shadow:inset 0 0 0 2px #2563eb59}.price-segment.current{box-shadow:inset 0 0 0 2px #f59e0b}.timeline-wrapper{position:relative}.timeline-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff9;display:flex;align-items:center;justify-content:center;z-index:1;border-radius:8px}.spinner{width:24px;height:24px;border:3px solid #e5e7eb;border-top-color:#2563eb;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.header-price{flex:2 1 0;display:flex;align-items:center;justify-content:center;border-radius:12px;padding:6px 12px;font-size:20px;font-weight:700;color:#fff;height:auto;align-self:center;box-shadow:0 8px 16px #0f172a1f;background:#334155;white-space:nowrap}.header-live-power{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:6px 12px;margin-left:0;min-width:0;font-size:20px;font-weight:700;color:#fff;height:auto;align-self:center;box-shadow:0 8px 16px #0f172a1f;white-space:nowrap}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:50}.modal{width:min(720px,92vw);max-height:86vh;overflow:auto;background:#fff;border:1px solid #d1d5db;border-radius:12px;padding:16px;box-shadow:0 20px 40px #0f172a40}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-body{display:flex;flex-direction:column;gap:12px}.header-auth{flex:0 0 auto;display:flex;align-items:center;gap:8px}.header-auth .user-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #d0d7e2;border-radius:999px;background-color:#fff}.header-auth .user-chip img{width:22px;height:22px;border-radius:50%;object-fit:cover}.header-auth .avatar-fallback{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#e5e7eb;color:#374151;font-size:12px;font-weight:700}.header-auth .muted{color:#6b7280}.toast-container{position:fixed;top:16px;right:16px;z-index:100;display:flex;flex-direction:column;gap:8px}.toast{padding:8px 12px;border-radius:8px;font-size:13px;box-shadow:0 6px 14px #0f172a2e;border:1px solid transparent;opacity:1;transform:translateY(0);transition:opacity .35s ease,transform .35s ease}.toast.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}.toast.info{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}.toast.success{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}.toast.hide{opacity:0;transform:translateY(-6px)}.settings-page-root .section{overflow:visible}.settings-section-stack{display:grid;gap:12px}.settings-section-description{margin:0;color:#475569;font-size:13px}.settings-muted{color:#64748b;font-size:12px}.settings-user-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px;border:1px solid #dbe4f0;border-radius:10px;background:linear-gradient(120deg,#f8fafc,#eef2ff)}.settings-badge{border:1px solid #cbd5e1;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700;line-height:1.6}.settings-badge.admin{background:#dcfce7;color:#166534;border-color:#86efac}.settings-badge.readonly{background:#f8fafc;color:#475569}.settings-readonly-notice{padding:10px 12px;border:1px solid #facc15;border-radius:8px;background:#fffbeb;color:#854d0e;font-size:13px}.settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.settings-four-column-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-config-groups{display:grid;gap:12px}.settings-config-group{border:1px solid #dbe4f0;border-radius:12px;background:linear-gradient(180deg,#f8fafc,#fff);padding:12px;display:grid;gap:10px}.settings-config-group-header{display:grid;gap:4px}.settings-config-group-title{margin:0;font-size:14px;font-weight:700;color:#0f172a}.settings-config-group-description{margin:0;font-size:12px;color:#64748b}.settings-field{display:flex;flex-direction:column;gap:6px}.settings-field>span{font-size:12px;color:#64748b;font-weight:600}.settings-field-label-row{display:inline-flex;align-items:center;gap:6px}.settings-info-button{width:18px;height:18px;min-height:18px;border-radius:999px;border:1px solid #94a3b8;background:#f8fafc;color:#334155;font-size:11px;font-weight:700;line-height:1;padding:0}.settings-info-button:hover{background:#e2e8f0}.settings-field-wide{grid-column:1 / -1}.settings-field-theme{max-width:360px}.settings-field input,.settings-field select{min-height:36px}.settings-field input[type=checkbox]{min-height:auto}.settings-checkbox-row{display:inline-flex;align-items:center;gap:10px;color:#334155;font-size:14px}.settings-field input[type=range]{min-height:auto}.settings-field-error{color:#b91c1c;font-size:12px}.settings-field-help{margin:0}.settings-field-help summary{cursor:pointer;font-size:11px;color:#64748b;-webkit-user-select:none;user-select:none}.settings-field-help>div{margin-top:6px;font-size:12px;color:#475569}.settings-inline-hint{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.settings-inline-hint-text{margin:0;font-size:13px;color:#475569}.settings-tooltip{position:relative;display:inline-flex;align-items:center}.settings-tooltip-bubble{position:absolute;top:calc(100% + 8px);z-index:100;border:1px solid #dbe4f0;border-radius:8px;background:#f8fafc;padding:10px 12px;min-width:280px;max-width:min(700px,80vw);font-size:12px;color:#334155;line-height:1.45;box-shadow:0 8px 24px #0f172a33}.settings-tooltip.align-right .settings-tooltip-bubble{right:0}.settings-tooltip.align-left .settings-tooltip-bubble{left:0}.settings-tooltip-bubble p{margin:0 0 8px}.settings-tooltip-bubble p:last-child{margin-bottom:0}.settings-tooltip-bubble ol{margin:0 0 8px 18px;padding:0}.settings-tooltip-bubble li{margin-bottom:4px}.settings-header-with-info{display:inline-flex;align-items:center;gap:6px}.settings-actions-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.settings-actions-row.compact{gap:6px}.settings-theme-options{display:grid;gap:10px}.settings-theme-option{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:10px 12px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}.settings-theme-option.active{border-color:#60a5fa;background:#eff6ff}.settings-theme-option input[type=radio]{margin-top:2px}.settings-theme-option>span{display:grid;gap:2px}.settings-link-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border:1px solid #2563eb;border-radius:6px;background:#2563eb;color:#fff;padding:0 12px;text-decoration:none;font-size:14px;font-weight:600}.settings-link-button:hover{background:#1d4ed8}.settings-table{width:100%;border-collapse:collapse;border-spacing:0;font-size:14px}.settings-table th,.settings-table td{text-align:left;vertical-align:top;padding:10px 8px;border-bottom:1px solid #e2e8f0}.settings-table th{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.03em}.settings-table.compact th,.settings-table.compact td{padding:8px 6px}.settings-table td input,.settings-table td select{width:100%}.settings-inline-actions{display:flex;gap:6px;flex-wrap:wrap}.settings-empty-row{color:#64748b;text-align:center}.settings-banner{border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;font-size:13px}.settings-banner.warning{border-color:#facc15;color:#854d0e;background:#fffbeb}.settings-tabs{display:flex;gap:8px;flex-wrap:wrap}.settings-tabs button{border-radius:999px;padding:6px 12px;background:#f8fafc;border-color:#cbd5e1}.settings-tabs button.active{background:#dbeafe;border-color:#60a5fa;color:#1e3a8a}.settings-chip-grid{display:flex;flex-wrap:wrap;gap:8px}.settings-chip-grid.compact{gap:6px}.settings-strategy-device-groups{display:grid;gap:10px}.settings-strategy-device-group{display:flex;flex-direction:column;gap:6px}.settings-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #cbd5e1;border-radius:999px;padding:4px 10px;background:#f8fafc;cursor:pointer;-webkit-user-select:none;user-select:none}.settings-chip.active{border-color:#60a5fa;background:#eff6ff}.settings-chip input{margin:0}.settings-modal{width:min(1080px,94vw)}.settings-strategy-modal{max-height:90vh}.settings-wizard-steps{display:flex;gap:10px;align-items:center;font-size:12px;color:#64748b}.settings-wizard-steps span{border:1px solid #cbd5e1;border-radius:999px;padding:4px 10px}.settings-wizard-steps span.active{border-color:#60a5fa;background:#eff6ff;color:#1e3a8a}.settings-strategy-block{border:1px solid #e2e8f0;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:12px}.settings-strategy-block h4{margin:0;font-size:14px}@media (max-width: 980px){.settings-four-column-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 720px){.settings-form-grid,.settings-four-column-grid{grid-template-columns:1fr}.settings-table{font-size:13px}.settings-table-devices thead{display:none}.settings-table-devices,.settings-table-devices tbody,.settings-table-devices tr,.settings-table-devices td{display:block;width:100%}.settings-table-devices tr{border:1px solid #dbe4f0;border-radius:10px;padding:8px 10px;margin-bottom:10px;background:#f8fafc}.settings-table-devices td{border-bottom:1px dashed #dbe4f0;padding:7px 0;display:grid;grid-template-columns:98px minmax(0,1fr);gap:8px;align-items:start}.settings-table-devices td:before{content:attr(data-label);font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.03em}.settings-table-devices td:last-child{border-bottom:none}.settings-table-devices td.settings-empty-row{display:block;text-align:center;border-bottom:none}.settings-table-devices td.settings-empty-row:before{content:none}.settings-table-strategies thead{display:none}.settings-table-strategies,.settings-table-strategies tbody,.settings-table-strategies tr,.settings-table-strategies td{display:block;width:100%}.settings-table-strategies tr{border:1px solid #dbe4f0;border-radius:10px;padding:8px 10px;margin-bottom:10px;background:#f8fafc}.settings-table-strategies td{border-bottom:1px dashed #dbe4f0;padding:7px 0;display:grid;grid-template-columns:98px minmax(0,1fr);gap:8px;align-items:start}.settings-table-strategies td:before{content:attr(data-label);font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.03em}.settings-table-strategies td:last-child{border-bottom:none}.settings-table-strategies td.settings-empty-row{display:block;text-align:center;border-bottom:none}.settings-table-strategies td.settings-empty-row:before{content:none}.settings-table-users thead{display:none}.settings-table-users,.settings-table-users tbody,.settings-table-users tr,.settings-table-users td{display:block;width:100%}.settings-table-users tr{border:1px solid #dbe4f0;border-radius:10px;padding:8px 10px;margin-bottom:10px;background:#f8fafc}.settings-table-users td{border-bottom:1px dashed #dbe4f0;padding:7px 0;display:grid;grid-template-columns:98px minmax(0,1fr);gap:8px;align-items:start}.settings-table-users td:before{content:attr(data-label);font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.03em}.settings-table-users td:last-child{border-bottom:none}.settings-table-users td.settings-empty-row{display:block;text-align:center;border-bottom:none}.settings-table-users td.settings-empty-row:before{content:none}}body.theme-dark .app-root,body.theme-dark .app-header h1{color:#e5e7eb}body.theme-dark .header-live-power{color:#fff}body.theme-dark .section{background-color:#111827;border-color:#374151}body.theme-dark .section-title-toggle-icon{background:#0f172a;border-color:#334155;color:#cbd5e1}body.theme-dark .section-title-toggle{color:#e5e7eb}body.theme-dark .section-title-toggle:hover{color:#93c5fd;background:#0f172a;border-color:#334155}body.theme-dark .section-title-toggle[aria-expanded=true] .section-title-toggle-icon{border-color:#93c5fd;background:#1e3a8a;color:#dbeafe}body.theme-dark .icon-button{background:#1f2937;color:#e5e7eb;border-color:#374151}body.theme-dark .icon-button:hover{background:#374151}body.theme-dark button{background-color:#1f2937;color:#e5e7eb;border-color:#374151}body.theme-dark button:hover{background-color:#374151}body.theme-dark button:disabled{background-color:#111827;color:#6b7280}body.theme-dark .button-danger{background-color:#b91c1c;border-color:#b91c1c;color:#fee2e2}body.theme-dark .button-danger:hover{background-color:#991b1b}body.theme-dark .button-danger:disabled{background-color:#7f1d1d;border-color:#7f1d1d;color:#fca5a5}body.theme-dark .date-picker input[type=date],body.theme-dark .range-select select{background-color:#0f172a;color:#e5e7eb;border-color:#374151}body.theme-dark .section pre{background-color:#0f172a;color:#e5e7eb}body.theme-dark .chart-badges{color:#9ca3af}body.theme-dark .strategy-card{background-color:#0f172a;border-color:#334155}body.theme-dark .strategy-card-title-meta{color:#94a3b8}body.theme-dark .summary-widget{background-color:#0f172a;border-color:#334155}body.theme-dark .summary-widget-title{color:#9ca3af}body.theme-dark .summary-widget-value{color:#e5e7eb}body.theme-dark .summary-widget-sub{color:#9ca3af}body.theme-dark .data-table-cell{border-bottom-color:#374151}body.theme-dark .data-table-row.data-table-header .data-table-cell{color:#9ca3af;border-bottom-color:#4b5563}body.theme-dark .sort-button{background:transparent;border:none;border-bottom:1px solid #4b5563;color:#9ca3af}body.theme-dark .sort-button:hover{color:#cbd5e1}body.theme-dark .data-table-empty{color:#9ca3af}body.theme-dark .data-table-empty-link{color:#93c5fd}body.theme-dark .data-table-empty-link:hover{color:#bfdbfe}body.theme-dark .devices-empty-state{border-color:#334155;background:linear-gradient(180deg,#0f172a,#1e293b)}body.theme-dark .devices-empty-title{color:#e5e7eb}body.theme-dark .devices-empty-text{color:#cbd5e1}body.theme-dark .devices-empty-action{background:#1d4ed8;border-color:#1d4ed8;color:#eff6ff}body.theme-dark .devices-empty-action:hover{background:#1e40af}body.theme-dark .devices-analytics-mode-btn{border-color:#334155;background:#0f172a;color:#cbd5e1}body.theme-dark .devices-analytics-mode-btn:hover{background:#1f2937}body.theme-dark .devices-analytics-mode-btn.active{background:#1e3a8a;border-color:#60a5fa;color:#dbeafe}body.theme-dark .devices-analytics-mobile-sort-btn{border-color:#334155;background:#0f172a;color:#cbd5e1}body.theme-dark .devices-analytics-mobile-sort-btn:hover{background:#1f2937}body.theme-dark .devices-analytics-mobile-card{border-color:#334155;background:#0f172a}body.theme-dark .devices-analytics-mobile-name{color:#e5e7eb}body.theme-dark .devices-analytics-mobile-metric{border-top-color:#334155}body.theme-dark .devices-analytics-mobile-metric .label{color:#9ca3af}body.theme-dark .devices-analytics-mobile-metric .value{color:#e5e7eb}body.theme-dark .header-price{background:#1f2937;color:#f9fafb}body.theme-dark .modal{background:#0b1220;border-color:#334155}body.theme-dark .modal-overlay{background:#02061799}body.theme-dark .header-auth .user-chip{background-color:#1f2937;border-color:#374151;color:#e5e7eb}body.theme-dark .header-auth .avatar-fallback{background:#334155;color:#e5e7eb}body.theme-dark .header-auth .user-name{color:#e5e7eb}body.theme-dark .bottom-sticky-nav{background:#0b1220e6;border-top-color:#334155}body.theme-dark .bottom-sticky-nav-item{background:#0f172a;border-color:#334155;color:#cbd5e1}body.theme-dark .bottom-sticky-nav-item:hover{background:#1e293b}body.theme-dark .bottom-sticky-nav-item.active{background:#1e3a8a;border-color:#60a5fa;color:#dbeafe}body.theme-dark .error-banner{background-color:#3f1f1f;color:#fca5a5;border-color:#7f1d1d}body.theme-dark .toast.error{background:#3f1f1f;color:#fca5a5;border-color:#7f1d1d}body.theme-dark .toast.info{background:#1e293b;color:#bfdbfe;border-color:#334155}body.theme-dark .toast.success{background:#052e2b;color:#a7f3d0;border-color:#065f46}body.theme-dark .settings-section-description,body.theme-dark .settings-muted{color:#94a3b8}body.theme-dark .settings-user-summary{background:linear-gradient(120deg,#0f172a,#1e293b);border-color:#334155}body.theme-dark .settings-config-group{border-color:#334155;background:linear-gradient(180deg,#0f172a,#111827)}body.theme-dark .settings-config-group-title{color:#e5e7eb}body.theme-dark .settings-config-group-description{color:#94a3b8}body.theme-dark .settings-badge.readonly{background:#0f172a;border-color:#334155;color:#cbd5e1}body.theme-dark .settings-badge.admin{background:#052e2b;border-color:#065f46;color:#a7f3d0}body.theme-dark .settings-readonly-notice{background:#2a1d0a;border-color:#92400e;color:#fcd34d}body.theme-dark .settings-theme-option{border-color:#334155;background:#0f172a}body.theme-dark .settings-theme-option.active{border-color:#60a5fa;background:#1e3a8a}body.theme-dark .settings-field>span{color:#94a3b8}body.theme-dark .settings-info-button{background:#0f172a;border-color:#475569;color:#cbd5e1}body.theme-dark .settings-info-button:hover{background:#1e293b}body.theme-dark .settings-field-error{color:#fca5a5}body.theme-dark .settings-field-help summary{color:#94a3b8}body.theme-dark .settings-field-help>div{color:#cbd5e1}body.theme-dark .settings-checkbox-row,body.theme-dark .settings-inline-hint-text{color:#cbd5e1}body.theme-dark .settings-tooltip-bubble{background:#0f172a;border-color:#334155;color:#cbd5e1}body.theme-dark .settings-link-button{background:#1d4ed8;border-color:#1d4ed8;color:#eff6ff}body.theme-dark .settings-link-button:hover{background:#1e40af}body.theme-dark .settings-table th,body.theme-dark .settings-table td{border-bottom-color:#334155}body.theme-dark .settings-table th{color:#94a3b8}body.theme-dark .settings-table-devices tr{border-color:#334155;background:#0f172a}body.theme-dark .settings-table-devices td{border-bottom-color:#334155}body.theme-dark .settings-table-devices td:before{color:#94a3b8}body.theme-dark .settings-table-strategies tr{border-color:#334155;background:#0f172a}body.theme-dark .settings-table-strategies td{border-bottom-color:#334155}body.theme-dark .settings-table-strategies td:before{color:#94a3b8}body.theme-dark .settings-table-users tr{border-color:#334155;background:#0f172a}body.theme-dark .settings-table-users td{border-bottom-color:#334155}body.theme-dark .settings-table-users td:before{color:#94a3b8}body.theme-dark .settings-empty-row{color:#94a3b8}body.theme-dark .settings-banner.warning{background:#2a1d0a;border-color:#92400e;color:#fcd34d}body.theme-dark .settings-tabs button{background:#0f172a;border-color:#334155;color:#cbd5e1}body.theme-dark .settings-tabs button.active{background:#1e3a8a;border-color:#60a5fa;color:#dbeafe}body.theme-dark .settings-chip{background:#0f172a;border-color:#334155;color:#e5e7eb}body.theme-dark .settings-chip.active{background:#1e3a8a;border-color:#60a5fa}body.theme-dark .settings-wizard-steps span{background:#0f172a;border-color:#334155;color:#cbd5e1}body.theme-dark .settings-wizard-steps span.active{background:#1e3a8a;border-color:#60a5fa;color:#dbeafe}body.theme-dark .settings-strategy-block{border-color:#334155}body.theme-dark .events-table .data-table-row{border-color:#334155;background:#0f172a}body.theme-dark .events-table .data-table-row .data-table-cell{border-bottom-color:#334155}body.theme-dark .events-table .data-table-row .data-table-cell:before{color:#94a3b8}body.theme-dark .timeline-overlay{background:#00000073}body.theme-dark .strategy-hour-button{background-color:#0f172a;border-color:#334155;color:#e5e7eb}body.theme-dark .strategy-hour-button.enabled{background-color:#1e293b;border-color:#334155}body.theme-dark .strategy-hour-button.current{background-color:#27272a;border-color:#f59e0b;color:#f59e0b}body.theme-dark .strategy-mobile-hour-chip{background-color:#0f172a;border-color:#334155;color:#e5e7eb}body.theme-dark .strategy-mobile-hour-chip.enabled{background-color:#1e293b;border-color:#334155}body.theme-dark .strategy-mobile-hour-chip.current{border-color:#f59e0b}body.theme-dark .strategy-mobile-hour-chip.next-cheapest .marker{color:#f59e0b}body.theme-dark .strategy-mobile-hour-chip.selected{border-color:#60a5fa}body.theme-dark .strategy-mobile-summary .label{color:#9ca3af}body.theme-dark .strategy-mobile-summary .value{color:#e5e7eb}body.theme-dark .strategy-mobile-hint{color:#9ca3af}body.theme-dark .strategy-segment.enabled{background-color:#22c55e8c}body.theme-dark .strategy-segment.disabled{background-color:#334155}body.theme-dark .strategy-segment.hour-highlight{box-shadow:inset 0 0 0 2px #3b82f659}body.theme-dark .strategy-segment.current{box-shadow:inset 0 0 0 2px #f59e0bcc}body.theme-dark .strategy-segment.next-cheapest{box-shadow:inset 0 0 0 2px #fbbf24e6,0 0 0 2px #f59e0b40}body.theme-dark .strategy-mobile-sheet-overlay{background:#0206179e}body.theme-dark .strategy-mobile-sheet{background:#0b1220;border-color:#334155}body.theme-dark .strategy-mobile-sheet-header .title{color:#e5e7eb}body.theme-dark .strategy-mobile-quarter-btn{background:#111827;border-color:#334155;color:#e5e7eb}body.theme-dark .strategy-mobile-quarter-btn.enabled{background:#052e2b;border-color:#065f46}body.theme-dark .strategy-mobile-quarter-btn .price{color:#9ca3af}body.theme-dark .strategy-mobile-quarter-btn .estimate{color:#93c5fd}body.theme-dark .strategy-mobile-cheapest-row{background:#111827;border-color:#334155}body.theme-dark .strategy-mobile-cheapest-row .time{color:#e5e7eb}body.theme-dark .strategy-mobile-cheapest-row .price{color:#9ca3af}body.theme-dark .strategy-mobile-cheapest-row .estimate{color:#93c5fd}body.theme-dark .strategy-mobile-sheet-hour-title,body.theme-dark .strategy-mobile-cheapest-section-title{color:#cbd5e1}body.theme-dark .price-segment{background-color:#475569}body.theme-dark .price-segment.hour-highlight{box-shadow:inset 0 0 0 2px #3b82f659}.temperature-studio-modal{width:min(1440px,96vw)}.temperature-strategy-studio{display:flex;flex-direction:column;gap:18px}.temperature-studio-topbar{display:grid;grid-template-columns:minmax(280px,.95fr) minmax(360px,1.05fr);gap:16px;align-items:start}.temperature-studio-topbar-main,.temperature-studio-device-panel,.temperature-studio-card,.temperature-studio-panel{border:1px solid #dbe4f0;border-radius:18px;background:radial-gradient(circle at top right,rgba(251,146,60,.14),transparent 32%),linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 16px 38px #0f172a14}.temperature-studio-topbar-main,.temperature-studio-device-panel,.temperature-studio-card{padding:16px}.temperature-studio-topbar-main{display:grid;gap:14px}.temperature-studio-device-panel{display:flex;flex-direction:column;gap:12px}.temperature-studio-device-header{display:flex;flex-direction:column;gap:4px}.temperature-studio-device-groups{display:grid;gap:12px}.temperature-studio-device-group{display:flex;flex-direction:column;gap:8px}.temperature-studio-mobile-tabs{display:none}.temperature-studio-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);gap:18px;align-items:start}.temperature-studio-panel{padding:18px;display:flex;flex-direction:column;gap:16px}.temperature-studio-panel-header,.temperature-studio-card-header,.temperature-studio-booster-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.temperature-studio-panel-header h4,.temperature-studio-card-header h5{margin:0}.temperature-studio-panel-header p,.temperature-studio-card-header p{margin:4px 0 0;color:#64748b;font-size:13px}.temperature-studio-baseline-note{margin-top:8px;color:#334155;font-size:12px;font-weight:700}.temperature-studio-badge,.temperature-studio-status-chip,.temperature-studio-rule-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}.temperature-studio-badge{color:#9a3412;background:linear-gradient(135deg,#fdba74,#ffedd5)}.temperature-studio-status-chip{color:#7c2d12;background:#ffedd5}.temperature-studio-status-chip.active{color:#065f46;background:#d1fae5}.temperature-studio-rule-pill{color:#1d4ed8;background:#dbeafe;min-width:128px;width:100%;justify-self:stretch;font-variant-numeric:tabular-nums}.temperature-studio-baseline-chart{position:relative;height:260px;border-radius:20px;padding:18px 18px 28px;overflow:hidden;background:linear-gradient(90deg,#0ea5e92e,#fb923c33),linear-gradient(180deg,#ffffffbf,#ffffff40)}.temperature-studio-chart-grid{position:absolute;top:18px;right:18px;bottom:28px;left:18px}.temperature-studio-chart-grid-line{position:absolute;display:block}.temperature-studio-chart-grid-line.horizontal{left:0;right:0;border-top:1px dashed rgba(71,85,105,.24)}.temperature-studio-chart-grid-line.vertical{top:0;bottom:0;border-left:1px dashed rgba(71,85,105,.18)}.temperature-studio-chart-svg{position:absolute;top:18px;right:18px;bottom:28px;left:18px;width:calc(100% - 36px);height:calc(100% - 46px)}.temperature-studio-step-path{fill:none;stroke:#ea580c;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}.temperature-studio-average-marker{position:absolute;top:12px;bottom:30px;width:0;border-left:2px solid rgba(30,41,59,.8)}.temperature-studio-average-marker span{position:absolute;top:0;left:8px;white-space:nowrap;padding:4px 8px;border-radius:999px;background:#0f172ad1;color:#f8fafc;font-size:11px;font-weight:700}.temperature-studio-baseline-point{position:absolute;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:999px;border:0;background:linear-gradient(135deg,#0ea5e9,#f97316);color:#fff;font-size:12px;font-weight:700;box-shadow:0 10px 26px #2563eb47;cursor:grab}.temperature-studio-baseline-point:disabled{cursor:default;opacity:.65}.temperature-studio-chart-axis{position:absolute;inset-inline:18px;display:flex;justify-content:space-between;color:#1e293b;font-size:12px;font-weight:700;text-shadow:0 1px 0 rgba(255,255,255,.6)}.temperature-studio-chart-axis.x{bottom:6px;inset-inline:26px 18px;display:block;height:18px}.temperature-studio-chart-axis.x span{position:absolute;transform:translate(-50%);white-space:nowrap;padding:1px 4px;border-radius:999px;background:#ffffffbd}.temperature-studio-chart-axis.y{top:8px;flex-direction:column-reverse;width:auto;inset-inline:auto;left:8px;bottom:28px}.temperature-studio-rule-list,.temperature-studio-block-list{display:flex;flex-direction:column;gap:10px}.temperature-studio-rule-row,.temperature-studio-block-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto auto;gap:12px;align-items:start;padding:12px;border-radius:16px;background:#f8fafcdb;border:1px solid rgba(203,213,225,.9)}.temperature-studio-rule-row{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 128px auto}.temperature-studio-rule-remove{justify-self:end}.temperature-studio-booster-grid,.temperature-studio-advanced-body{display:grid;gap:12px}.temperature-studio-booster-card{padding:14px;border-radius:18px;border:1px solid rgba(251,146,60,.25);background:radial-gradient(circle at top left,rgba(56,189,248,.12),transparent 24%),linear-gradient(180deg,#fffaf6,#fff);display:flex;flex-direction:column;gap:12px}.temperature-studio-booster-label,.temperature-studio-block-time{font-size:13px;font-weight:700;color:#1e293b}.temperature-studio-booster-copy{font-size:14px;line-height:1.5;color:#334155}.temperature-studio-booster-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.temperature-studio-hour-ribbon{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.temperature-studio-hour-chip{min-height:42px;border-radius:14px;border:1px solid #cbd5e1;background:linear-gradient(180deg,#fff,#f8fafc);color:#334155;font-weight:700}.temperature-studio-hour-chip.selected{border-color:#f97316;background:linear-gradient(180deg,#f973162e,#fb923c4d),#fff7ed;color:#9a3412}.temperature-studio-skip-summary{color:#64748b;font-size:13px;font-weight:600}.temperature-studio-advanced{border:1px solid #dbe4f0;border-radius:16px;padding:12px 14px;background:#f8fbff}.temperature-studio-advanced summary{cursor:pointer;font-weight:700}.temperature-studio-advanced-body{margin-top:14px}.temperature-studio-preview-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.temperature-studio-metric{min-height:84px;border-radius:16px;padding:12px;border:1px solid rgba(148,163,184,.28);background:linear-gradient(180deg,#fffffff5,#eff6ffe0);display:flex;flex-direction:column;gap:6px}.temperature-studio-metric .label{color:#64748b;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.temperature-studio-metric strong{color:#0f172a;line-height:1.35}.temperature-studio-inline-error{border-radius:14px;padding:10px 12px;color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.temperature-studio-inline-error.muted{color:#92400e;background:#fff7ed;border-color:#fed7aa}.temperature-studio-empty-state,.temperature-studio-loading{border-radius:18px;padding:16px;border:1px solid #dbe4f0;background:#f8fbff}.temperature-studio-empty-state.compact{padding:14px}.temperature-studio-empty-state strong,.temperature-studio-loading{color:#0f172a;font-weight:700}.temperature-studio-empty-state p{margin:6px 0 0;color:#64748b}.temperature-studio-timeline-card{padding:14px;border-radius:18px;border:1px solid #dbe4f0;background:linear-gradient(180deg,#fff,#f8fafc)}.temperature-studio-block-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}.temperature-studio-block-quarters{font-size:13px;font-weight:700;color:#1d4ed8}.temperature-studio-date-field{min-width:184px}@media (max-width: 1180px){.temperature-studio-topbar,.temperature-studio-grid{grid-template-columns:1fr}.temperature-studio-preview-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 820px){.temperature-studio-mobile-tabs{position:sticky;top:0;z-index:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #dbe4f0;border-radius:16px;background:#ffffffeb;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.temperature-studio-mobile-tabs button{min-height:40px;border-radius:12px;border:1px solid #cbd5e1;background:#f8fafc;color:#334155;font-weight:700}.temperature-studio-mobile-tabs button.active{border-color:#fb923c;background:#fff7ed;color:#9a3412}.temperature-studio-grid.show-builder .temperature-studio-preview,.temperature-studio-grid.show-preview .temperature-studio-builder{display:none}}@media (max-width: 720px){.temperature-studio-rule-row,.temperature-studio-booster-fields,.temperature-studio-preview-summary{grid-template-columns:1fr}.temperature-studio-hour-ribbon{grid-template-columns:repeat(4,minmax(0,1fr))}}body.theme-dark .temperature-studio-topbar-main,body.theme-dark .temperature-studio-device-panel,body.theme-dark .temperature-studio-card,body.theme-dark .temperature-studio-panel,body.theme-dark .temperature-studio-timeline-card,body.theme-dark .temperature-studio-advanced,body.theme-dark .temperature-studio-empty-state,body.theme-dark .temperature-studio-loading{background:radial-gradient(circle at top right,rgba(249,115,22,.16),transparent 28%),linear-gradient(180deg,#0f172a,#111827);border-color:#334155;box-shadow:0 18px 42px #02061773}body.theme-dark .temperature-studio-panel-header p,body.theme-dark .temperature-studio-card-header p,body.theme-dark .temperature-studio-device-header .settings-muted,body.theme-dark .temperature-studio-empty-state p,body.theme-dark .temperature-studio-skip-summary,body.theme-dark .temperature-studio-booster-copy{color:#94a3b8}body.theme-dark .temperature-studio-baseline-note,body.theme-dark .temperature-studio-chart-axis{color:#f8fafc;text-shadow:none}body.theme-dark .temperature-studio-chart-axis.x span{background:#0f172ab8}body.theme-dark .temperature-studio-metric,body.theme-dark .temperature-studio-rule-row,body.theme-dark .temperature-studio-block-row,body.theme-dark .temperature-studio-hour-chip,body.theme-dark .temperature-studio-advanced{background:#0f172ac2;border-color:#334155;color:#e5e7eb}body.theme-dark .temperature-studio-metric strong,body.theme-dark .temperature-studio-block-time,body.theme-dark .temperature-studio-booster-label{color:#f8fafc}body.theme-dark .temperature-studio-hour-chip.selected,body.theme-dark .temperature-studio-status-chip.active{background:#f9731638;border-color:#f97316;color:#fdba74}body.theme-dark .temperature-studio-status-chip{background:#1e293be6;color:#cbd5e1}body.theme-dark .temperature-studio-average-marker span{background:#f8fafceb;color:#0f172a}body.theme-dark .temperature-studio-mobile-tabs{background:#0f172af0;border-color:#334155}body.theme-dark .temperature-studio-mobile-tabs button{background:#111827;border-color:#334155;color:#cbd5e1}.heatpump-modal{width:min(980px,96vw)}.heatpump-editor{gap:16px}.heatpump-section{display:flex;flex-direction:column;gap:10px}.heatpump-section h4{margin:0}.heatpump-status{display:flex;flex-direction:column;gap:10px}.heatpump-device{border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;gap:4px}.heatpump-device-header,.heatpump-device-row{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.heatpump-state{font-weight:600;border-radius:999px;padding:0 8px}.heatpump-state.hold{background:#e1f5ee;color:#085041}.heatpump-state.boost{background:#fae3d9;color:#712b13}.heatpump-state.off{background:#e2e8f0;color:#334155}.heatpump-manual{color:#854f0b;font-size:13px}.heatpump-band-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.heatpump-band-limits{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-end}.heatpump-band-limit{display:flex;flex-direction:column;font-size:12px;color:#64748b}.heatpump-band-limit input{width:64px}.heatpump-profile-tabs{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.heatpump-profile-tabs button.active{border-color:#2563eb;color:#1d4ed8}.heatpump-weekend-toggle{margin-left:auto;font-size:14px}.heatpump-timeline{-webkit-user-select:none;user-select:none}.heatpump-timeline-bar{position:relative;height:44px;border-radius:8px;overflow:visible;background:#f1f5f9;touch-action:none;margin-top:18px}.heatpump-timeline-segment{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:12px;overflow:hidden;white-space:nowrap}.heatpump-timeline-quiet{position:absolute;bottom:0;height:6px;background:repeating-linear-gradient(45deg,#6366f1 0 4px,transparent 4px 8px);opacity:.6;pointer-events:none}.heatpump-timeline-handle{position:absolute;top:-18px;bottom:0;width:28px;margin-left:-14px;padding:0;border:none;background:transparent;cursor:ew-resize;touch-action:none;display:flex;flex-direction:column;align-items:center}.heatpump-timeline-handle:after{content:"";flex:1;width:3px;border-radius:2px;background:#0f172a}.heatpump-timeline-handle span{font-size:11px;line-height:16px;background:#0f172a;color:#fff;border-radius:4px;padding:0 3px}.heatpump-timeline-handle.active span{background:#2563eb}.heatpump-timeline-scale{display:flex;justify-content:space-between;font-size:11px;color:#94a3b8;margin-top:2px}.heatpump-period-list{display:flex;flex-direction:column;gap:6px}.heatpump-period-item{display:grid;grid-template-columns:minmax(0,1fr) 110px 40px;gap:6px;align-items:center}.heatpump-period-remove{padding:0;min-height:34px;font-size:18px}.heatpump-editor .summary-widgets{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.heatpump-period-item .settings-field-error{grid-column:1 / -1}.heatpump-grid{display:grid;gap:4px;font-size:13px}.heatpump-grid-corner,.heatpump-grid-head{font-size:11px;color:#64748b;text-align:center;align-self:end}.heatpump-grid-period{border-radius:6px;padding:4px 6px;display:flex;flex-direction:column;justify-content:center;min-height:40px}.heatpump-grid-period small{font-size:11px;opacity:.8}.heatpump-grid-cell{border:1px solid transparent;border-radius:6px;min-height:40px;font-size:15px;font-weight:600;cursor:pointer;padding:0}.heatpump-grid-cell.selected{border-color:#0f172a;box-shadow:0 0 0 2px #2563eb}.heatpump-stepper{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.heatpump-stepper button{min-width:44px;min-height:40px;font-size:20px}.heatpump-stepper strong{min-width:56px;text-align:center;font-size:18px}.heatpump-stepper-label{flex-basis:100%;font-size:13px;color:#64748b}.heatpump-preview-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.heatpump-preview-chart{width:100%;height:auto;touch-action:pan-y}.heatpump-preview-chart .hp-axis{font-size:11px;fill:#94a3b8}.heatpump-preview-chart .hp-grid-line{stroke:#e2e8f0;stroke-width:.5}.heatpump-preview-chart .hp-quiet{fill:#eef2ff}.heatpump-preview-chart .hp-price{fill:#b4b2a9;opacity:.5}.heatpump-preview-chart .hp-target{fill:none;stroke:#d85a30;stroke-width:2}.heatpump-preview-chart .hp-indoor{fill:none;stroke:#378add;stroke-width:2}.heatpump-preview-chart .hp-command{fill:#0f172a}.heatpump-preview-chart .hp-hover{stroke:#0f172a;stroke-width:1;stroke-dasharray:3 3}.heatpump-preview-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:#64748b}.hp-swatch{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px}.hp-price-swatch{background:#b4b2a9}.hp-target-swatch{background:#d85a30}.hp-indoor-swatch{background:#378add}.hp-command-swatch{background:#0f172a;border-radius:50%}.heatpump-preview-detail{font-size:13px;min-height:20px;color:#334155}.heatpump-advanced summary{cursor:pointer;font-weight:600}.heatpump-inline-inputs{display:flex;gap:6px}.heatpump-checkbox{font-size:14px;display:block}.heatpump-model-note{font-size:12px}@media (max-width: 640px){.heatpump-grid{gap:3px;font-size:12px}.heatpump-grid-cell{min-height:44px;font-size:14px}.heatpump-grid-period{padding:4px}.heatpump-period-item{grid-template-columns:minmax(0,1fr) 100px 40px}.heatpump-editor .summary-widgets{grid-template-columns:repeat(2,minmax(0,1fr))}.heatpump-weekend-toggle{margin-left:0;flex-basis:100%}.heatpump-timeline-segment{font-size:11px}}.heatpump-timeline .heatpump-timeline-handle,.heatpump-timeline .heatpump-timeline-handle:hover,body.theme-dark .heatpump-timeline .heatpump-timeline-handle,body.theme-dark .heatpump-timeline .heatpump-timeline-handle:hover{background:transparent;border:none;box-shadow:none;padding:0;min-width:0}body.theme-dark .heatpump-device{border-color:#334155}body.theme-dark .heatpump-state.off{background:#334155;color:#e2e8f0}body.theme-dark .heatpump-state.hold{background:#085041;color:#e1f5ee}body.theme-dark .heatpump-state.boost{background:#712b13;color:#fae3d9}body.theme-dark .heatpump-manual{color:#fac775}body.theme-dark .heatpump-timeline-bar{background:#1e293b}body.theme-dark .heatpump-timeline-handle:after,body.theme-dark .heatpump-timeline-handle span{background:#e2e8f0;color:#0f172a}body.theme-dark .heatpump-grid-cell.selected{border-color:#e2e8f0}body.theme-dark .heatpump-preview-chart .hp-grid-line{stroke:#334155}body.theme-dark .heatpump-preview-chart .hp-quiet{fill:#1e1b4b}body.theme-dark .heatpump-preview-chart .hp-command{fill:#e2e8f0}body.theme-dark .heatpump-preview-chart .hp-hover{stroke:#e2e8f0}body.theme-dark .hp-command-swatch{background:#e2e8f0}body.theme-dark .heatpump-preview-detail{color:#cbd5e1}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background-color:#f5f7fa;color:#1f2933}#root{min-height:100vh}a{color:inherit;text-decoration:none}html.theme-dark-init,body.theme-dark{background-color:#0b1220;color:#e5e7eb}
