:root {
  --deep: #07383d;
  --deep-2: #0e5054;
  --ink: #17383b;
  --muted: #6f8383;
  --line: #dbe6e2;
  --page: #f3f7f5;
  --white: #fff;
  --orange: #ff6847;
  --green: #2ca773;
  --shadow: 0 9px 28px rgba(14, 61, 60, .055);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }
.loading, .noscript { padding: 40px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 225px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 25px 15px 19px; background: var(--deep); color: #d6e8e4; z-index: 5; }
.brand { display: flex; align-items: baseline; gap: 6px; margin: 0 12px 33px; color: white; text-decoration: none; font-size: 28px; font-weight: 750; letter-spacing: -.075em; line-height: 1; }
.brand i { color: var(--orange); font-style: normal; }
.brand small { margin-left: 8px; color: #9ec1bb; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nav-caption { margin: 17px 12px 9px; color: #84adaa; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 12px; border-radius: 7px; color: #d6e8e4; font-size: 12px; font-weight: 700; text-decoration: none; }
.nav a:hover { background: #16494d; }
.nav a.active { background: #1a5357; color: #fff; box-shadow: inset 3px 0 var(--orange); }
.nav-icon { width: 18px; flex: none; text-align: center; color: #9ac7bf; font-size: 16px; }
.side-footer { margin: auto 10px 0; padding: 16px 14px; border: 1px solid #578084; border-radius: 9px; color: #b9d4d0; font-size: 11px; line-height: 1.55; }
.side-footer strong { display: block; margin-bottom: 4px; color: #fff; font-size: 12px; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 12px 30px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar-title small { display: block; margin-bottom: 3px; color: #70898a; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar-title strong { color: #18383c; font-size: 16px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; color: #9e6334; font-size: 11px; font-weight: 800; white-space: nowrap; }
.demo-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.demo-pill.live { color: #177b4c; }
.demo-pill.live::before { background: var(--green); box-shadow: 0 0 0 3px #d8efdf; }
.role-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid #dbe7e2; border-radius: 7px; background: #f5f8f6; }
.role-switch button { padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: #6f8583; font-size: 11px; font-weight: 800; white-space: nowrap; }
.role-switch button.active { background: var(--deep-2); color: #fff; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 50%; background: #dcefe6; color: #0a6255; font-size: 11px; font-weight: 800; }
.page { max-width: 1500px; margin: 0 auto; padding: 28px 30px 60px; }
.eyebrow { color: #e15f40; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.page-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 21px; }
.page-head h1 { margin: 5px 0 5px; color: #10383c; font-size: clamp(25px, 2.7vw, 34px); line-height: 1.08; letter-spacing: -.045em; }
.page-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 13px; border: 1px solid #cfe0da; border-radius: 6px; background: #fff; color: #31585a; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.button:hover { background: #f7fbf9; }
.button.primary { border-color: var(--deep-2); background: var(--deep-2); color: white; }
.button.primary:hover { background: #0b4246; }
.button.orange { border-color: var(--orange); background: var(--orange); color: #fff; }
.button:disabled { opacity: .5; cursor: default; }
.select, .input { min-height: 36px; padding: 8px 11px; border: 1px solid #d3e2dc; border-radius: 6px; background: #fff; color: #284a4d; font-size: 11px; }
.input::placeholder { color: #9aaba8; }
.select { cursor: pointer; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 14px; }
.panel-head h2, .panel-head h3 { margin: 0; color: #173c3e; font-size: 15px; }
.panel-head small { color: #859794; font-size: 10px; }
.muted { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.operating { background: #e5f4e9; color: #177b4c; }
.status.attention { background: #fff0df; color: #a86519; }
.status.offline { background: #f9e8e6; color: #be5149; }
.status.charging { background: #e6effc; color: #346cab; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { min-height: 126px; padding: 18px; }
.kpi.emphasis { border-top: 3px solid var(--orange); }
.kpi-label { color: #738985; font-size: 11px; font-weight: 700; }
.kpi strong { display: block; margin: 12px 0 6px; color: #0b3337; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.kpi small { color: #849995; font-size: 10px; }
.ops-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(290px,.85fr); gap: 12px; margin-top: 13px; }
.alert-item { display: flex; gap: 11px; margin: 0 14px 9px; padding: 12px; border: 1px solid #f5ded1; border-radius: 7px; background: #fff9f4; }
.alert-item:last-child { margin-bottom: 15px; }
.alert-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 6px; background: #ffe5d0; color: #b86623; font-weight: 900; }
.alert-item strong { display: block; font-size: 11px; }
.alert-item p { margin: 4px 0 0; color: #80918f; font-size: 10px; }
.alert-item time { margin-left: auto; color: #8fa09d; font-size: 10px; white-space: nowrap; }
.bar-chart { height: 111px; display: flex; align-items: end; gap: 5px; padding: 6px 17px 0; }
.bar-chart span { flex: 1; min-width: 3px; height: var(--height); border-radius: 2px 2px 0 0; background: #b8d9d2; }
.bar-chart span:nth-child(3n) { background: #287678; }
.bar-chart span:nth-child(9) { background: var(--orange); }
.chart-axis { display: flex; justify-content: space-between; padding: 9px 17px 17px; color: #8a9e99; font-size: 10px; }
.table-panel { margin-top: 13px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-pills button { min-height: 29px; padding: 5px 9px; border: 1px solid #d9e6e1; border-radius: 5px; background: #fff; color: #6b8380; font-size: 10px; font-weight: 800; }
.filter-pills button.active { border-color: var(--deep-2); background: var(--deep-2); color: white; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th { padding: 12px 16px; border-top: 1px solid #e4ece8; border-bottom: 1px solid #e4ece8; background: #f9fbfa; color: #819691; font-size: 10px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
td { padding: 13px 16px; border-bottom: 1px solid #edf2ef; color: #476266; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: #173c3f; }
td small { display: block; margin-top: 3px; color: #95a7a2; font-size: 10px; }
td a { color: #0c555a; font-weight: 800; text-decoration: none; }
td a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.empty { padding: 28px; color: #819691; font-size: 12px; text-align: center; }
.customer-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(275px,.8fr); gap: 22px; align-items: stretch; }
.customer-intro { padding: 8px 0; }
.customer-intro h1 { max-width: 580px; margin: 11px 0 12px; color: #123a3d; font-size: clamp(28px,3.2vw,44px); line-height: 1.05; letter-spacing: -.055em; }
.customer-intro p { max-width: 570px; margin: 0; color: #7a8d89; font-size: 13px; line-height: 1.65; }
.availability { padding: 21px 22px; }
.availability-top { display: flex; justify-content: space-between; gap: 10px; color: #718883; font-size: 11px; font-weight: 700; }
.availability-top strong { color: #18875d; }
.availability-number { display: block; margin: 16px 0 11px; color: #123b3d; font-size: 36px; letter-spacing: -.05em; }
.availability-track { display: flex; height: 9px; gap: 3px; overflow: hidden; border-radius: 10px; background: #edf2ef; }
.availability-track span { min-width: 4px; height: 100%; }
.availability-track .green { background: #2bae75; }.availability-track .blue { background: #6094d7; }.availability-track .amber { background: #ecb65b; }.availability-track .red { background: #e98275; }
.availability-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 11px; color: #7d918b; font-size: 10px; }
.availability-foot b { color: #193f40; }
.outcome-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 24px 0; }
.outcome { position: relative; min-height: 145px; overflow: hidden; padding: 22px; }
.outcome::after { content: ""; position: absolute; right: -43px; bottom: -59px; width: 116px; height: 116px; border: 22px solid #ecf5ef; border-radius: 50%; }
.outcome:nth-child(2)::after { border-color: #f6eee7; }.outcome:nth-child(3)::after { border-color: #e9f2f1; }
.outcome span { color: #6d837e; font-size: 11px; font-weight: 700; }
.outcome strong { display: block; margin: 20px 0 5px; color: #153c3e; font-size: 28px; letter-spacing: -.045em; }
.outcome small { color: #899d96; font-size: 10px; }
.customer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.8fr); gap: 13px; }
.activity-panel { padding: 23px; }
.activity-panel h2 { margin: 0; font-size: 16px; }
.activity-panel p { margin: 4px 0 0; color: #8b9d97; font-size: 10px; }
.activity-svg { width: 100%; height: 180px; display: block; margin: 19px 0 2px; }
.activity-svg .grid { stroke: #e8eeea; stroke-width: 1; }.activity-svg .area { fill: #dcefe5; }.activity-svg .line { fill: none; stroke: #249f75; stroke-width: 3; stroke-linecap: round; }
.activity-axis { display: flex; justify-content: space-between; color: #9aaba5; font-size: 10px; }
.watch-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #ebf0ec; text-decoration: none; }
.watch-item:last-child { border-bottom: 0; }
.watch-item strong { display: block; color: #1c4445; font-size: 11px; }.watch-item small { color: #93a39e; font-size: 10px; }
.watch-item:hover strong { text-decoration: underline; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.toolbar .input { width: min(260px,100%); }
.result-count { color: #899b96; font-size: 10px; }
.detail-page { display: grid; grid-template-columns: 195px minmax(0,1fr); gap: 17px; }
.detail-side { padding: 17px 12px; height: fit-content; }
.detail-side h2 { margin: 0 9px 11px; color: #819790; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.unit-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 11px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #3a6060; text-align: left; text-decoration: none; }
.unit-link.active { border-color: #d9e8df; background: #eef7f1; }
.unit-link:hover { background: #f4faf6; }
.unit-link strong { display: block; font-size: 11px; }.unit-link small { color: #91a69c; font-size: 10px; }.unit-link i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #2aa775; }
.unit-link i.attention { background: #e3a036; }.unit-link i.offline { background: #d15d55; }.unit-link i.charging { background: #5a8dd1; }
.detail-main { min-width: 0; }
.breadcrumbs { color: #90a49e; font-size: 10px; font-weight: 700; }
.detail-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; margin: 9px 0 17px; }
.detail-head h1 { margin: 0 0 5px; color: #143c3e; font-size: 30px; letter-spacing: -.045em; }.detail-head p { margin: 0; color: #90a39e; font-size: 11px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; border-bottom: 1px solid #dbe7e0; }
.tabs a, .tabs button { flex: none; padding: 11px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #738a83; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.tabs .active { border-color: var(--orange); color: #174d4e; }
.detail-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.detail-metric { min-height: 124px; padding: 17px; }.detail-metric span { color: #879b94; font-size: 10px; font-weight: 700; }.detail-metric strong { display: block; margin: 19px 0 3px; color: #143f3f; font-size: 25px; letter-spacing: -.04em; }.detail-metric small { color: #93a49e; font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(250px,.7fr); gap: 12px; margin-top: 12px; }
.detail-panel { padding: 20px; }.detail-panel h2 { margin: 0; color: #1d4544; font-size: 14px; }.detail-panel p { color: #92a59c; font-size: 10px; }
.battery-chart { width: 100%; height: 160px; display: block; margin-top: 15px; }.battery-chart .grid { stroke: #e9f0ea; stroke-width: 1; }.battery-chart .area { fill: #e2f3e8; }.battery-chart .line { fill: none; stroke: #35a76d; stroke-width: 3; }.battery-chart .threshold { stroke: #f59668; stroke-width: 2; stroke-dasharray: 5 5; }
.chart-legend { display: flex; gap: 14px; margin-top: 6px; color: #94a59d; font-size: 10px; }.chart-legend b { color: #35a76d; }.chart-legend b.orange { color: #f59668; }
.health-row { display: flex; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf2ee; font-size: 11px; }.health-row:last-child { border-bottom: 0; }.health-row span { color: #81988e; }.health-row strong { color: #205447; }.health-row strong.warn { color: #b2782a; }
.event-row { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid #edf2ee; }.event-row:last-child { border-bottom: 0; }.event-row time { width: 45px; flex: none; color: #94a59d; font-size: 10px; }.event-row strong { display: block; font-size: 11px; }.event-row small { color: #95a7a0; font-size: 10px; }
.spec-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 16px; }.spec-grid div { padding: 12px; border: 1px solid #e1ebe5; border-radius: 6px; background: #f8fbf8; }.spec-grid span { display: block; margin-bottom: 6px; color: #92a69d; font-size: 10px; }.spec-grid strong { font-size: 11px; }
.status-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 18px; border-bottom: 1px solid #e2ebe6; }.status-tabs button { flex: none; padding: 12px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #66827a; font-size: 11px; font-weight: 700; }.status-tabs button.active { border-color: var(--orange); color: #184a49; }.status-tabs small { margin-left: 4px; padding: 2px 5px; border: 1px solid #dbe8df; border-radius: 4px; }
.variable-table { min-width: 480px; }.variable-table th { display: none; }.variable-table td { padding: 11px 17px; }.variable-table td:last-child { color: #173f3e; font-weight: 800; }
.history-chart { display: flex; align-items: end; gap: 10px; height: 188px; padding: 25px 18px 0; }.history-chart div { flex: 1; display: flex; align-items: end; gap: 3px; height: 100%; }.history-chart span { flex: 1; height: var(--height); background: #52af8a; border-radius: 3px 3px 0 0; }.history-chart span:nth-child(2) { background: #a9d5c1; }.history-axis { display: flex; justify-content: space-between; padding: 9px 18px 18px; color: #8fa39b; font-size: 10px; }
.config-layout { display: grid; grid-template-columns: 225px minmax(0,1fr); gap: 12px; }.config-menu { padding: 14px; }.config-menu h2 { margin: 0 6px 9px; font-size: 13px; }.config-menu button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 8px; border: 0; border-radius: 5px; background: transparent; color: #486761; text-align: left; font-size: 11px; }.config-menu button.active { background: #eaf4ef; color: #126251; font-weight: 800; }.config-menu button:hover { background: #f2f8f4; }
.config-main { padding: 20px; min-height: 320px; }.config-main h2 { margin: 0 0 19px; font-size: 14px; }.config-row { display: grid; grid-template-columns: minmax(140px,1fr) 100px 65px 75px; align-items: center; gap: 10px; max-width: 570px; margin-bottom: 12px; color: #3d5e5b; font-size: 11px; }.config-row strong, .config-row input { padding: 8px 9px; border: 1px solid #dce9e1; border-radius: 4px; background: #fff; color: #214942; font-size: 11px; }.config-row input { width: 100%; border-color: #8cc9ab; }.config-row small { color: #8fa49a; }
.save-status { margin-top: 12px; padding: 14px 17px; }.save-status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }.save-status-head strong { color: #184a49; font-size: 12px; }.save-status-head small { color: #8fa49a; font-size: 11px; }.save-status p { margin: 9px 0 0; color: #3d5e5b; font-size: 11px; line-height: 1.5; }.save-status .save-detail { color: #996825; }.config-row .requested { margin-left: 5px; color: #346cab; white-space: nowrap; }
.inline-note { color: #8a9c96; font-size: 11px; line-height: 1.5; }.notice { padding: 12px 14px; border: 1px solid #f1dec4; border-radius: 7px; background: #fffaf2; color: #996825; font-size: 11px; line-height: 1.5; }
.report-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }.report-summary .panel { padding: 17px; }.report-summary span { color: #7d918b; font-size: 10px; }.report-summary strong { display: block; margin-top: 9px; font-size: 24px; }
.toast { position: fixed; right: 19px; bottom: 19px; max-width: 350px; padding: 13px 16px; border-radius: 7px; background: #0b4044; color: #fff; box-shadow: 0 12px 28px #0b363744; font-size: 12px; z-index: 10; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--page); }
.login-card { display: grid; gap: 6px; width: min(380px, 100%); padding: 30px 28px; }
.login-brand { color: var(--deep); font-size: 26px; font-weight: 750; letter-spacing: -.075em; line-height: 1; }
.login-brand i { color: var(--orange); font-style: normal; }
.login-brand small { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.login-card h1 { margin: 20px 0 8px; color: #10383c; font-size: 24px; letter-spacing: -.03em; }
.login-card label { margin-top: 10px; color: #476266; font-size: 11px; font-weight: 800; }
.login-card .input { width: 100%; min-height: 42px; font-size: 16px; }
.login-card .button { min-height: 42px; margin-top: 18px; font-size: 13px; }
.login-error { margin: 10px 0 0; color: #be5149; font-size: 12px; line-height: 1.45; }
@media (max-width: 1200px) { .kpi-grid, .detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.ops-grid, .customer-grid, .detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .app-shell { display: block; }.sidebar { position: sticky; height: auto; min-height: 64px; flex-direction: row; align-items: center; gap: 14px; padding: 8px 14px; }.brand { margin: 0; font-size: 23px; }.brand small,.nav-caption,.side-footer { display: none; }.nav { display: flex; overflow-x: auto; gap: 2px; }.nav a { min-height: 39px; padding: 8px 10px; white-space: nowrap; }.topbar { top: 64px; }.detail-page { grid-template-columns: minmax(0,1fr); }.detail-side { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 10px; }.detail-side h2 { flex: none; margin: 0 8px; }.unit-link { min-width: 140px; }.config-layout { grid-template-columns: 1fr; }.config-menu { display: flex; align-items: center; gap: 5px; overflow-x: auto; }.config-menu h2 { flex: none; margin: 0 10px 0 2px; }.config-menu button { width: auto; flex: none; white-space: nowrap; } }
@media (max-width: 650px) { .sidebar { flex-wrap: wrap; }.nav { width: 100%; }.topbar { position: static; flex-wrap: wrap; padding: 11px 16px; }.topbar-right { width: 100%; justify-content: space-between; }.page { padding: 20px 14px 40px; }.customer-hero,.outcome-grid { grid-template-columns: 1fr; }.outcome { min-height: 115px; }.outcome strong { margin-top: 13px; }.kpi-grid,.detail-metrics,.report-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.kpi,.detail-metric { min-height: 105px; padding: 14px; }.kpi strong,.detail-metric strong { font-size: 23px; }.page-head { align-items: start; }.spec-grid { grid-template-columns: 1fr; }.config-row { grid-template-columns: minmax(100px,1fr) 72px 39px 55px; gap: 5px; }.panel-head { align-items: start; flex-wrap: wrap; } }
@media (max-width: 400px) { .demo-pill { display: none; }.role-switch { width: 100%; }.role-switch button { flex: 1; }.status { font-size: 9px; }.bar-chart { gap: 3px; }.outcome-grid { gap: 9px; } }
