:root {
  color-scheme: light;
  --primary: #f15a24;
  --primary-hover: #d94e1f;
  --primary-light: #fef0eb;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --surface-muted: #eeeeee;
  --line: #e2e2e2;
  --line-strong: #cccccc;
  --text: #1a1a1a;
  --text-soft: #666666;
  --text-dim: #999999;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --green-bg: #ecfdf3;
  --green-text: #16a34a;
  --amber-bg: #fffbeb;
  --amber-text: #d97706;
  --blue-bg: #eff6ff;
  --blue-text: #2563eb;
  --red-bg: #fef2f2;
  --red-text: #dc2626;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.page-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: var(--sp-5) 0 var(--sp-10);
}

.page-shell > *,
.layout-grid > *,
.stack-grid > *,
.stack-grid--split > *,
.stack-grid--trend > *,
.detail-grid > *,
.zone-grid > *,
.history-grid > *,
.metric-grid > * {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 16px;
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  justify-self: start;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid #f7c9b5;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.brand-text {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.topnav {
  display: inline-flex;
  justify-self: center;
  gap: var(--sp-5);
  align-items: center;
}

.topnav-link {
  padding: var(--sp-1) 0;
  color: var(--text-soft);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}

.topnav-link.is-active,
.topnav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.weather-chip {
  justify-self: end;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.weather-chip strong {
  font-size: 0.92rem;
}

.weather-chip span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.topbar-side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.session-chip {
  min-height: 42px;
  padding: 0 var(--sp-4);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 600;
}

.session-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.hero-card,
.card,
.kpi-card,
.module-card,
.empty-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: var(--sp-8);
}

.eyebrow,
.meta-label {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: var(--sp-3) 0 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  margin-top: var(--sp-4);
  color: var(--text-soft);
  max-width: 44ch;
}

.kpi-panel {
  display: grid;
  gap: var(--sp-4);
}

.kpi-card {
  min-height: 164px;
  padding: var(--sp-5);
  display: grid;
  align-content: space-between;
}

