:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #0d1322; color: #e9f0fa; }
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(900px, 94vw); margin: 36px auto; }
header { margin-bottom: 26px; }
h1 { color: #6be3c3; font-size: 2.2rem; margin-bottom: 4px; }
header p, .hint, .status { color: #a8b8d4; }
.card { background: #17243a; border: 1px solid #2b3f59; border-radius: 18px; padding: 24px; margin: 18px 0; }
h2 { margin-top: 0; font-size: 1.2rem; }
.fields { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.fields label { display: grid; flex: 1; min-width: 160px; gap: 7px; }
input { padding: 11px; width: 100%; border-radius: 8px; border: 1px solid #63728b; background: #0c1729; color: white; }
button { cursor: pointer; padding: 12px 18px; border: 0; background: #45d6af; border-radius: 9px; font-weight: 700; }
pre { overflow-x: auto; white-space: pre-wrap; word-break: break-word; padding: 16px; background: #0c1729; border-radius: 8px; }

.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.meter { border: 1px solid #34506e; border-radius: 12px; padding: 16px; display: grid; gap: 9px; }
.meter span { font-size: 0.9rem; color: #9db3cd; }
.meter strong { font-size: 1.3rem; }

.google-login { display:inline-block; padding:12px 18px; border-radius:9px; background:#f4f7fc; color:#152033; font-weight:700; text-decoration:none; min-height:44px; }
.logout { margin-top:10px; background:#29425d; color:#e9f0fa; }
@media(max-width:600px) { .page { width:calc(100% - 24px); margin:16px auto; } .card { padding:18px; border-radius:12px; } .google-login,.logout { width:100%; text-align:center; } }


/* EasyEnergy mobile-first monitoring dashboard */
.table-scroll { overflow-x: auto; max-width: 100%; }
.readings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .88rem; }
.readings th, .readings td { padding: .7rem .6rem; text-align: left; border-bottom: 1px solid rgba(128,128,128,.22); white-space: nowrap; }
.readings th { font-weight: 700; }
.providers { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.provider { display: flex; flex-direction: column; gap: .35rem; border: 1px solid rgba(128,128,128,.22); border-radius: 12px; padding: .85rem; min-width: 0; }
.provider small { overflow-wrap: anywhere; opacity: .8; }
@media (max-width: 430px) {
  .page { width: 100%; padding: 12px; }
  .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meter { min-width: 0; }
  .meter strong { overflow-wrap: anywhere; font-size: clamp(1rem, 4.5vw, 1.45rem); }
}
