body { background: #10151c; color: #f1f5f9; }
.evse-page { max-width: 1100px; }
.notice { border-radius: .5rem; background: #253141; color: #d8e7f7; padding: .7rem .9rem; margin: 1rem 0; }
.notice.error { background: #55262d; color: #ffdce0; }
.notice.success { background: #173e32; color: #d6fae9; }
.obd-live-status { margin: -.45rem 0 1rem; padding: .55rem .8rem; background: #111923; border: 1px solid #344254; border-radius: .45rem; }
.obd-live-status p { margin: .12rem 0; color: #bac7d4; font-size: .86rem; }
.obd-live-status .success { color: #7ee8b3; }
.obd-live-status .pending { color: #ffe08a; }
.obd-live-status .error { color: #ff9ca5; }
.status-grid, .evse-grid { display: grid; gap: 1rem; }
.status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; }
.evse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.status-card, .panel { background: #19222d; border: 1px solid #344254; border-radius: .65rem; padding: 1rem; }
.status-card span, .values span { color: #aeb9c6; display: block; font-size: .87rem; }
.status-card strong { display: block; color: #67d3ff; font-size: 1.18rem; margin: .3rem 0; }
.status-card small { display: block; color: #c6d2df; line-height: 1.25; }
.panel { margin-bottom: 1rem; }
.panel h2 { font-size: 1.2rem; margin: 0 0 1rem; color: #f8fafc; }
.evse-quick-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 1rem; }
.evse-quick-panel .vehicle-presence { margin: 0; }
.quick-vehicle { min-width: 0; }
.quick-vehicle .vehicle-presence { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .6rem; }
.quick-vehicle .vehicle-presence svg { width: 2.1rem; height: 2.1rem; }
.quick-vehicle .vehicle-presence svg.quick-mqtt-indicator { width: 1.8rem; height: 1.8rem; color: #9aa4ae; }
.quick-vehicle .vehicle-presence svg.quick-mqtt-indicator.mqtt-offline { color: #ff3b30; }
.quick-vehicle .vehicle-presence svg.quick-mqtt-indicator.mqtt-connected { color: #00d26a; }
.quick-vehicle .vehicle-presence svg.quick-bluetooth-indicator { width: 1.8rem; height: 1.8rem; color: #9aa4ae; }
.quick-vehicle .vehicle-presence svg.quick-bluetooth-indicator.bluetooth-connected { color: #36aaff; }
.quick-vehicle .quick-auto-indicator { flex: 0 0 auto; padding: .2rem .4rem; border-radius: .3rem; background: #176b3a; color: #d6fae9; font-size: .72rem; font-weight: 800; letter-spacing: .04em; animation: auto-indicator-blink 1.2s ease-in-out infinite; }
.soc-auto-dialog { width: min(34rem, calc(100vw - 2rem)); padding: 0; border: 1px solid #526477; border-radius: .75rem; background: #19222d; color: #f1f5f9; box-shadow: 0 1rem 3rem rgba(0,0,0,.55); }
.soc-auto-dialog::backdrop { background: rgba(0,0,0,.72); }
.soc-auto-dialog-content { padding: 1.25rem; }
.soc-auto-dialog-content h2 { margin: 0 0 .75rem; font-size: 1.2rem; }
.soc-auto-dialog-content p { color: #d1dbe5; line-height: 1.5; }
.soc-auto-dialog-actions { display: grid; gap: .65rem; margin-top: 1.25rem; }
.soc-auto-dialog-actions button { min-height: 2.8rem; white-space: normal; }
.soc-auto-dialog-actions button:disabled { opacity: .65; }
@keyframes auto-indicator-blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .quick-vehicle .quick-auto-indicator { animation: none; } }
.quick-vehicle .quick-etek-state { flex: 1; color: #67d3ff; font-size: .88rem; line-height: 1.2; text-align: right; overflow-wrap: anywhere; }
.quick-vehicle .quick-etek-state.quick-state-unavailable { color: #9aa4ae; }
.quick-remote-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.quick-remote-controls .remote-control { min-width: 0; }
.quick-metrics { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: space-between; gap: .75rem; }
.quick-extra-metrics { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.quick-extra-metrics .quick-metric { padding: .45rem .5rem; }
.quick-extra-metrics .quick-metric span { font-size: .72rem; white-space: nowrap; }
.quick-extra-metrics .quick-metric strong { font-size: 1rem; }
.quick-metric { min-width: 0; padding: .55rem .65rem; background: #111923; border: 1px solid #344254; border-radius: .45rem; }
.quick-metric span { display: block; color: #aeb9c6; font-size: .82rem; }
.quick-metric strong { display: block; margin-top: .3rem; color: #67d3ff; font-size: 1.18rem; overflow-wrap: anywhere; }
.quick-metric strong.quick-charge-idle { color: #9aa4ae; }
.quick-metric strong.quick-ev-value { color: #ffc107; }
.quick-metric strong.quick-net-positive { color: #ff3b30; }
.quick-metric strong.quick-net-negative { color: #00ff00; }
.quick-solar-controls { grid-column: 1 / -1; min-width: 0; }
.quick-solar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.quick-automatic-label { display: flex; align-items: center; margin: 0; }
.quick-controller-detail { display: block; margin-top: .2rem; color: #aeb9c6; }
.quick-target-value { flex: 0 0 auto; color: #f1f5f9; font-size: 1.05rem; }
.quick-solar-controls .form-range { margin: .35rem 0 0; }
.quick-manual-label { display: block; margin-top: .55rem; color: #aeb9c6; font-size: .87rem; }
.quick-bt-soc-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(4.5rem, 1fr); gap: .55rem; margin-top: .65rem; }
.quick-bluetooth-control { width: 100%; min-height: 2.8rem; margin: 0; padding: .4rem .7rem; }
.quick-soc-limit-value { display: flex; align-items: center; justify-content: center; min-width: 0; padding: .4rem; background: #111923; border: 1px solid #344254; border-radius: .45rem; }
.quick-soc-limit-value strong { color: #f1f5f9; font-size: 1rem; }
.evse-refresh-row { margin: 1rem 0; }
.evse-refresh-row button { display: block; width: 100%; }
.vehicle-history-panel { margin: 1rem 0; }
.vehicle-history-chart-wrap { position: relative; height: 280px; }
.vehicle-history-note { margin: .65rem 0 0; color: #aeb9c6; font-size: .85rem; }
.last-stop-summary { display: grid; gap: .2rem; margin: .8rem 0; padding: .7rem .9rem; border-left: 4px solid #ffc107; border-radius: .45rem; background: #19222d; color: #d8e1eb; }
.last-stop-summary strong { color: #ffc107; }
.last-stop-summary small { color: #aeb9c6; }
.stop-history { list-style: none; padding: 0; margin: 0; max-height: 24rem; overflow-y: auto; }
.stop-history li { border-top: 1px solid #344254; padding: .65rem 0; color: #c7d1db; font-size: .9rem; }
.stop-history time { display: block; color: #ffc107; font-weight: 700; margin-bottom: .2rem; }
.stop-history small { display: block; color: #aeb9c6; margin-top: .2rem; }
.stop-history-empty { color: #aeb9c6 !important; }
.panel-heading-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.panel-heading-row h2 { margin-bottom: 1rem; }
.vehicle-presence { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1rem; color: #9aa4ae; font-size: .85rem; font-weight: 700; }
.vehicle-presence svg { width: 1.4rem; height: 1.4rem; fill: currentColor; flex: 0 0 auto; }
.vehicle-presence.connected { color: #53df8b; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.values strong { display: block; font-size: 1.12rem; color: #7ee8b3; overflow-wrap: anywhere; }
.values small { display: block; color: #c6d2df; font-size: .8rem; }
.etek-temperature { margin: .45rem 0 0; color: #c6d2df; font-size: .8rem; }
.values.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.button-row { display: grid; gap: .55rem; margin-top: 1rem; }
.button-row.three { grid-template-columns: repeat(3, 1fr); }
.button-row.two { grid-template-columns: repeat(2, 1fr); }
.remote-control { min-height: 4.1rem; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .15rem; border: 2px solid transparent !important; }
.remote-control.remote-current { border: 3px solid #fff !important; box-shadow: 0 0 0 2px #15202b, 0 0 0 4px rgba(255,255,255,.75); }
.remote-control.remote-current-no-glow { border: 3px solid #fff !important; box-shadow: none !important; animation: none !important; }
.remote-state-label { max-width: 100%; padding: .22rem .48rem; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(6,14,22,.3); font-size: .66rem; line-height: 1.05; font-weight: 700; color: inherit; white-space: normal; }
.remote-control.remote-pending { animation: remote-heartbeat 1.15s ease-in-out infinite; position: relative; z-index: 1; }
.remote-control[data-remote="auto"].remote-pending { --remote-glow: rgba(80, 170, 255, .72); }
.remote-control[data-remote="start"].remote-pending { --remote-glow: rgba(95, 255, 155, .82); }
.remote-control[data-remote="stop"].remote-pending { --remote-glow: rgba(255, 105, 115, .82); }
.bluetooth-control { min-height: 4.5rem; padding: .65rem .8rem; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .28rem; white-space: normal; }
.bluetooth-control.bluetooth-pending { animation: remote-heartbeat 1.15s ease-in-out infinite; --remote-glow: rgba(80, 210, 255, .82); position: relative; z-index: 1; }
.bluetooth-control.bluetooth-connected { border: 3px solid #67d3ff !important; box-shadow: 0 0 0 2px #15202b, 0 0 0 4px rgba(80,210,255,.62); }
.bluetooth-control .remote-state-label { color: #e8f8ff; }
.bluetooth-control .remote-state-label.error { color: #ffdce0; border-color: #ff8995; background: rgba(85,38,45,.8); }
@keyframes remote-heartbeat { 0%, 100% { box-shadow: 0 0 0 2px #15202b, 0 0 0 4px var(--remote-glow, rgba(255,255,255,.6)); } 50% { box-shadow: 0 0 0 4px #15202b, 0 0 0 9px var(--remote-glow, rgba(255,255,255,.6)), 0 0 20px 8px var(--remote-glow, rgba(255,255,255,.6)); } }
.remote-status-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; }
.remote-status-row p { margin: 0; padding: .55rem .7rem; background: #111923; border: 1px solid #344254; border-radius: .45rem; }
.remote-status-row span, .remote-status-row strong { display: block; }
.remote-status-row span { color: #aeb9c6; font-size: .78rem; }
.remote-status-row strong { color: #f1f5f9; font-size: .92rem; margin-top: .15rem; }
.remote-pending-status { min-height: 1.25rem; margin: .6rem 0 0; color: #bac7d4; font-size: .86rem; }
.remote-pending-status.pending { color: #ffe08a; }
.remote-pending-status.success { color: #7ee8b3; }
.remote-pending-status.error { color: #ff9ca5; }
@media (prefers-reduced-motion: reduce) { .remote-control.remote-pending, .bluetooth-control.bluetooth-pending { animation: none; outline: 4px solid #fff; outline-offset: 3px; } }
.hint, .value-description { color: #b9c5d1; font-size: .88rem; margin: .75rem 0 0; }
.form-check-input { width: 2.7rem !important; height: 1.35rem !important; margin-right: .65rem; }
.form-check-label { padding-top: .1rem; }
.form-range { accent-color: #4cc9f0; }
.energy-panel { margin-top: 0; }
.events { list-style: none; padding: 0; margin: 0; max-height: 215px; overflow-y: auto; }
.events li { border-top: 1px solid #344254; padding: .55rem 0; color: #c7d1db; font-size: .9rem; }
.events time { color: #8292a3; margin-right: .5rem; }
@media (max-width: 760px) { .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .evse-grid { grid-template-columns: 1fr; } .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } .evse-quick-panel { grid-template-columns: 1fr 1fr; } .quick-metrics { gap: .45rem; } .quick-solar-controls { grid-column: 1 / -1; } }
@media (max-width: 420px) { .evse-quick-panel { grid-template-columns: 1fr; } .quick-solar-controls { grid-column: auto; } }