.kpi-value {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.kpi-caption {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.layout-grid {
  display: grid;
  gap: var(--sp-4);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

.module-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-grid--compact .module-card {
  min-height: 168px;
}

.module-card {
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
  min-height: 200px;
  align-content: start;
  transition: transform 140ms ease, border-color 140ms ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: #f5b196;
}

.module-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.35rem;
}

.module-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.module-copy {
  color: var(--text-soft);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.module-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-meta.is-live {
  background: var(--green-bg);
  color: var(--green-text);
}

.module-meta.is-staged {
  background: var(--amber-bg);
  color: var(--amber-text);
}

.module-meta.is-error {
  background: var(--red-bg);
  color: var(--red-text);
}

.module-meta.is-muted {
  background: var(--surface-muted);
  color: var(--text-soft);
}

.section-card {
  padding: var(--sp-5);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: var(--sp-2) 0 0;
  color: var(--text-soft);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.subnav-link {
  min-height: 38px;
  padding: 0 var(--sp-4);
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease,
    background-color 140ms ease;
}

.subnav-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.subnav-link.is-active {
  background: var(--primary-light);
  border-color: #f7c9b5;
  color: var(--primary);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.metric-pill {
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.metric-pill strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.metric-pill span {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.empty-card {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: var(--sp-6);
  color: var(--text-dim);
  text-align: center;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  min-width: 0;
}

.status-tile {
  flex: 1 1 220px;
  padding: var(--sp-4);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.status-tile strong {
  display: block;
  margin-top: var(--sp-2);
}

.status-ok {
  color: var(--green-text);
}

.status-pending {
  color: var(--amber-text);
}

.status-error {
  color: var(--red-text);
}

.footer-note {
  margin-top: var(--sp-4);
  color: var(--text-dim);
  font-size: 0.83rem;
}

.auth-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
  padding: var(--sp-8);
  display: grid;
  gap: var(--sp-5);
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.04em;
}

.auth-card p {
  margin: 0;
  color: var(--text-soft);
}

.auth-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.auth-note {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.section-head--sub {
  margin-top: var(--sp-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease,
    color 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--primary);
  color: #fff;
}

.button--primary:hover {
  background: var(--primary-hover);
}

.button--secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.button--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-4);
}

.inline-note {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.notice {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--text-soft);
}

.notice--error {
  border-color: var(--red-text);
  background: var(--red-bg);
  color: var(--red-text);
}

.detail-grid,
.zone-grid,
.history-grid {
  display: grid;
  gap: var(--sp-4);
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card,
.zone-card,
.history-card,
.event-item {
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.detail-card strong,
.zone-card strong,
.history-card strong,
.event-item strong {
  display: block;
  margin-top: var(--sp-2);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.detail-card span,
.zone-card span,
.history-card span,
.event-item span,
.event-item small {
  display: block;
  margin-top: var(--sp-1);
  color: var(--text-soft);
}

.event-item__actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.zone-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--sp-4);
}

.history-range {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.history-range__button {
  min-height: 34px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
}

.history-range__button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.history-range__button.is-active {
  background: var(--primary-light);
  border-color: #f7c9b5;
  color: var(--primary);
}

.history-chart {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.history-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.history-chart__head strong {
  display: block;
  font-size: 1.05rem;
}

.history-chart__head span {
  display: block;
  margin-top: var(--sp-1);
  color: var(--text-soft);
}

.history-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: flex-end;
}

.history-chart__legend span,
.history-summary-card__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.history-chart__legend i,
.history-summary-card__label i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
}

.history-chart__svg {
  display: block;
  width: 100%;
  height: 280px;
  overflow: visible;
}

.history-chart__axis {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  color: var(--text-dim);
  font-size: 0.82rem;
}

.history-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--sp-4);
}

.history-summary-card__label {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.snapshot-frame {
  margin-top: var(--sp-5);
}

.snapshot-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-muted);
}

.ring-live-frame {
  display: grid;
  gap: var(--sp-4);
}

.ring-live-player {
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(255, 141, 26, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.96), rgba(26, 26, 30, 0.94));
  box-shadow: var(--shadow);
}

.event-list {
  display: grid;
  gap: var(--sp-3);
}

.detail-grid--ring-analytics {
  margin-top: var(--sp-4);
}

.ring-activity-card {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.ring-activity-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.ring-activity-card__head strong {
  display: block;
  font-size: 1.02rem;
}

.ring-activity-card__head span {
  color: var(--text-soft);
}

.ring-activity-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: var(--sp-3);
  align-items: end;
  min-height: 220px;
}

.ring-activity-day {
  display: grid;
  gap: var(--sp-2);
  align-items: end;
  justify-items: center;
}

.ring-activity-day__value {
  font-family: "Roboto Mono", monospace;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.ring-activity-day__label {
  color: var(--text-soft);
  font-size: 0.82rem;
  text-align: center;
}

.ring-activity-bar {
  width: 100%;
  max-width: 54px;
  min-height: 20px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ring-activity-bar__ding,
.ring-activity-bar__motion {
  display: block;
  width: 100%;
}

.ring-activity-bar__ding {
  background: linear-gradient(180deg, #ffb663 0%, #ff8e1c 100%);
}

.ring-activity-bar__motion {
  background: linear-gradient(180deg, #f07c7c 0%, #e15555 100%);
}

.ring-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}

.ring-event-card {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.ring-event-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.ring-event-card__head strong {
  display: block;
  margin-top: var(--sp-1);
  font-size: 1rem;
}

.ring-event-card__eyebrow {
  color: var(--primary);
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ring-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.ring-event-card__thumb {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.ring-event-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ring-event-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.ring-event-card small {
  color: var(--text-soft);
}

.gg-stack {
  display: grid;
  gap: var(--sp-4);
}

.gg-card {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.gg-card__content {
  min-width: 0;
}

.gg-copy-stack {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.gg-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.gg-preview {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.gg-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: flex-end;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.bonus-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.bonus-card__media img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.bonus-card__body {
  min-width: 0;
}

.bonus-card__body strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.bonus-card__body span,
.bonus-card__price small {
  display: block;
  margin-top: var(--sp-1);
  color: var(--text-soft);
}

.bonus-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: var(--sp-2);
  padding: 0 var(--sp-2);
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.bonus-card__price {
  margin-top: var(--sp-3);
}

.bonus-card__price strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.stack-grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

.stack-grid--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-grid--trend {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.section-subcard {
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.prose-block {
  display: grid;
  gap: var(--sp-3);
}

.prose-block p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.subcard-title {
  margin: var(--sp-2) 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.subcard-copy {
  margin: var(--sp-2) 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.filter-bar {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-4);
  min-width: 0;
}

.filter-bar__fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.filter-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.filter-tag {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.metric-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eneco-shell {
  display: grid;
  gap: var(--sp-4);
}

.eneco-toolbar,
.eneco-surface__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}

.eneco-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
}

.eneco-period-pill,
.eneco-profile-pill,
.eneco-connection-pill {
  min-height: 42px;
  padding: 0 var(--sp-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
}

.eneco-profile-pill {
  width: 42px;
  justify-content: center;
  padding: 0;
  background: linear-gradient(135deg, #ff8d1a 0%, #f15a24 100%);
  color: #fff;
  border-color: transparent;
}

.eneco-connection-pill {
  color: var(--text);
}

.eneco-connection-pill i,
.eneco-status-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  background: var(--line-strong);
}

.eneco-connection-pill--success i,
.eneco-status-chip--ok .eneco-status-chip__dot {
  background: var(--green-text);
}

.eneco-connection-pill--warning i,
.eneco-status-chip--warning .eneco-status-chip__dot {
  background: var(--amber-text);
}

.eneco-connection-pill--neutral i,
.eneco-status-chip--neutral .eneco-status-chip__dot {
  background: var(--text-dim);
}

.eneco-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-3);
}

.eneco-kpi-card,
.eneco-surface,
.eneco-empty-card,
.eneco-warning-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eneco-kpi-card {
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
}

.eneco-kpi-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.eneco-kpi-card__body {
  min-width: 0;
}

.eneco-kpi-card__label {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.eneco-kpi-card__value {
  display: block;
  margin-top: var(--sp-2);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.eneco-kpi-card__meta {
  display: block;
  margin-top: var(--sp-2);
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.eneco-kpi-card--energy .eneco-kpi-card__icon {
  background: rgba(241, 90, 36, 0.12);
  color: var(--primary);
}

.eneco-kpi-card--forecast .eneco-kpi-card__icon {
  background: rgba(255, 141, 26, 0.14);
  color: #ff8d1a;
}

.eneco-kpi-card--positive .eneco-kpi-card__icon,
.eneco-kpi-card--success .eneco-kpi-card__icon {
  background: rgba(22, 163, 74, 0.14);
  color: var(--green-text);
}

.eneco-kpi-card--warning .eneco-kpi-card__icon {
  background: rgba(217, 119, 6, 0.14);
  color: var(--amber-text);
}

.eneco-kpi-card--neutral .eneco-kpi-card__icon {
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue-text);
}

.eneco-warning-stack {
  display: grid;
  gap: var(--sp-3);
}

.eneco-warning-card,
.eneco-empty-card {
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}

.eneco-warning-card strong,
.eneco-empty-card strong {
  font-size: 1rem;
}

.eneco-warning-card span,
.eneco-empty-card span {
  color: var(--text-soft);
  line-height: 1.6;
}

.eneco-warning-card--error {
  border-color: rgba(220, 38, 38, 0.26);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.05), rgba(220, 38, 38, 0.02));
}

.eneco-warning-card--warning {
  border-color: rgba(217, 119, 6, 0.26);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.05), rgba(217, 119, 6, 0.02));
}

.eneco-warning-card--info {
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), rgba(37, 99, 235, 0.02));
}

.eneco-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: var(--sp-4);
}

.eneco-bottom-grid,
.eneco-grid-2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

.eneco-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eneco-surface {
  padding: var(--sp-5);
  min-width: 0;
}

.eneco-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.eneco-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.eneco-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.eneco-legend__dot--electricity {
  background: #ff8d1a;
}

.eneco-legend__dot--gas {
  background: #e45f5f;
}

.eneco-legend__dot--fixed {
  background: #cfd3da;
}

.eneco-legend__dot--forecast {
  background: linear-gradient(90deg, #7c7f8a 0%, #7c7f8a 100%);
}

.eneco-trend-chart,
.eneco-weather-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--sp-4);
}

.eneco-bar-chart {
  position: relative;
  padding-left: 68px;
  min-height: 332px;
  margin-top: var(--sp-4);
}

.eneco-bar-chart__axis {
  position: absolute;
  inset: var(--sp-6) 0 26px 0;
  pointer-events: none;
}

.eneco-bar-chart__grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.eneco-bar-chart__grid-line:first-child {
  border-top-style: solid;
}

.eneco-bar-chart__grid-label {
  position: absolute;
  top: -0.7rem;
  left: 0;
  color: var(--text-dim);
  font-size: 0.76rem;
  font-family: "Roboto Mono", monospace;
}

.eneco-bar-chart__bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: var(--sp-4);
  align-items: end;
  padding-top: 0;
  min-height: 332px;
}

.eneco-bar-chart__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  border-top: 1px solid var(--line);
}

.eneco-bar-chart__column {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--sp-2);
  align-content: stretch;
  justify-items: center;
  min-width: 0;
  min-height: 300px;
}

.eneco-bar-chart__value-chip {
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 250, 0.92));
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.eneco-bar-chart__value-chip strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.eneco-bar-chart__value-chip span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.68rem;
}

.eneco-bar-chart__bar-wrap {
  position: relative;
  width: min(84px, 100%);
  height: 100%;
  min-height: 210px;
  display: flex;
  align-items: end;
}

.eneco-bar-chart__stack {
  position: relative;
  width: 100%;
  min-height: 8px;
  border-radius: 22px 22px 14px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(247, 248, 250, 0.92), rgba(238, 241, 245, 0.9));
  border: 1px solid rgba(23, 23, 23, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 20px rgba(15, 23, 42, 0.07);
}

.eneco-bar-chart__segment {
  position: absolute;
  left: 0;
  right: 0;
}

.eneco-bar-chart__segment--electricity {
  bottom: 0;
  background: linear-gradient(180deg, #ffb454 0%, #ff8d1a 100%);
}

.eneco-bar-chart__segment--gas {
  background: linear-gradient(180deg, #ec7474 0%, #e45f5f 100%);
}

.eneco-bar-chart__segment--fixed {
  background: linear-gradient(180deg, #dfe3ea 0%, #cfd5df 100%);
}

.eneco-bar-chart__forecast-cap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-bottom: 2px dashed rgba(124, 127, 138, 0.72);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(124, 127, 138, 0.12),
      rgba(124, 127, 138, 0.12) 8px,
      rgba(124, 127, 138, 0.04) 8px,
      rgba(124, 127, 138, 0.04) 16px
    );
}

.eneco-bar-chart__column--current .eneco-bar-chart__value-chip {
  border-color: rgba(255, 141, 26, 0.24);
  box-shadow: 0 10px 28px rgba(255, 141, 26, 0.14);
}

.eneco-bar-chart__label {
  padding-top: var(--sp-1);
  color: var(--text-soft);
  font-size: 0.82rem;
  text-align: center;
  min-height: 20px;
}

.eneco-inline-note {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.05);
  color: var(--text-soft);
  line-height: 1.55;
}

.eneco-forecast-rows {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

.eneco-forecast-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 110px;
  gap: var(--sp-3);
  align-items: center;
}

.eneco-forecast-row__meta strong,
.eneco-forecast-row__value strong {
  display: block;
}

.eneco-forecast-row__meta small,
.eneco-forecast-row__value small {
  color: var(--text-soft);
}

.eneco-forecast-row__bar {
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-muted), var(--surface-soft));
  overflow: hidden;
  position: relative;
}

