.ev-page{--ev-green:#116b52;--ev-green-soft:#edf8f3;--ev-blue:#3176d3;--ev-ink:var(--text,#202b35);max-width:1640px;margin:0 auto;color:var(--ev-ink);font-size:15px;line-height:1.65}.ev-page *{box-sizing:border-box}.ev-page h1,.ev-page h2,.ev-page h3,.ev-dialog h2,.ev-dialog h3{margin:0;font-weight:600;letter-spacing:-.025em}.ev-page p{margin:6px 0}.ev-page h1{font-size:32px;line-height:1.25}.ev-page h2,.ev-dialog h2{font-size:19px;line-height:1.5}.ev-page h3,.ev-dialog h3{font-size:17px}.ev-hero{display:flex;gap:18px;align-items:center;padding:25px 0 28px}.ev-brand-symbol{display:grid;place-items:center;width:62px;height:68px;flex-shrink:0;border-radius:20px;background:var(--ev-green);color:#fff;font-size:49px;line-height:1;box-shadow:0 7px 18px #116b5218}.ev-hero-copy{flex:1;min-width:0}.ev-eyebrow{font-family:'IBM Plex Sans',sans-serif;font-size:11px;letter-spacing:.15em;color:var(--ev-green);font-weight:600;margin-bottom:6px}.ev-hero p{color:var(--muted);font-size:15px}.ev-hero-actions,.ev-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ev-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line,#d9dfe4);border-radius:10px;background:var(--surface,#fff);color:var(--ev-ink,#202b35);font:inherit;font-weight:500;font-size:14px;padding:9px 15px;min-height:42px;cursor:pointer;white-space:nowrap;transition:background .15s,box-shadow .15s}.ev-button:hover:not(:disabled){background:var(--surface-2,#f3f5f7);box-shadow:0 2px 5px #00000008}.ev-primary{background:var(--ev-green);border-color:var(--ev-green);color:#fff}.ev-primary:hover:not(:disabled){background:#0e5944}.ev-button:disabled{opacity:.5;cursor:wait}.ev-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto;scrollbar-width:thin}.ev-tabs button{font:inherit;font-size:15px;font-weight:500;color:var(--muted);border:0;border-bottom:3px solid transparent;background:none;white-space:nowrap;padding:12px 0;cursor:pointer}.ev-tabs button.active{color:var(--ev-green);border-color:var(--ev-green)}.ev-controls{display:flex;flex-wrap:wrap;align-items:end;gap:16px 24px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin-bottom:18px}.ev-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;color:var(--muted);min-width:0}.ev-field input,.ev-field select{font:inherit;font-size:14px;font-weight:400;color:var(--ev-ink,#202b35);border:1px solid var(--line,#d9dfe4);border-radius:8px;background:var(--surface,#fff);min-height:42px;padding:8px 10px;max-width:100%;width:100%}.ev-controls>.ev-field:first-child{max-width:300px}.ev-control-label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}.ev-range{display:flex;flex-wrap:wrap;gap:3px;padding:3px;border-radius:10px;background:var(--surface-2,#f0f3f5);min-height:42px}.ev-range button{border:0;background:transparent;white-space:nowrap;padding:6px 11px;border-radius:7px;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}.ev-range button[aria-pressed=true]{background:var(--surface,#fff);color:var(--ev-green);font-weight:600;box-shadow:0 1px 4px #00000010}.ev-date-range{display:flex;gap:10px}.ev-coverage{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:15px 18px;border:1px solid #e8dcb8;border-radius:12px;background:#fffaf0;margin:0 0 22px;font-size:14px}.ev-coverage p{font-size:13px;color:#735e36;margin:3px 0 0}.ev-coverage b{color:#70551f;font-weight:500}.ev-coverage.complete{background:var(--ev-green-soft);border-color:#cee6dc}.ev-coverage.complete b,.ev-coverage.complete p{color:var(--ev-green)}.ev-chip{display:inline-block;padding:4px 9px;border:1px solid var(--line,#d9dfe4);border-radius:7px;font-size:12px;background:var(--surface,#fff);color:var(--muted);overflow-wrap:anywhere}.ev-analysis-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:13px;color:var(--muted)}.ev-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px;margin-bottom:22px}.ev-metric{padding:19px 18px;border:1px solid var(--line);border-radius:13px;background:var(--surface,#fff);min-width:0;display:flex;flex-direction:column;gap:7px}.ev-metric>span{font-size:13px;color:var(--muted)}.ev-metric strong{font-family:'IBM Plex Sans','IBM Plex Sans Thai',sans-serif;font-size:27px;line-height:1.25;letter-spacing:-.035em;font-weight:600;overflow-wrap:anywhere}.ev-metric small{font-size:11px;color:var(--muted);line-height:1.6}.ev-card{background:var(--surface,#fff);border:1px solid var(--line);border-radius:14px;padding:23px;margin-bottom:22px;min-width:0;box-shadow:0 2px 6px #00000002}.ev-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.ev-card-head p{font-size:13px;color:var(--muted);margin:4px 0 0}.ev-two{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px}.ev-muted{color:var(--muted,#626c76);font-size:13px}.ev-table-scroll{max-width:100%;overflow:auto;scrollbar-width:thin;border-radius:8px}.ev-table{border-collapse:collapse;width:100%;font-size:14px;text-align:left;white-space:nowrap}.ev-table th{font-weight:500;font-size:12px;color:var(--muted,#626c76);background:var(--surface-2,#f5f7f8);padding:12px 13px;text-align:left}.ev-table td{border-bottom:1px solid var(--line,#e6ebee);padding:13px;vertical-align:top}.ev-table tbody tr:last-child td{border-bottom:0}.ev-table tbody tr:hover{background:var(--surface-2,#fafbfc)}.ev-code{font-family:'IBM Plex Mono',monospace;font-size:12px}.ev-link{border:0;background:none;padding:3px 0;color:var(--ev-blue,#3176d3);font:inherit;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:3px}.ev-link:hover{color:var(--ev-green,#116b52)}.ev-notice{padding:15px 18px;border-radius:10px;background:var(--surface-2,#f3f5f7);border:1px solid var(--line,#d9dfe4);margin:0 0 20px;font-size:14px;line-height:1.75}.ev-notice .ev-link{margin-left:14px}.ev-error{background:#fff1ef;color:#9f2c22;border-color:#f2c4bd}.ev-empty{text-align:center;max-width:620px;margin:45px auto 65px;padding:24px;color:var(--muted)}.ev-empty h3{font-size:22px;color:var(--ev-ink);margin:10px 0}.ev-empty p{line-height:1.9}.ev-empty .ev-button{display:flex;margin:22px auto}.ev-empty-icon{display:inline-grid;place-items:center;width:65px;height:65px;border-radius:20px;font-size:35px;color:var(--ev-green);background:var(--ev-green-soft)}.ev-insights{display:flex;flex-direction:column;gap:14px}.ev-insights>div,.ev-insights>button{border:0;border-bottom:1px solid var(--line);background:transparent;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:0 0 13px;font:inherit;text-align:left;color:inherit}.ev-insights>button{cursor:pointer}.ev-insights>*:last-child{border:0;padding-bottom:0}.ev-insights span{color:var(--muted);font-size:13px}.ev-insights strong{font-size:22px;color:var(--ev-green);font-weight:600}.ev-insights small{font-size:12px;color:var(--muted)}.ev-bars{display:flex;gap:5px;align-items:end;height:190px;padding-top:20px;margin:8px 0 10px}.ev-day-bar{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:end;align-items:center;height:100%;gap:6px}.ev-day-bar>span{background:var(--ev-blue);width:100%;max-width:28px;border-radius:4px 4px 0 0;min-height:0}.ev-day-bar>i{height:3px;width:100%;max-width:28px;background:#c8dfd4}.ev-day-bar>i.unknown{background:#a4adb5}.ev-day-bar small{font-size:9px;color:var(--muted)}.ev-groups{display:flex;flex-direction:column;gap:10px}.ev-group{display:block;border:1px solid var(--line);border-radius:10px;padding:15px;background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer}.ev-group:hover{background:var(--surface-2,#f7f9fa)}.ev-group>span{display:flex;justify-content:space-between;gap:12px;font-size:14px}.ev-group b{font-weight:500}.ev-group>span>span,.ev-group small{color:var(--muted);font-size:12px}.ev-group>i{display:block;height:5px;border-radius:5px;background:var(--surface-2,#edf0f3);margin:10px 0}.ev-group em{height:100%;display:block;border-radius:5px;background:var(--ev-blue)}.ev-recency{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.ev-recency-card{display:flex;flex-direction:column;gap:9px;padding:17px;text-align:left;border:1px solid var(--line);border-radius:10px;background:transparent;color:inherit;font:inherit;cursor:pointer}.ev-recency-card strong{font-size:29px;font-weight:600}.ev-recency-card span{font-size:13px}.ev-recency-card small{font-size:11px;color:var(--muted)}.ev-recency-card:hover{background:var(--surface-2,#f5f7f8)}.tone-0{border-top:3px solid #4a9a7b}.tone-1{border-top:3px solid #d5a149}.tone-2{border-top:3px solid #df8141}.tone-3{border-top:3px solid #c56162}.tone-4{border-top:3px solid #9ba6b0}.ev-heat-scroll{overflow:auto;max-width:100%}.ev-heat{min-width:920px;display:grid;grid-template-columns:34px repeat(24,minmax(28px,1fr));gap:5px}.ev-heat-label{font-size:11px;font-weight:400;color:var(--muted);align-self:center;text-align:center}.ev-heat-cell{min-height:49px;border:1px solid transparent;border-radius:5px;font:inherit;font-size:11px;cursor:pointer;background:color-mix(in srgb,var(--ev-blue) calc(var(--ev-heat)*100%),var(--surface-2,#f3f6f8));color:var(--ev-ink)}.ev-heat-cell.partial{border-style:dashed;border-color:#8c99a5}.ev-heat-cell:hover{outline:2px solid var(--ev-green);outline-offset:1px}.ev-tags{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}.ev-upload{display:flex;align-items:center;gap:20px;border:1px dashed #8dbca8;border-radius:12px;background:var(--ev-green-soft);padding:27px}.ev-upload h3{color:var(--ev-green);font-size:19px}.ev-upload p{font-size:13px;color:var(--muted);margin:5px 0 13px}.ev-upload-symbol{font-size:40px;color:var(--ev-green);flex-shrink:0;width:55px;text-align:center}.ev-upload input{font:inherit;font-size:13px;max-width:100%}.ev-upload input::file-selector-button{font:inherit;padding:8px 13px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:8px;color:var(--ev-ink);margin-right:10px;cursor:pointer}.ev-import-summary{padding:15px 0}.ev-import-summary h3{margin-top:12px}.ev-check{display:flex;gap:10px;align-items:start;font-size:14px;margin:20px 0}.ev-check input{width:18px;height:18px;flex-shrink:0;margin-top:3px;accent-color:var(--ev-green)}.ev-check small{font-size:12px;color:var(--muted)}.ev-preview{border:1px solid var(--line);border-radius:12px;padding:20px;margin-top:20px}.ev-preview .ev-actions{margin-top:20px}.ev-success{border-radius:12px;background:var(--ev-green-soft);border:1px solid #a3cebb;color:var(--ev-green);padding:20px}.ev-success p{font-size:14px}.ev-footnote{text-align:center;color:var(--muted);font-size:11px;padding:8px 0 15px}.ev-loading{display:flex;gap:10px;align-items:center;padding:25px;color:var(--muted);font-size:14px}.ev-loading span{border:2px solid var(--line);border-top-color:var(--ev-green);width:20px;height:20px;border-radius:50%;animation:spin .9s linear infinite}.ev-overlay{--ev-green:#116b52;--ev-blue:#3176d3;--ev-ink:var(--text,#202b35);position:fixed;inset:0;z-index:150;background:#15232766;backdrop-filter:blur(3px);padding:30px;display:flex;align-items:center;justify-content:center}.ev-dialog{font-family:'IBM Plex Sans Thai',sans-serif;color:var(--ev-ink);font-size:15px;background:var(--surface,#fff);border-radius:17px;width:min(1100px,100%);max-height:90dvh;display:flex;flex-direction:column;box-shadow:0 20px 90px #0003;outline:none}.ev-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 24px;border-bottom:1px solid var(--line)}.ev-dialog-body{padding:20px 24px;overflow:auto;overscroll-behavior:contain}.ev-dialog-body>.ev-field{margin:15px 0;max-width:450px}.ev-dialog-body>.ev-button{margin-top:15px}.ev-dialog-body .ev-actions{margin-top:20px}.ev-icon-button{border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;font:inherit;font-size:25px;line-height:1;min-width:38px;height:38px;cursor:pointer}.ev-danger{background:#a33830;border-color:#a33830;color:#fff}.ev-danger:hover:not(:disabled){background:#892d26}.ev-page button:focus-visible,.ev-dialog button:focus-visible,.ev-page input:focus-visible,.ev-dialog input:focus-visible,.ev-page select:focus-visible,.ev-table-scroll:focus-visible{outline:3px solid #5384d4;outline-offset:3px}.ev-page a{color:var(--ev-blue)}
[data-theme=dark] .ev-page,[data-theme=dark] .ev-overlay{--ev-green:#74d7af;--ev-green-soft:#182f29;--ev-blue:#75abf1;--ev-ink:var(--text,#e8ecf0)}[data-theme=dark] .ev-primary{background:#176749;border-color:#21875f;color:#fff}[data-theme=dark] .ev-brand-symbol{background:#176749}[data-theme=dark] .ev-coverage{background:#332b1c;border-color:#635133}[data-theme=dark] .ev-coverage b,[data-theme=dark] .ev-coverage p{color:#e0c38c}[data-theme=dark] .ev-coverage.complete{background:#182f29;border-color:#31594a}[data-theme=dark] .ev-coverage.complete b,[data-theme=dark] .ev-coverage.complete p{color:#8dd4b7}[data-theme=dark] .ev-error{background:#392321;border-color:#76403b;color:#f1b2ab}[data-theme=dark] .ev-heat-cell{color:#f0f4f8;background:color-mix(in srgb,#3563a0 calc(var(--ev-heat)*100%),var(--surface-2,#222a31))}
@media(min-width:1500px){.ev-metric strong{font-size:30px}}@media(max-width:1150px){.ev-two{grid-template-columns:1fr}.ev-recency{grid-template-columns:repeat(3,minmax(0,1fr))}.ev-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.ev-page h1{font-size:26px}.ev-hero{gap:12px;flex-wrap:wrap;padding:16px 0 20px}.ev-brand-symbol{width:47px;height:53px;border-radius:14px;font-size:39px}.ev-eyebrow{font-size:9px;letter-spacing:.08em}.ev-hero-actions{width:100%;justify-content:flex-end}.ev-tabs{gap:22px;margin-bottom:18px}.ev-controls{gap:14px;padding:15px}.ev-controls>.ev-field{width:100%;max-width:none!important}.ev-controls>div{width:100%}.ev-range{justify-content:space-between}.ev-range button{padding:7px;font-size:12px}.ev-date-range .ev-field{width:50%}.ev-coverage{align-items:start;flex-direction:column;padding:14px}.ev-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ev-metric{padding:15px 12px}.ev-metric strong{font-size:23px}.ev-metric>span{font-size:12px}.ev-card{padding:16px;border-radius:12px;margin-bottom:15px}.ev-card-head{align-items:start}.ev-card-head h2{font-size:17px}.ev-card-head p{font-size:12px}.ev-card-head .ev-button{font-size:12px;padding:7px 10px}.ev-table td,.ev-table th{padding:12px 10px}.ev-recency{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ev-recency-card{padding:13px}.ev-analysis-caption{align-items:start;flex-direction:column}.ev-upload{padding:18px;gap:9px;align-items:start}.ev-upload-symbol{display:none}.ev-upload h3{font-size:17px}.ev-overlay{padding:10px}.ev-dialog{max-height:93dvh;border-radius:12px}.ev-dialog>header{padding:15px}.ev-dialog h2{font-size:17px}.ev-dialog-body{padding:15px}.ev-preview{padding:14px}.ev-group>span{gap:6px;flex-wrap:wrap}.ev-footnote{font-size:10px}.ev-day-bar small{font-size:8px}.ev-bars{gap:3px}.ev-button{white-space:normal}.ev-hero-actions .ev-button{white-space:nowrap}.ev-date-range input{min-width:0}.ev-heat{min-width:880px}}
@media(prefers-reduced-motion:reduce){.ev-page *{animation:none!important;transition:none!important}}
.ev-page,.ev-overlay{--surface-2:var(--raised,#f3f5f7);--ev-ink:var(--ink,#202b35)}
[data-theme=dark] .ev-button:not(.ev-primary):not(.ev-danger){background:#222329;color:#f0eef0;border-color:#45464e}
.ev-gap-chart{display:flex;align-items:end;gap:15px;padding:15px 0}.ev-gap-chart button{border:0;background:none;color:inherit;font:inherit;display:flex;flex:1;min-width:0;align-items:center;flex-direction:column;gap:9px;cursor:pointer}.ev-gap-chart i{display:block;background:var(--ev-blue);width:100%;max-width:65px;border-radius:5px 5px 0 0}.ev-gap-chart span,.ev-gap-chart b{font-size:12px;font-weight:400;text-align:center}.ev-hour-chart{max-height:450px;overflow:auto}.ev-hour-chart .ev-table{min-width:550px}.ev-hour-value{position:relative;min-width:180px;min-height:25px;display:flex;justify-content:end;align-items:center}.ev-hour-value i{position:absolute;left:0;top:0;bottom:0;background:var(--ev-blue);opacity:.2;border-radius:4px}.ev-hour-value.b i{background:var(--ev-green)}.ev-hour-value span{position:relative;padding-right:7px}
@media(max-width:650px){.ev-metric strong{font-size:clamp(17px,5.3vw,23px);white-space:nowrap;overflow-wrap:normal}.ev-day-bar small{visibility:hidden}.ev-day-bar:nth-child(5n+1) small,.ev-day-bar:last-child small{visibility:visible}}

/* Readable analytical views and traceable calculations. Scoped to EV only. */
.ev-page{font-size:1rem}.ev-page h1{font-size:2.125rem}.ev-page h2,.ev-dialog h2{font-size:1.25rem}.ev-page h3,.ev-dialog h3{font-size:1.125rem}
.ev-overlay,.ev-overlay *{box-sizing:border-box}.ev-overlay{--ev-green-soft:#edf8f3}
.ev-dialog{font-size:1rem}
[data-theme=dark] .ev-page,[data-theme=dark] .ev-overlay{--ev-green:#6dd5ae;--ev-green-soft:#173b31;--ev-blue:#78aefe}
[data-theme=dark] .ev-primary,[data-theme=dark] .ev-brand-symbol{background:#116b52;color:#fff}
.ev-title-line,.ev-metric-label{display:flex;align-items:center;gap:.5rem}.ev-metric-label{justify-content:space-between;min-height:2rem;color:var(--muted);font-size:.875rem}
.ev-info{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.875rem;height:1.875rem;min-width:1.875rem;padding:0;border:1px solid var(--line-strong);border-radius:50%;background:var(--surface);color:var(--ev-green);font-family:'IBM Plex Sans',sans-serif;font-size:.875rem;font-weight:600;cursor:pointer;line-height:1}
.ev-info:hover{background:var(--ev-green-soft);border-color:var(--ev-green)}.ev-info:focus-visible{outline:3px solid var(--ev-blue);outline-offset:2px}
.ev-metric-value{display:flex;flex-direction:column;gap:.2rem}.ev-metric-value strong{font-size:1.875rem}.ev-unit{font-size:.9375rem;font-weight:400;color:var(--muted);line-height:1.5}.ev-metric>small{font-size:.8125rem;min-height:2.5em}
.ev-change{display:flex;flex-direction:column;gap:.15rem;margin-top:auto;padding-top:.6rem;border-top:1px solid var(--line);font-size:.8125rem;line-height:1.55}.ev-change b{font-size:1rem;font-weight:600}.ev-change.up b{color:var(--ev-green)}.ev-change.down b{color:var(--danger,#aa443e)}.ev-change.same b{color:var(--muted)}.ev-change span,.ev-change.unavailable{color:var(--muted)}
.ev-table{font-size:.9375rem}.ev-table th{font-size:.875rem}.ev-muted,.ev-card-head p,.ev-coverage p,.ev-analysis-caption{font-size:.875rem}.ev-field,.ev-control-label{font-size:.875rem}.ev-field input,.ev-field select,.ev-button,.ev-tabs button,.ev-range button{font-size:.9375rem}.ev-chip{font-size:.8125rem}.ev-metric{gap:.6rem}.ev-page .ev-footnote{font-size:.8125rem}
.ev-head-label{display:inline-flex;flex-direction:column;gap:2px}.ev-head-label b{font-weight:600;font-size:1rem}.ev-head-label small,.ev-cell-note{display:block;color:var(--muted);font-size:.8125rem;font-weight:400}.ev-code{font-size:.8125rem}.ev-table .ev-link{font-size:.9375rem}.ev-group>span{font-size:1rem}.ev-group small,.ev-group>span>span{font-size:.875rem}.ev-recency-card span{font-size:.9375rem}.ev-recency-card small{font-size:.8125rem}.ev-recency-card .ev-unit{font-size:.875rem}.ev-insights span{font-size:.9375rem}.ev-insights small{font-size:.875rem}
.ev-formula{font-size:1rem;line-height:1.85;overflow-wrap:anywhere}.ev-formula h3{margin:1.1rem 0 .5rem}.ev-formula p{margin:.5rem 0 1rem}.ev-help-warning{color:var(--warn,#876329);background:var(--warn-bg,#fff6df);border-radius:8px;padding:.75rem}.ev-dialog-body .ev-muted{font-size:.875rem}.ev-dialog-body .ev-table{font-size:.9375rem}
.ev-comparison{padding:1.125rem 1.25rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:1.25rem}.ev-comparison-heading{display:flex;align-items:start;justify-content:space-between;gap:1rem}.ev-comparison-heading b{font-size:1rem;font-weight:600}.ev-comparison-heading p{font-size:.875rem;color:var(--muted);margin:.3rem 0 .8rem}.ev-comparison-fields{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}.ev-comparison-fields>.ev-field:first-child{min-width:260px}.ev-comparison-status{display:flex;flex-wrap:wrap;gap:.3rem 1.25rem;margin-top:.8rem;font-size:.875rem;color:var(--muted)}.ev-comparison-status .ready{color:var(--ev-green)}.ev-compare-warning{font-size:.875rem;color:var(--warn,#876329);padding:.65rem .8rem;border-radius:8px;background:var(--warn-bg,#fff6df);margin:.75rem 0 0!important}
.ev-daily-chart{position:relative}.ev-daily-chart .ev-bars{height:205px;margin-top:25px;gap:5px}.ev-day-hit{display:flex;align-items:end;justify-content:center;width:100%;height:100%;min-height:150px;border:0;padding:0;background:transparent;cursor:pointer;border-radius:5px}.ev-day-hit>span{display:block;width:100%;max-width:28px;background:var(--ev-blue);border-radius:4px 4px 0 0}.ev-day-bar.active .ev-day-hit>span{background:var(--ev-green)}.ev-day-hit:hover{background:var(--surface-2)}.ev-day-hit:focus-visible{outline:2px solid var(--ev-blue);outline-offset:2px}.ev-daily-tip{position:absolute;z-index:5;bottom:3.75rem;width:280px;max-width:100%;background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;padding:.85rem 1rem;box-shadow:var(--shadow-lg);font-size:.875rem;color:var(--ev-ink);pointer-events:auto}.ev-daily-tip>div{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.ev-daily-tip button{font:inherit;line-height:1;font-size:1.25rem;display:grid;place-items:center;width:1.75rem;height:1.75rem;border:0;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer}.ev-daily-tip dl{margin:.5rem 0}.ev-daily-tip dl>div{display:flex;justify-content:space-between;gap:.5rem;padding:3px 0}.ev-daily-tip dt{color:var(--muted)}.ev-daily-tip dd{margin:0;font-weight:500}.ev-daily-tip>small{display:block;font-size:.8125rem;color:var(--muted);padding-top:.3rem;border-top:1px solid var(--line)}.ev-day-bar small{font-size:.6875rem}.ev-day-bar>i{flex:none}
.ev-battery-status{display:flex;justify-content:space-between;align-items:start;gap:1rem;margin:1rem 0;padding:1rem;border:1px solid var(--line);background:var(--raised);border-radius:10px;font-size:.9375rem}.ev-battery-status p{margin:.35rem 0 0;color:var(--muted);font-size:.875rem}.ev-battery-status.complete{background:var(--ev-green-soft);border-color:color-mix(in srgb,var(--ev-green) 30%,var(--line))}.ev-battery-status .ev-info{--ev-green:var(--ok,#116b52)}.ev-soc{display:flex;gap:.8rem;font-size:.9375rem}.ev-soc span{display:flex;flex-direction:column;color:var(--muted);font-size:.8125rem}.ev-soc b{font-size:1rem;color:var(--ev-ink);font-weight:500}.ev-soc-missing{font-size:.875rem;color:var(--muted)}
.ev-hour-intro{font-size:1rem;line-height:1.8;color:var(--muted);margin-bottom:1.1rem!important}.ev-hour-summaries{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.1rem 0 1.5rem}.ev-hour-summary{display:flex;flex-direction:column;align-items:start;gap:.4rem;border:1px solid var(--line);border-radius:12px;padding:1.1rem}.ev-hour-summary>span{font-size:.875rem;color:var(--muted)}.ev-hour-summary>strong{font-size:1.35rem;line-height:1.4;font-weight:600}.ev-hour-summary>b{font-size:1.35rem;font-weight:600;color:var(--ev-blue)}.ev-hour-summary.weekend>b{color:var(--ev-green)}.ev-hour-summary>b>small,.ev-hour-summary>small{font-size:.875rem;font-weight:400;color:var(--muted)}.ev-series-label{display:inline-flex;gap:.5rem;align-items:center;font-size:.875rem}.ev-series-label i{display:inline-block;width:11px;height:11px;border-radius:3px;background:var(--ev-blue)}.ev-series-label.weekend i,.ev-hour-summary.weekend i{background:var(--ev-green)}.ev-hour-legend{display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;font-size:.875rem;color:var(--muted);margin:.75rem 0}.ev-hour-legend>span:last-child{margin-left:auto}.ev-hour-plot-scroll{overflow-x:auto;padding:0 0 .5rem}.ev-hour-plot{display:flex;align-items:end;gap:7px;height:220px;min-width:760px;padding:12px 5px 0;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 49px,var(--line) 49px,var(--line) 50px)}.ev-hour-pair{flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;gap:8px}.ev-hour-pair>div{width:100%;height:175px;display:flex;align-items:end;justify-content:center;gap:3px}.ev-hour-pair>span{font-size:.8125rem;color:var(--muted);background:var(--surface);padding:2px 0;width:100%;text-align:center}.ev-hour-bar{display:block;width:42%;background:var(--ev-blue);border-radius:3px 3px 0 0}.ev-hour-bar.weekend{background:var(--ev-green)}.ev-hour-bar.missing{background:var(--line);border:1px dashed var(--muted)}.ev-method-details{margin-top:1.1rem;border-top:1px solid var(--line);padding-top:1rem}.ev-method-details summary{font-size:.9375rem;color:var(--ev-green);cursor:pointer;font-weight:500}.ev-method-details p{font-size:.9375rem;margin:1rem 0}.ev-method-details .ev-table-scroll{margin-top:1rem}.ev-gap-chart span,.ev-gap-chart b{font-size:.875rem}
@media(max-width:1150px){.ev-hour-plot{min-width:720px}}
.ev-daily-tip{pointer-events:none}.ev-daily-tip button{pointer-events:auto}
.ev-import-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;list-style:none;padding:0;margin:0 0 1.5rem}.ev-import-steps li{padding:1rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.ev-import-steps b,.ev-import-steps span{display:block}.ev-import-steps b{font-size:1rem;margin-bottom:.3rem}.ev-import-steps span{font-size:.875rem;color:var(--muted)}.ev-import-mode{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.ev-import-mode b{font-size:1.125rem}.ev-import-mode p{font-size:.875rem;color:var(--muted)}.ev-replace-target,.ev-report-period{display:flex;flex-direction:column;gap:.35rem;padding:1rem;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);margin-bottom:1.2rem}.ev-replace-target>span,.ev-report-period small{font-size:.875rem;color:var(--muted)}.ev-replace-target>b{overflow-wrap:anywhere}.ev-report-period{border-left:4px solid var(--warn,#a77a32)}.ev-report-period.full{border-left-color:var(--ev-green);background:var(--ev-green-soft)}.ev-report-period>b{font-size:1rem}.ev-report-period>span{font-size:1rem}.ev-swap-periods{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}.ev-swap-periods>div{padding:1rem;border:1px solid var(--line);border-radius:10px}.ev-swap-periods span,.ev-swap-periods b{display:block}.ev-swap-periods span{font-size:.875rem;color:var(--muted);margin-bottom:.4rem}.ev-swap-periods b{font-size:1rem;font-weight:500}.ev-batch-impact{margin:1.1rem 0}.ev-batch-impact h3{margin:0 0 .8rem}.ev-batch-impact .ev-table{min-width:650px}.ev-batch-impact p{font-size:.875rem;line-height:1.8}.ev-file-label{display:block;max-width:280px;min-width:180px;white-space:normal;overflow-wrap:anywhere;font-size:.9375rem;font-weight:500}.ev-batch-state{display:inline-block;font-size:.875rem;border-radius:6px;padding:3px 8px;border:1px solid var(--line)}.ev-batch-state.active{color:var(--ev-green);background:var(--ev-green-soft)}.ev-batch-state.removed{color:var(--muted);background:var(--surface-2)}.ev-batch-actions{display:flex;flex-direction:column;align-items:start;gap:.6rem}.ev-remove-link{color:var(--danger,#a33830)}.ev-link:disabled{opacity:.5;cursor:not-allowed}.ev-success .ev-button{margin-top:.6rem}.ev-preview>.ev-field{max-width:520px;margin:1rem 0}.ev-table .ev-cell-note{max-width:280px;white-space:normal;overflow-wrap:anywhere;margin-top:.3rem}
@media(max-width:650px){.ev-import-steps{grid-template-columns:1fr;gap:.65rem}.ev-import-steps li{padding:.8rem 1rem}.ev-import-mode{align-items:start;flex-direction:column}.ev-swap-periods{grid-template-columns:1fr}.ev-card-head:has(select[aria-label="กรองประวัติการนำเข้า"]){flex-direction:column}.ev-report-period{padding:.85rem}.ev-batch-actions .ev-button{font-size:.875rem}.ev-batch-impact .ev-table th{white-space:normal;min-width:100px}}
.ev-upload>div{min-width:0;max-width:100%}.ev-upload p{overflow-wrap:anywhere}
@media(max-width:650px){.ev-history td:nth-child(2),.ev-history td:nth-child(5){grid-column:1/-1}}
@media(max-width:650px){.ev-history .ev-table-scroll{overflow:visible}.ev-history table,.ev-history tbody{display:block;width:100%}.ev-history thead{display:none}.ev-history tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;border:1px solid var(--line);border-radius:10px;padding:1rem;margin-bottom:1rem}.ev-history td{display:block;min-width:0;border:0;padding:0;white-space:normal}.ev-history td:first-child,.ev-history td:last-child{grid-column:1/-1}.ev-history .ev-file-label{min-width:0;max-width:none;font-size:1rem;font-weight:600}.ev-history .ev-cell-note{font-size:.875rem}.ev-history td:nth-child(2)::before{content:'นำเข้าเมื่อ'}.ev-history td:nth-child(3)::before{content:'ข้อมูลครบช่วง'}.ev-history td:nth-child(4)::before{content:'รายการต้นทาง'}.ev-history td:nth-child(5)::before{content:'สถานะ'}.ev-history td:nth-child(n+2):nth-child(-n+5)::before{display:block;color:var(--muted);font-size:.8125rem;margin-bottom:.3rem}.ev-history .ev-batch-actions{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;border-top:1px solid var(--line);padding-top:.8rem}}
@media(max-width:650px){.ev-page h1{font-size:1.75rem}.ev-page h2,.ev-dialog h2{font-size:1.125rem}.ev-card-head h2{font-size:1.125rem}.ev-metric{padding:1rem .75rem}.ev-metric-label{font-size:.875rem;gap:.3rem;align-items:start;min-height:2.75rem}.ev-metric-label .ev-info{width:1.5rem;height:1.5rem;min-width:1.5rem;font-size:.8125rem}.ev-metric-value strong{font-size:clamp(1.125rem,5.8vw,1.5rem)}.ev-metric>small{font-size:.8125rem}.ev-unit{font-size:.875rem}.ev-comparison{padding:1rem}.ev-comparison-fields{display:grid;grid-template-columns:1fr 1fr}.ev-comparison-fields>.ev-field:first-child{min-width:0;grid-column:1/-1}.ev-hour-summaries{grid-template-columns:1fr;gap:.75rem}.ev-hour-summary>strong{font-size:1.25rem}.ev-hour-legend>span:last-child{margin-left:0}.ev-coverage p{font-size:.875rem}.ev-daily-chart .ev-bars{gap:3px}.ev-day-bar small{font-size:.6875rem}.ev-footnote{font-size:.8125rem}.ev-table td,.ev-table th{padding:.75rem .65rem}.ev-battery-status{padding:.8rem}.ev-formula{font-size:1rem}.ev-info{width:1.75rem;height:1.75rem;min-width:1.75rem}.ev-page .ev-tabs{gap:1.5rem}.ev-range button{font-size:.875rem}}
