.hk-page-title {
  font-size: var(--hk-font-size-xxl);
  margin-bottom: 6px;
}

.hk-page-subtitle {
  color: var(--hk-text-muted);
  margin: 0;
}

.hk-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eef4fb 0%, #f5f7fa 100%);
}

.hk-login-shell {
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

.hk-login-card {
  background: var(--hk-surface);
  border: 1px solid var(--hk-border);
  border-radius: var(--hk-radius-lg);
  box-shadow: var(--hk-shadow-md);
  padding: 28px;
}

.hk-login-brand {
  margin-bottom: 20px;
}

.hk-login-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.hk-login-subtitle {
  color: var(--hk-text-muted);
  margin-bottom: 20px;
}

/* NEKCO / HEKCO PESC sync UI v0.2.19 */
.hk-pesc-sync-modal .modal-header {
  border-bottom-color: var(--hk-border);
}
.hk-pesc-sync-modal .progress {
  background: #eef2f7;
  border-radius: 999px;
}
.hk-pesc-sync-modal .progress-bar {
  border-radius: 999px;
}
.hk-pesc-sync-inline-note {
  color: var(--hk-text-muted);
  font-size: var(--hk-font-size-sm);
}

/* NEKCO / HEKCO Electricity readings chart v0.2.32 */
.hk-electric-chart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 160px;
  padding: 12px 2px 2px;
}
.hk-electric-chart__item {
  flex: 1 1 0;
  min-width: 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  color: var(--hk-text);
  text-decoration: none;
  border-radius: var(--hk-radius-md);
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.hk-electric-chart__item:hover {
  background: rgba(37, 99, 235, .06);
  border-color: rgba(37, 99, 235, .18);
  transform: translateY(-1px);
}
.hk-electric-chart__item.is-active {
  background: rgba(37, 99, 235, .09);
  border-color: rgba(37, 99, 235, .35);
}
.hk-electric-chart__bar {
  width: 72%;
  min-height: 4px;
  display: block;
  border-radius: 10px 10px 3px 3px;
  background: var(--bs-primary);
  opacity: .82;
}
.hk-electric-chart__item.is-active .hk-electric-chart__bar,
.hk-electric-chart__item:hover .hk-electric-chart__bar {
  opacity: 1;
}
.hk-electric-chart__item.is-empty .hk-electric-chart__bar {
  opacity: .28;
}
.hk-electric-chart__value {
  min-height: 16px;
  font-size: 11px;
  line-height: 1;
  color: var(--hk-text-muted);
  font-weight: 700;
  white-space: nowrap;
}
.hk-electric-chart__label {
  font-size: 12px;
  color: var(--hk-text-muted);
}
.hk-electric-chart__item.is-active .hk-electric-chart__label {
  color: var(--bs-primary);
  font-weight: 800;
}
@media (max-width: 768px) {
  .hk-electric-chart {
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .hk-electric-chart__item {
    flex: 0 0 56px;
  }
}

/* NEKCO / HEKCO Electricity readings tariff grouping v0.2.35 */
.hk-tariff-lines {
  display: grid;
  gap: 2px;
  min-width: 135px;
}
.hk-tariff-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  line-height: 1.35;
}
.hk-tariff-line__label {
  color: var(--hk-text-muted);
  font-weight: 700;
}
.hk-tariff-line__value {
  font-weight: 700;
}
.hk-tariff-line--total {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--hk-border);
}