.eneco-forecast-row__fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-md);
}

.eneco-forecast-row__fill--linear {
  background: linear-gradient(90deg, rgba(255, 141, 26, 0.18), rgba(255, 141, 26, 0.36));
}

.eneco-forecast-row__fill--forecast {
  background: linear-gradient(90deg, #ffb454 0%, #ff8d1a 100%);
}

.eneco-forecast-row__fill--benchmark {
  background: linear-gradient(90deg, #d9f1bf 0%, #9ad95e 100%);
}

.eneco-forecast-row__value {
  text-align: right;
}

.eneco-forecast-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.eneco-forecast-footer strong {
  display: block;
  font-size: 1.05rem;
}

.eneco-forecast-footer span {
  display: block;
  margin-top: var(--sp-1);
  color: var(--text-soft);
}

.eneco-mix-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-4);
}

.eneco-donut {
  --eneco-donut: #d7d9de 0deg 360deg;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: conic-gradient(var(--eneco-donut));
  position: relative;
  display: grid;
  place-items: center;
}

.eneco-donut::after {
  content: "";
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.eneco-donut__center {
  position: absolute;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--sp-1);
}

.eneco-donut__center span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.eneco-donut__center strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.eneco-mix-legend {
  display: grid;
  gap: var(--sp-3);
}

