@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
}

:root {
  /* Bāze - dziļi zilgani pelēka, nakts */
  --bg:            #0E1620;
  --surface:       #17212D;   /* kartes */
  --surface-2:     #1E2A38;   /* ievadlauki, neaktīvi slēdži, grafiku fons */
  --line:          #2A3846;   /* 1px robežas */
  --line-soft:     #223040;   /* grafiku režģis */

  /* Teksts */
  --text:          #E8EEF4;
  --text-muted:    #93A4B4;   /* kartes virsraksti, ass paraksti */
  --text-dim:      #64778A;   /* metadati, kājene */

  /* Semantika */
  --sun:           #F2A93B;   /* zīmols + saules ražošana */
  --sun-hi:        #FFC061;   /* hover */
  --sun-soft:      rgba(242,169,59,.14);  /* laukuma pildījums zem līknes */

  --energy:        #4CC98F;   /* aktīvs, no saules, lēta stunda */
  --energy-hi:     #6BE0A8;
  --energy-soft:   rgba(76,201,143,.12);

  --info:          #4EA8F5;   /* tagad, neitrāla informācija */
  --info-soft:     rgba(78,168,245,.14);

  --alert:         #F2685C;   /* bloķēts, dārgs, kļūda */
  --alert-hi:      #FF8175;

  /* Jaudas skala 0 līdz 5 kW. Augšgals = --sun un --sun-hi */
  --pw-0: #445465;
  --pw-1: #5C5B78;
  --pw-2: #8C6379;
  --pw-3: #C47A5E;
  --pw-4: #F2A93B;
  --pw-5: #FFC061;

  /* Sprieguma skala 49.0 līdz 53.5 V. Gali = --alert un --energy */
  --v-crit: #C9302A;
  --v-off:  #F2685C;
  --v-low:  #E8843C;
  --v-mid:  #E6C84A;
  --v-ok:   #A9CF6A;
  --v-full: #4CC98F;
  --v-max:  #6BE0A8;
  --v-danger-soft: rgba(201, 48, 42, 0.10);
  --night-veil:    rgba(14, 22, 32, 0.45);

  /* Forma */
  --r-card:        14px;
  --r-control:     10px;
  --r-pill:        999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --border:        1px solid var(--line);

  /* Tipogrāfija */
  --font-ui:   "IBM Plex Sans", system-ui, sans-serif;
  --font-num:  "IBM Plex Mono", ui-monospace, monospace;
}