.eneco-mix-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.eneco-mix-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.eneco-mix-row__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.eneco-mix-row__label i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.eneco-mix-row__value {
  text-align: right;
}

.eneco-mix-row__value strong,
.eneco-mini-stat strong {
  display: block;
}

.eneco-mix-row__value small,
.eneco-mini-stat span {
  color: var(--text-soft);
}

.eneco-benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.eneco-mini-stat {
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.eneco-mini-stat__label {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.eneco-skeleton {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.09), rgba(0, 0, 0, 0.04));
  background-size: 200% 100%;
  animation: enecoShimmer 1.4s linear infinite;
}

.eneco-skeleton--icon {
  width: 52px;
  height: 52px;
}

.eneco-skeleton--label {
  width: 90px;
  height: 12px;
  margin-top: 2px;
}

.eneco-skeleton--value {
  width: 150px;
  height: 28px;
  margin-top: var(--sp-3);
}

.eneco-skeleton--meta {
  width: 100%;
  height: 14px;
  margin-top: var(--sp-3);
  border-radius: var(--radius-sm);
}

.eneco-skeleton--chart {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
}

@keyframes enecoShimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.analytics-list {
  display: grid;
  gap: var(--sp-3);
}

.analytics-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.analytics-row:last-child {
  border-bottom: 0;
}

.analytics-row strong {
  display: block;
}

.analytics-row small {
  display: block;
  color: var(--text-soft);
}

.analytics-row__value {
  text-align: right;
  min-width: 0;
}

.trend-list {
  display: grid;
  gap: var(--sp-3);
}

.trend-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 160px;
  gap: var(--sp-3);
  align-items: center;
}

.trend-row__meta strong,
.trend-row__value strong {
  display: block;
}

.trend-row__meta small,
.trend-row__value small {
  color: var(--text-soft);
}

.trend-row__value {
  text-align: right;
  min-width: 0;
}

.trend-bar {
  height: 14px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.trend-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8b79a 0%, var(--primary) 100%);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
}

.receipt-list {
  display: grid;
  gap: var(--sp-3);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.receipt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  color: var(--text-soft);
  font-size: 0.86rem;
}

.receipt-side {
  text-align: right;
}

.warehouse-frame-wrap {
  min-width: 0;
  min-height: 76vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.warehouse-frame {
  display: block;
  width: 100%;
  min-height: 76vh;
  border: 0;
  background: var(--surface-soft);
}

.form-grid {
  display: grid;
  gap: var(--sp-4);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field span {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  min-height: 44px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.field textarea {
  min-height: 180px;
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.field input:focus {
  outline: 2px solid rgba(241, 90, 36, 0.24);
  border-color: var(--primary);
}

.field textarea:focus {
  outline: 2px solid rgba(241, 90, 36, 0.24);
  border-color: var(--primary);
}

@media (max-width: 1024px) {
  .hero,
  .stack-grid--split,
  .stack-grid--trend,
  .history-summary-grid {
    grid-template-columns: 1fr;
  }

  .trend-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .module-grid,
  .bonus-grid,
  .detail-grid,
  .metric-grid,
  .history-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-grid--two,
  .zone-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .eneco-kpi-grid,
  .eneco-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eneco-board,
  .eneco-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
    padding: var(--sp-4) 0 var(--sp-8);
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: var(--sp-3);
  }

  .topnav {
    width: 100%;
    justify-self: stretch;
    gap: var(--sp-3);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topbar-side {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hero-card,
  .kpi-card,
  .module-card,
  .section-card {
    padding: var(--sp-4);
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .module-grid,
  .module-grid--two,
  .bonus-grid,
  .detail-grid,
  .zone-grid,
  .history-summary-grid,
  .metric-grid,
  .stack-grid--split,
  .stack-grid--trend,
  .eneco-kpi-grid,
  .eneco-bottom-grid,
  .eneco-grid-2,
  .eneco-benchmark-grid,
  .eneco-forecast-footer {
    grid-template-columns: 1fr;
  }

  .section-head,
  .action-row,
  .eneco-toolbar,
  .eneco-surface__head {
    flex-direction: column;
    align-items: stretch;
  }

  .history-chart__head {
    flex-direction: column;
    align-items: stretch;
  }

  .history-chart__legend {
    justify-content: flex-start;
  }

  .history-chart__svg {
    height: 220px;
  }

  .action-cluster,
  .filter-bar__fields,
  .filter-bar__actions,
  .receipt-row,
  .eneco-toolbar__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .receipt-side,
  .analytics-row__value,
  .eneco-forecast-row__value {
    text-align: left;
  }

  .gg-card,
  .gg-card__actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .bonus-card {
    grid-template-columns: 1fr;
  }

  .bonus-card__media img {
    width: 100%;
    height: 160px;
  }

  .subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--sp-1);
    scrollbar-width: none;
  }

  .subnav::-webkit-scrollbar {
    display: none;
  }

  .module-card {
    min-height: auto;
  }

  .module-title {
    font-size: 1.15rem;
  }

  .warehouse-frame-wrap,
  .warehouse-frame {
    min-height: 58vh;
  }

  .eneco-kpi-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .eneco-bar-chart {
    padding-left: 52px;
    min-height: 0;
  }

  .eneco-bar-chart__axis {
    inset: var(--sp-6) 0 26px 0;
  }

  .eneco-bar-chart__bars {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    min-height: 0;
  }

  .eneco-bar-chart__bar-wrap {
    min-height: 190px;
  }

  .eneco-kpi-card__icon {
    width: 44px;
    height: 44px;
  }

  .eneco-kpi-card__value {
    font-size: 1.45rem;
  }

  .eneco-forecast-row {
    grid-template-columns: 1fr;
  }

  .eneco-mix-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .eneco-donut {
    width: 170px;
    height: 170px;
  }

  .eneco-donut::after {
    width: 108px;
    height: 108px;
  }

  .eneco-connection-pill,
  .eneco-period-pill {
    width: 100%;
    justify-content: center;
  }

  .eneco-profile-pill {
    width: 48px;
    align-self: flex-start;
  }

  .button {
    width: 100%;
  }
}
