/* BlueSpring lifecycle shell. It is isolated behind body.bsx-active while
 * reusing selected components from the former proof-of-concept interface. */

@font-face {
  font-family: "Butler";
  src: url("../assets/fonts/Butler-Free-Rmn.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../assets/fonts/Butler-Free-Med.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../assets/fonts/Butler-Free-SBd.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "CODE";
  src: url("../assets/fonts/CODE-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

body.bsx-active {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #003c71;
  background: #ffffff;
}

body.bsx-active #app {
  min-height: 100vh;
}

body.bsx-active.bsx-hager-theme {
  background: #0078c4;
}

.bsx-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  background: #ffffff;
  font-family: "Butler", Georgia, serif;
}

.bsx-shell .be-wordmark {
  font-family: "Butler", Georgia, serif !important;
  font-weight: inherit !important;
  letter-spacing: 0 !important;
  text-shadow: none;
  transform: none;
}

.bsx-ambient {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(7px) saturate(0.68);
  transform: scale(1.025);
}

.bsx-wash {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.18);
}

.bsx-settings-button,
.bsx-theme-toggle {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  padding: 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 60, 113, 0.20);
  border-radius: 50%;
  color: #003c71;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 7px 22px rgba(20, 45, 66, 0.10);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.bsx-settings-button:hover,
.bsx-theme-toggle:hover {
  transform: scale(1.06);
}

.bsx-settings-button:focus-visible,
.bsx-theme-toggle:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.32);
  outline-offset: 2px;
}

.bsx-settings-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bsx-theme-toggle span {
  width: 15px;
  height: 15px;
  display: block;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

.bsx-settings-scrim {
  position: fixed;
  z-index: 68;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.bsx-settings-popover {
  position: fixed;
  z-index: 71;
  right: 20px;
  bottom: 62px;
  width: min(318px, calc(100vw - 34px));
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 60, 113, 0.16);
  border-radius: 8px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(20, 45, 66, 0.20);
  backdrop-filter: blur(16px);
}

.bsx-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bsx-settings-head strong {
  font-size: 16px;
  font-weight: 700;
}

.bsx-settings-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  font: 700 20px/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-settings-row {
  display: grid;
  gap: 5px;
  color: #55738d;
  font-size: 12px;
  font-weight: 600;
}

.bsx-settings-select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 60, 113, 0.18);
  border-radius: 6px;
  color: #003c71;
  background: #ffffff;
  font: 600 14px/1.2 "Hanken Grotesk", Arial, sans-serif;
}

.bsx-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bsx-settings-status {
  min-width: 0;
  color: #55738d;
  font-size: 12px;
}

.bsx-settings-save {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid #003c71;
  border-radius: 4px;
  color: #ffffff;
  background: #003c71;
  font: 700 13px/1 "Hanken Grotesk", Arial, sans-serif;
  cursor: pointer;
}

.bsx-settings-danger {
  padding-top: 12px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(0, 60, 113, 0.14);
}

.bsx-settings-danger > div:first-child {
  display: grid;
  gap: 3px;
}

.bsx-settings-danger strong {
  color: inherit;
  font-size: 13px;
}

.bsx-settings-danger span {
  color: #55738d;
  font-size: 12px;
  line-height: 1.35;
}

.bsx-settings-reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.bsx-settings-reset,
.bsx-settings-reset-cancel {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 60, 113, 0.24);
  border-radius: 4px;
  color: #365f83;
  background: transparent;
  font: 700 12px/1 "Hanken Grotesk", Arial, sans-serif;
  cursor: pointer;
}

.bsx-settings-reset.is-armed {
  color: #ffffff;
  border-color: #a73535;
  background: #a73535;
}

.bsx-settings-reset:disabled,
.bsx-settings-reset-cancel:disabled {
  cursor: wait;
  opacity: 0.55;
}

.bsx-settings-reset-cancel[hidden] {
  display: none;
}

.bsx-brand {
  --brand-ray-radius: 44px;
  position: fixed;
  z-index: 3;
  top: 72px;
  left: 80px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #0077b8;
  isolation: isolate;
}

.bsx-brand-orbit {
  position: absolute;
  inset: -46px;
  pointer-events: none;
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(0, 174, 239, 0.44));
  animation: bsx-logo-orbit 9.5s linear infinite;
}

.bsx-brand-ray {
  --ray-angle: 0deg;
  --ray-length: 24px;
  --ray-rest: 0.8;
  --ray-speed: 4s;
  --ray-delay: 0s;
  position: absolute;
  inset: 0;
  transform: rotate(var(--ray-angle));
}

.bsx-brand-ray::before {
  content: "";
  position: absolute;
  top: calc(50% - var(--brand-ray-radius) - var(--ray-length));
  left: 50%;
  width: 2px;
  height: var(--ray-length);
  border-radius: 999px;
  background: currentColor;
  opacity: 0.88;
  transform: translateX(-50%) scaleY(var(--ray-rest));
  transform-origin: 50% 100%;
  animation: bsx-ray-breathe var(--ray-speed) ease-in-out
    var(--ray-delay) infinite alternate;
}

.bsx-brand:is(.is-thinking, .is-commissioning) .bsx-brand-orbit {
  filter: drop-shadow(0 0 8px rgba(0, 174, 239, 0.88));
  animation-duration: 0.95s;
}

.bsx-brand:is(.is-thinking, .is-commissioning) .bsx-brand-ray::before {
  width: 4px;
  opacity: 1;
  animation: bsx-ray-thinking 0.46s ease-in-out
    var(--ray-delay) infinite alternate;
}

@keyframes bsx-logo-orbit {
  to { rotate: 1turn; }
}

@keyframes bsx-ray-breathe {
  from { transform: translateX(-50%) scaleY(var(--ray-rest)); }
  to { transform: translateX(-50%) scaleY(1); }
}

@keyframes bsx-ray-thinking {
  from { transform: translateX(-50%) scaleY(1.5); }
  to { transform: translateX(-50%) scaleY(2.45); }
}

.bsx-brand img {
  position: relative;
  z-index: 1;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: contain;
}

.bsx-account {
  position: fixed;
  z-index: 3;
  top: 29px;
  right: 32px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.bsx-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: #003c71;
  text-align: right;
}

.bsx-identity[hidden],
.bsx-electrician-home[hidden],
.bsx-history-button[hidden],
.bsx-signout[hidden] {
  display: none;
}

.bsx-identity strong {
  max-width: 250px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-identity span {
  font-size: 13px;
  opacity: 0.7;
}

.bsx-signout {
  padding: 5px 8px;
  border: 0;
  color: #003c71;
  background: transparent;
  font: 500 14px/1.2 "Butler", Georgia, serif;
  cursor: pointer;
}

.bsx-electrician-home,
.bsx-history-button {
  min-height: 38px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 60, 113, 0.22);
  border-radius: 4px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.38);
  font-size: 14px;
  cursor: pointer;
}

.bsx-electrician-home:hover,
.bsx-electrician-home:focus-visible,
.bsx-history-button:hover,
.bsx-history-button:focus-visible {
  border-color: rgba(0, 60, 113, 0.48);
  background: rgba(255, 255, 255, 0.68);
  outline: 0;
}

.bsx-signout:hover,
.bsx-signout:focus-visible {
  text-decoration: underline;
}

.bsx-journey {
  position: fixed;
  z-index: 3;
  left: 32px;
  bottom: 16px;
  width: min(450px, calc(100vw - 64px));
  display: grid;
  grid-template-columns: repeat(6, minmax(52px, 1fr));
  gap: 8px;
}

.bsx-journey[hidden] {
  display: none;
}

.bsx-journey-step {
  position: relative;
  min-height: 43px;
  display: grid;
  grid-template-rows: 14px auto;
  gap: 4px;
  color: rgba(0, 60, 113, 0.45);
}

.bsx-journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -15px;
  height: 1px;
  background: rgba(0, 60, 113, 0.18);
}

.bsx-journey-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  font: 700 8px/1 Arial, sans-serif;
}

.bsx-journey-step strong,
.bsx-journey-step small {
  display: block;
  letter-spacing: 0;
}

.bsx-journey-step strong {
  font-size: 11px;
  line-height: 1.05;
}

.bsx-journey-step small {
  margin-top: 1px;
  font-size: 9px;
  line-height: 1.1;
  opacity: 0.72;
}

.bsx-journey-step.is-complete {
  color: rgba(0, 60, 113, 0.68);
}

.bsx-journey-step.is-current {
  color: #003c71;
}

.bsx-journey-step.is-current .bsx-journey-dot {
  border-color: #003c71;
  background: #003c71;
  box-shadow: 0 0 0 4px rgba(0, 60, 113, 0.1);
}

.bsx-main {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
  align-items: center;
  gap: 0;
  padding: 116px 0 92px;
  box-sizing: border-box;
  transition: width 360ms cubic-bezier(.2, .75, .2, 1),
    grid-template-columns 360ms cubic-bezier(.2, .75, .2, 1),
    gap 360ms cubic-bezier(.2, .75, .2, 1);
}

.bsx-main.has-context {
  width: min(1380px, calc(100% - 72px));
  grid-template-columns: minmax(280px, 0.55fr) minmax(600px, 1.45fr);
  align-items: center;
  gap: 42px;
}

.bsx-main.has-context.has-workspace-context {
  width: min(1540px, calc(100% - 56px));
  grid-template-columns: minmax(300px, 0.48fr) minmax(680px, 1.52fr);
  gap: 38px;
}

.bsx-main.has-context.has-simulation-editor-context {
  width: min(1720px, calc(100% - 48px));
  grid-template-columns: minmax(330px, 0.42fr) minmax(760px, 1.58fr);
  align-items: stretch;
  gap: 24px;
  padding-top: 96px;
  padding-bottom: 48px;
}

.bsx-main.has-simulation-editor-context .bsx-conversation {
  min-height: calc(100vh - 144px);
  padding: 24px;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(0, 120, 196, 0.24);
  border-radius: 12px;
  background: linear-gradient(165deg,
    rgba(255, 255, 255, 0.88), rgba(235, 247, 253, 0.74));
  box-shadow: 0 18px 52px rgba(0, 60, 113, 0.13);
  transform: none;
}

.bsx-main.has-simulation-editor-context .bsx-conversation::before {
  content: "AI QUOTE + DESIGN";
  margin-bottom: 12px;
  color: #0078c4;
  font: 700 10px/1.2 Arial, sans-serif;
  letter-spacing: 0.14em;
}

.bsx-main.has-simulation-editor-context .bsx-question {
  font-size: 24px;
  line-height: 1.2;
}

.bsx-main.has-simulation-editor-context .bsx-context {
  max-height: calc(100vh - 144px);
  overflow: hidden;
}

.bsx-main.has-context.has-installation-context {
  width: min(1600px, calc(100% - 48px));
  grid-template-columns: minmax(220px, 0.4fr) minmax(760px, 1.6fr);
  gap: 28px;
}

.bsx-main.has-expanded-card {
  z-index: 65;
}

.bsx-main.has-expanded-card .bsx-context {
  overflow: visible;
  transform: none;
  animation: none;
}

.bsx-conversation {
  width: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateX(0);
  transition: transform 360ms cubic-bezier(.2, .75, .2, 1);
}

.bsx-main:not(.has-context) .bsx-conversation {
  align-items: center;
  text-align: center;
}

.bsx-main:not(.has-context) :is(
  .bsx-question,
  .bsx-guidance,
  .bsx-status,
  .bsx-answer-form
) {
  margin-left: auto;
  margin-right: auto;
}

.bsx-main:not(.has-context) .bsx-options,
.bsx-main:not(.has-context) .bsx-controls {
  justify-content: center;
}

.bsx-main:not(.has-context) :is(textarea, input) {
  text-align: left;
}

.bsx-main.has-context .bsx-conversation {
  transform: translateX(-10px);
}

.bsx-main.has-context .bsx-question {
  max-width: 470px;
  min-height: 44px;
  font-size: 27px;
}

.bsx-assistant-reply {
  width: min(520px, 100%);
  max-height: 290px;
  margin: 0 0 18px;
  padding: 14px 16px 15px;
  box-sizing: border-box;
  overflow-y: auto;
  border-left: 3px solid #00aeef;
  border-radius: 0 6px 6px 0;
  color: #003c71;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 30px rgba(0, 60, 113, 0.08);
  scrollbar-width: thin;
}

.bsx-assistant-reply[hidden] {
  display: none;
}

.bsx-assistant-reply > header {
  margin-bottom: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bsx-assistant-reply > header span {
  color: #0077b8;
  font-size: 12px;
  font-weight: 700;
}

.bsx-assistant-reply > header strong {
  color: #526f86;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.bsx-assistant-reply-body {
  color: inherit;
  font-size: 15px;
  line-height: 1.48;
}

.bsx-assistant-reply-body p {
  margin: 0 0 9px;
}

.bsx-assistant-reply-body p:last-child,
.bsx-assistant-reply-body .bsx-assistant-list:last-child {
  margin-bottom: 0;
}

.bsx-assistant-reply-body p.is-heading {
  font-size: 16px;
  font-weight: 700;
}

.bsx-assistant-list {
  margin: 3px 0 10px;
  padding-left: 21px;
}

.bsx-assistant-list li + li {
  margin-top: 4px;
}

.bsx-assistant-table-wrap {
  max-width: 100%;
  margin: 5px 0 11px;
  overflow-x: auto;
  border: 1px solid rgba(0, 60, 113, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.bsx-assistant-table {
  width: 100%;
  border-collapse: collapse;
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.bsx-assistant-table :is(th, td) {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 60, 113, 0.10);
  text-align: left;
  vertical-align: top;
}

.bsx-assistant-table th {
  color: #003c71;
  background: rgba(0, 119, 184, 0.07);
  font-weight: 750;
}

.bsx-assistant-table tbody tr:last-child td {
  border-bottom: 0;
}

.bsx-assistant-copy {
  font-size: 15px;
  line-height: 1.52;
}

.bsx-assistant-copy p {
  margin: 0 0 9px;
}

.bsx-assistant-copy p:last-child,
.bsx-assistant-copy .bsx-assistant-list:last-child {
  margin-bottom: 0;
}

.bsx-assistant-copy p.is-heading {
  color: #123f60;
  font-size: 16px;
  font-weight: 750;
}

.bsx-assistant-copy code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0, 119, 184, 0.09);
  font: 0.9em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.bsx-assistant-copy a {
  color: #006fae;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bsx-conversation.has-assistant-reply .bsx-question,
.bsx-main.has-context .bsx-conversation.has-assistant-reply .bsx-question {
  min-height: auto;
  max-width: 520px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.bsx-history-scrim {
  position: fixed;
  z-index: 90;
  inset: 0;
  border: 0;
  background: rgba(0, 32, 57, 0.42);
  backdrop-filter: blur(3px);
  cursor: default;
}

.bsx-history-panel {
  position: fixed;
  z-index: 91;
  top: 0;
  right: 0;
  width: min(860px, calc(100vw - 64px));
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: #003c71;
  background: #f5f8fa;
  border-left: 1px solid rgba(0, 60, 113, 0.16);
  box-shadow: -24px 0 70px rgba(0, 39, 70, 0.24);
  animation: bsx-history-enter 260ms cubic-bezier(.2, .75, .2, 1) both;
}

@keyframes bsx-history-enter {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

.bsx-history-head {
  min-height: 94px;
  padding: 22px 26px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
  background: #005b94;
}

.bsx-history-head > div {
  display: grid;
  gap: 2px;
}

.bsx-history-head span,
.bsx-history-head small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.bsx-history-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
}

.bsx-history-close {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.bsx-history-close:hover,
.bsx-history-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: 0;
}

.bsx-history-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.bsx-history-list {
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  border-right: 1px solid rgba(0, 60, 113, 0.13);
  background: #edf3f6;
}

.bsx-history-conversation {
  width: 100%;
  min-height: 64px;
  margin: 0 0 8px;
  padding: 11px 12px;
  display: grid;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #003c71;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.bsx-history-conversation strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-history-conversation span {
  color: #607b91;
  font-size: 11px;
}

.bsx-history-conversation:hover,
.bsx-history-conversation:focus-visible,
.bsx-history-conversation.is-active {
  border-color: rgba(0, 119, 184, 0.25);
  background: #ffffff;
  outline: 0;
}

.bsx-history-conversation.is-active {
  box-shadow: inset 3px 0 #00aeef;
}

.bsx-history-detail {
  min-width: 0;
  min-height: 0;
  padding: 20px 24px 26px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}

.bsx-history-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.bsx-history-detail-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-history-detail-head span {
  flex: 0 0 auto;
  color: #607b91;
  font-size: 11px;
}

.bsx-history-messages {
  min-height: 0;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.bsx-history-message {
  width: min(520px, 88%);
  padding: 11px 13px;
  box-sizing: border-box;
  border-radius: 6px;
  color: #003c71;
  background: #ffffff;
  border: 1px solid rgba(0, 60, 113, 0.13);
}

.bsx-history-message.is-user {
  align-self: flex-end;
  color: #ffffff;
  border-color: #0077b8;
  background: #0077b8;
}

.bsx-history-message > span {
  display: block;
  margin-bottom: 5px;
  color: #607b91;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.bsx-history-message.is-user > span {
  color: rgba(255, 255, 255, 0.72);
}

.bsx-history-message-content {
  font-size: 14px;
  line-height: 1.45;
}

.bsx-history-message-content p {
  margin: 0 0 7px;
}

.bsx-history-message-content p:last-child {
  margin-bottom: 0;
}

.bsx-history-empty {
  margin: 0;
  padding: 22px;
  color: #607b91;
  font-size: 14px;
}

.bsx-history-empty.is-error {
  color: #b42318;
}

.bsx-shell.is-login .bsx-main {
  width: min(520px, calc(100% - 48px));
}

.bsx-shell.is-login .bsx-conversation {
  min-height: 340px;
  align-items: center;
  text-align: center;
}

.bsx-shell.is-login .bsx-question {
  min-height: auto;
  font-size: 31px;
  text-align: center;
}

.bsx-shell.is-login .bsx-answer-form {
  width: min(340px, 100%);
  margin-top: 20px;
}

.bsx-shell.is-login .bsx-controls {
  display: none;
}

.bsx-input-shell.is-login {
  display: grid;
  gap: 3px;
  text-align: left;
}

.bsx-input-shell.is-login::before {
  display: none;
}

.bsx-shell .bsx-login-input {
  min-height: 36px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 60, 113, 0.34);
  font-size: 16px;
}

.bsx-login-submit {
  width: max-content;
  min-width: 102px;
  min-height: 40px;
  margin-top: 11px;
  padding: 8px 16px;
  justify-self: center;
  border: 1px solid #003c71;
  border-radius: 4px;
  color: #ffffff;
  background: #003c71;
  font: 600 14px/1.2 "Butler", Georgia, serif;
  cursor: pointer;
}

.bsx-login-submit:hover,
.bsx-login-submit:focus-visible {
  background: #00549b;
}

.bsx-waiting-state {
  margin: 12px 0 6px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #365f83;
  font-size: 15px;
}

.bsx-waiting-spinner {
  width: 17px;
  height: 17px;
  box-sizing: border-box;
  border: 2px solid rgba(0, 60, 113, 0.18);
  border-top-color: #003c71;
  border-radius: 50%;
  animation: bsx-spin 1.2s linear infinite;
}

@keyframes bsx-spin {
  to { transform: rotate(360deg); }
}

.bsx-context {
  min-width: 0;
  max-height: calc(100vh - 152px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  animation: bsx-context-enter 360ms cubic-bezier(.2, .75, .2, 1) both;
}

.bsx-context[hidden] {
  display: none;
}

.bsx-context-recovery {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 60, 113, 0.18);
  border-radius: 6px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(35, 53, 69, 0.08);
  font: 700 13px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.bsx-context-recovery:hover,
.bsx-context-recovery:focus-visible {
  background: #ffffff;
  border-color: rgba(0, 120, 196, 0.52);
}

.bsx-context-recovery:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.32);
  outline-offset: 2px;
}

.bsx-context-card {
  min-width: 0;
  min-height: 240px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid rgba(0, 60, 113, 0.17);
  border-radius: 6px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(35, 53, 69, 0.10);
  backdrop-filter: blur(18px);
  animation: bsx-card-enter 380ms cubic-bezier(.2, .75, .2, 1) both;
}

.bsx-context-card.is-proposal.is-featured {
  border: 2px solid #13855c;
  background: linear-gradient(145deg, rgba(231, 249, 241, 0.94), rgba(255, 255, 255, 0.82));
  box-shadow: 0 22px 58px rgba(19, 133, 92, 0.18);
}

.bsx-context-card:nth-child(2) { animation-delay: 45ms; }
.bsx-context-card:nth-child(3) { animation-delay: 90ms; }

.bsx-context-card.is-reconciled {
  animation: none;
}

.bsx-context-card.is-collapsed {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding-top: 14px;
  padding-bottom: 14px;
  align-self: start;
  overflow: hidden;
}

.bsx-context-card.is-collapsed .bsx-card-head {
  min-height: 32px;
  align-items: center;
}

.bsx-context-card.is-collapsed .bsx-card-kicker,
.bsx-context-card.is-collapsed .bsx-card-body {
  display: none !important;
}

@keyframes bsx-context-enter {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bsx-card-enter {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bsx-context-card.is-workspace {
  grid-column: 1 / -1;
  min-height: 590px;
  padding: 14px;
}

.bsx-context-card.is-workspace .bsx-card-body {
  min-height: 480px;
  padding: 8px 0 10px;
  overflow: auto;
}

.bsx-workspace-navigation {
  min-height: 42px;
  margin-bottom: 8px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 60, 113, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.46);
}

.bsx-workspace-navigation p {
  margin: 0;
  color: #607b91;
  font-size: 12px;
  text-align: right;
}

.bsx-workspace-back {
  min-height: 32px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 60, 113, 0.34);
  border-radius: 4px;
  color: #003c71;
  background: transparent;
  font: 600 12px/1.2 "Butler", Georgia, serif;
  cursor: pointer;
}

.bsx-workspace-back:hover,
.bsx-workspace-back:focus-visible {
  color: #ffffff;
  border-color: #003c71;
  background: #003c71;
  outline: 0;
}

.bsx-context-card.is-workspace .bsx-legacy-view {
  min-width: 660px;
}

.bsx-main.has-simulation-editor-context .bsx-context-card.is-workspace {
  min-height: calc(100vh - 144px);
  padding: 12px;
  overflow: hidden;
  border-color: rgba(0, 120, 196, 0.34);
  border-radius: 12px;
  background: linear-gradient(150deg,
    rgba(255, 255, 255, 0.94), rgba(226, 243, 251, 0.84));
  box-shadow: 0 20px 58px rgba(0, 60, 113, 0.16);
}

.bsx-main.has-simulation-editor-context
  .bsx-context-card.is-workspace .bsx-card-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bsx-main.has-simulation-editor-context
  .bsx-context-card.is-workspace .bsx-legacy-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.bsx-context-card.is-workspace .bsx-legacy-view#be-view-knx_builder .knx-shell {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none;
}

.bsx-context-card.is-workspace .bsx-legacy-view#be-view-knx_builder .knx-topbar {
  overflow: hidden;
}

.bsx-context-card.is-workspace .bsx-legacy-view#be-view-knx_builder .knx-project-name {
  flex: 0 1 220px;
  min-width: 130px;
}

.bsx-context-card.is-workspace .bsx-legacy-view#be-view-knx_builder .knx-top-actions {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.bsx-context-card.is-workspace .bsx-legacy-view#be-view-knx_builder .knx-plan {
  padding: 12px !important;
}

.bsx-main.has-expanded-card::before {
  display: none;
}

.bsx-context-card.is-expanded {
  position: fixed;
  z-index: 60;
  top: 6vh;
  left: 8vw;
  width: 84vw;
  height: 88vh;
  max-height: 88vh;
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(20, 45, 66, 0.28);
  backdrop-filter: none;
  animation: none;
}

.bsx-context-card.is-expanded .bsx-card-body {
  min-height: 0;
  overflow: auto;
}

.bsx-context-card.is-expanded.is-workspace .bsx-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  overflow: hidden;
}

.bsx-context-card.is-expanded.is-workspace .bsx-legacy-view {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.bsx-context-card.is-expanded.is-workspace {
  top: 2vh;
  left: 2vw;
  width: 96vw;
  height: 96vh;
  max-height: 96vh;
  padding: 12px;
}

.bsx-context-card.is-workspace .knx-zoom-control {
  min-width: 34px;
  font-size: 20px;
  line-height: 1;
}

.bsx-context-card.is-workspace .knx-zoom-fit {
  min-width: 62px;
}

.bsx-context-card.is-expanded.is-plan {
  top: 4vh;
  left: 5vw;
  width: 90vw;
  height: 92vh;
  max-height: 92vh;
  padding: 14px 18px;
}

.bsx-context-card.is-expanded.is-plan .bsx-card-body {
  display: flex;
  min-height: 0;
  padding: 12px 0 0;
  overflow: hidden;
  flex-direction: column;
}

.bsx-context-card.is-heating,
.bsx-context-card.is-error,
.bsx-context-card.is-loading:only-child {
  grid-column: 1 / -1;
  width: min(440px, 100%);
  justify-self: center;
}

.bsx-context-card.is-plan {
  grid-column: 1 / -1;
  min-height: 520px;
}

.bsx-context-card.is-installation {
  grid-column: 1 / -1;
  min-height: 620px;
}

.bsx-context-card.is-identity {
  grid-column: 1 / -1;
  width: min(440px, 100%);
  min-height: 260px;
  justify-self: center;
}

.bsx-context-card.is-project-review {
  grid-column: 1 / -1;
  width: min(520px, 100%);
  min-height: 300px;
  justify-self: center;
}

.bsx-context-card.is-proposal {
  grid-column: 1 / -1;
  min-height: 230px;
}

.bsx-context-card.is-consumption {
  grid-column: 1 / -1;
  min-height: 390px;
}

.bsx-context-card.is-smart-shedding {
  grid-column: 1 / -1;
  min-height: 430px;
  border: 2px solid rgba(19, 133, 92, 0.54);
  background: linear-gradient(145deg, rgba(231, 249, 241, 0.96), rgba(255, 255, 255, 0.86));
  box-shadow: 0 24px 62px rgba(19, 133, 92, 0.18);
}

.bsx-smart-shedding-state {
  margin: 4px 0 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(0, 119, 184, 0.18);
  border-radius: 6px;
  background: rgba(0, 119, 184, 0.07);
}

.bsx-smart-shedding-state > span {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #0077b8;
  font-size: 17px;
  font-weight: 800;
}

.bsx-smart-shedding-state.is-active {
  border-color: rgba(19, 133, 92, 0.3);
  background: rgba(19, 133, 92, 0.09);
}

.bsx-smart-shedding-state.is-active > span {
  background: #13855c;
}

.bsx-smart-shedding-state strong,
.bsx-smart-shedding-state p {
  display: block;
  margin: 0;
}

.bsx-smart-shedding-state p {
  margin-top: 4px;
  color: #365f83;
  font-size: 14px;
  line-height: 1.45;
}

.bsx-smart-shedding-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bsx-smart-shedding-signals > div {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
}

.bsx-smart-shedding-signals span,
.bsx-smart-shedding-signals small {
  color: #55738d;
}

.bsx-smart-shedding-signals span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.bsx-smart-shedding-signals strong {
  font-size: 17px;
}

.bsx-smart-shedding-signals small {
  font-size: 12px;
  line-height: 1.35;
}

.bsx-smart-shedding-explainer {
  margin: 16px 0 0;
  color: #274b68;
  font-size: 14px;
  line-height: 1.5;
}

.bsx-smart-shedding-action {
  align-self: flex-start;
  margin-top: 18px;
}

.bsx-smart-shedding-action.is-active {
  color: #ffffff;
  border-color: #13855c;
  background: #13855c;
}

.bsx-context-card.is-flex-offer {
  grid-column: 1 / -1;
  min-height: 470px;
  border: 2px solid rgba(0, 119, 184, 0.5);
  background: linear-gradient(145deg, rgba(234, 247, 253, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 24px 62px rgba(0, 74, 123, 0.18);
}

.bsx-context-card.is-flex-settings,
.bsx-context-card.is-flex-events {
  grid-column: 1 / -1;
  min-height: 500px;
  border: 2px solid rgba(0, 119, 184, 0.5);
  background: linear-gradient(145deg, rgba(234, 247, 253, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 24px 62px rgba(0, 74, 123, 0.18);
}

.bsx-flex-settings-intro {
  max-width: 720px;
  margin: 2px 0 20px;
  color: #365f83;
  line-height: 1.5;
}

.bsx-flex-events-open {
  width: 100%;
  min-height: 70px;
  margin: 0 0 18px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
  border: 1px solid rgba(112, 216, 247, 0.48);
  border-radius: 8px;
  background: #0b679a;
  box-shadow: 0 8px 20px rgba(0, 35, 61, 0.18);
  text-align: left;
  cursor: pointer;
}

.bsx-flex-events-open > span {
  display: grid;
  gap: 3px;
}

.bsx-flex-events-open strong {
  color: #ffffff;
  font-size: 17px;
}

.bsx-flex-events-open small {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
}

.bsx-flex-events-open > em {
  min-width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #003c71;
  border-radius: 50%;
  background: #ffd94a;
  font-style: normal;
  font-weight: 850;
}

.bsx-flex-events-open > b {
  color: #dff8ff;
  font-size: 25px;
}

.bsx-flex-events-open.is-pending {
  border-color: #f0b900;
  box-shadow: 0 0 0 3px rgba(255, 217, 74, 0.22),
    0 10px 24px rgba(0, 60, 113, 0.12);
}

.bsx-flex-loads-open {
  width: 100%;
  min-height: 64px;
  margin: 18px 0 0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
  border: 1px solid #0077b8;
  border-radius: 8px;
  background: #0077b8;
  text-align: left;
  cursor: pointer;
}

.bsx-flex-loads-open > span {
  display: grid;
  gap: 3px;
}

.bsx-flex-loads-open strong {
  color: #ffffff;
  font-size: 16px;
}

.bsx-flex-loads-open small {
  color: rgba(255, 255, 255, 0.82);
}

.bsx-flex-loads-open > b {
  color: #ffffff;
  font-size: 24px;
}

.bsx-flex-load-list {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.bsx-flex-load-choice {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  border: 1px solid rgba(112, 216, 247, 0.42);
  border-radius: 8px;
  background: #075b91;
  text-align: left;
}

.bsx-flex-load-choice.is-selected {
  border-color: #70d8f7;
  background: #0077b8;
  box-shadow: inset 0 0 0 1px #70d8f7, 0 8px 18px rgba(0, 60, 113, 0.18);
}

.bsx-flex-load-select {
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.bsx-flex-load-select > b {
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
}

.bsx-flex-load-order {
  padding-right: 10px;
  display: grid;
  grid-template-columns: auto 30px 30px;
  align-items: center;
  gap: 5px;
}

.bsx-flex-load-order strong {
  min-width: 28px;
  color: #ffffff;
  text-align: center;
}

.bsx-flex-load-order button,
.bsx-flex-decide {
  min-height: 30px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  background: #006aa6;
  font-weight: 800;
  cursor: pointer;
}

.bsx-flex-load-order button:disabled {
  opacity: 0.35;
  cursor: default;
}

.bsx-flex-ai-choice {
  margin-top: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
  border: 1px solid rgba(112, 216, 247, 0.55);
  border-radius: 8px;
  background: #075b91;
}

.bsx-flex-ai-choice > div {
  display: grid;
  gap: 3px;
}

.bsx-flex-ai-choice small,
.bsx-flex-recommendation-note {
  color: rgba(255, 255, 255, 0.8);
}

.bsx-flex-decide {
  flex: 0 0 auto;
  padding: 7px 12px;
  background: #0077b8;
}

.bsx-flex-recommendation-note {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 2px solid #70d8f7;
  font-size: 12px;
}

.bsx-flex-load-check {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.bsx-flex-load-choice.is-selected .bsx-flex-load-check {
  color: #ffffff;
  border-color: #dff8ff;
  background: rgba(0, 174, 239, 0.22);
}

.bsx-flex-load-choice.is-selected .bsx-flex-load-check::after {
  content: "\2713";
  font-size: 18px;
  line-height: 1;
}

.bsx-flex-load-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bsx-flex-load-copy strong {
  color: #ffffff;
}

.bsx-flex-load-copy small {
  color: rgba(255, 255, 255, 0.78);
}

.bsx-flex-load-empty {
  padding: 24px 16px;
  display: grid;
  gap: 4px;
  color: #ffffff;
  border: 1px dashed rgba(112, 216, 247, 0.55);
  border-radius: 8px;
  background: #075b91;
  text-align: center;
}

.bsx-flex-load-empty small {
  color: rgba(255, 255, 255, 0.78);
}

.bsx-flex-events-back {
  min-height: 38px;
  margin: 0 0 15px;
  padding: 8px 12px;
  color: #164868;
  border: 1px solid rgba(0, 60, 113, 0.2);
  border-radius: 5px;
  background: #ffffff;
  font-weight: 750;
  cursor: pointer;
}

.bsx-flex-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.bsx-flex-history-summary > div {
  padding: 13px 14px;
  display: grid;
  gap: 3px;
  color: #ffffff;
  border: 1px solid rgba(112, 216, 247, 0.45);
  border-radius: 7px;
  background: #0b679a;
}

.bsx-flex-history-summary > div.is-pending {
  border-color: #f0b900;
  background: #176b8d;
}

.bsx-flex-history-summary span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bsx-flex-history-summary strong {
  color: #ffffff;
  font-size: 23px;
}

.bsx-flex-history-list {
  display: grid;
  gap: 9px;
}

.bsx-flex-history-item {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  border: 1px solid rgba(112, 216, 247, 0.42);
  border-radius: 7px;
  background: #0b679a;
}

.bsx-flex-history-item.is-pending {
  border-left: 5px solid #f0b900;
  background: #176b8d;
}

.bsx-flex-history-copy,
.bsx-flex-history-heading {
  min-width: 0;
}

.bsx-flex-history-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bsx-flex-history-heading strong {
  color: #ffffff;
  font-size: 16px;
}

.bsx-flex-history-status {
  padding: 3px 7px;
  color: #eaf9ff;
  border-radius: 999px;
  background: rgba(112, 216, 247, 0.2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bsx-flex-history-status.is-pending {
  color: #624800;
  background: #ffd94a;
}

.bsx-flex-history-copy p,
.bsx-flex-history-copy small {
  display: block;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.bsx-flex-history-empty {
  padding: 28px 18px;
  color: #ffffff;
  border: 1px dashed rgba(112, 216, 247, 0.5);
  border-radius: 7px;
  background: #0b679a;
  text-align: center;
}

.bsx-flex-history-empty p,
.bsx-flex-history-note {
  color: rgba(255, 255, 255, 0.76);
}

.bsx-flex-history-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.bsx-flex-setting-group {
  margin-top: 18px;
}

.bsx-flex-setting-group h3 {
  margin: 0 0 9px;
  color: #123f63;
  font-size: 14px;
}

.bsx-flex-setting-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bsx-flex-setting-choice {
  min-height: 112px;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 5px;
  color: #164868;
  border: 1px solid rgba(0, 60, 113, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
}

.bsx-flex-setting-choice > span {
  color: #123f63;
  font-size: 17px;
  font-weight: 800;
}

.bsx-flex-setting-choice em {
  color: #13855c;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.bsx-flex-setting-choice small {
  color: #55738d;
  line-height: 1.4;
}

.bsx-flex-setting-choice.is-selected {
  border-color: #00aeef;
  background: rgba(0, 174, 239, 0.12);
  box-shadow: inset 0 0 0 1px #00aeef, 0 8px 18px rgba(0, 119, 184, 0.12);
}

.bsx-flex-settings-proof {
  margin: 18px 0 14px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  color: #164868;
  border-left: 3px solid #00aeef;
  background: rgba(0, 174, 239, 0.06);
}

.bsx-flex-settings-proof span,
.bsx-flex-settings-updated,
.bsx-flex-settings-link-note,
.bsx-flex-execution {
  color: #55738d;
  font-size: 12px;
  line-height: 1.45;
}

.bsx-flex-settings-save {
  margin-right: 12px;
}

.bsx-flex-settings-link-note,
.bsx-flex-execution {
  margin: 12px 0 0;
}

.bsx-flex-execution {
  padding: 9px 11px;
  border-left: 3px solid #00aeef;
  background: rgba(0, 174, 239, 0.06);
}

.bsx-flex-hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 4px 0 16px;
  padding: 16px;
  color: #123f63;
  border: 1px solid rgba(0, 119, 184, 0.22);
  border-radius: 8px;
  background: rgba(0, 119, 184, 0.08);
}

.bsx-flex-hero > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: #0077b8;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 0 0 7px rgba(0, 119, 184, 0.1);
}

.bsx-flex-hero.is-accepted,
.bsx-flex-hero.is-complete {
  border-color: rgba(19, 133, 92, 0.28);
  background: rgba(19, 133, 92, 0.1);
}

.bsx-flex-hero.is-accepted > span,
.bsx-flex-hero.is-complete > span {
  background: #13855c;
  box-shadow: 0 0 0 7px rgba(19, 133, 92, 0.1);
}

.bsx-flex-hero strong,
.bsx-flex-hero p,
.bsx-flex-reward small {
  display: block;
  margin: 0;
}

.bsx-flex-hero p {
  margin-top: 4px;
  color: #55738d;
  font-size: 14px;
}

.bsx-flex-reward {
  min-width: 108px;
  text-align: right;
}

.bsx-flex-reward small {
  color: #55738d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bsx-flex-reward strong {
  color: #13855c;
  font-size: 27px;
}

.bsx-flex-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bsx-flex-metrics > div {
  min-width: 0;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
}

.bsx-flex-metrics span,
.bsx-flex-resources > span {
  color: #55738d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bsx-flex-metrics strong {
  text-transform: capitalize;
}

.bsx-flex-resources {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.bsx-flex-resources > span {
  flex-basis: 100%;
}

.bsx-flex-resources em {
  padding: 5px 9px;
  color: #225372;
  border: 1px solid rgba(0, 119, 184, 0.2);
  border-radius: 999px;
  background: rgba(0, 119, 184, 0.07);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.bsx-flex-privacy {
  margin: 15px 0;
  padding: 11px 13px;
  color: #365f83;
  border-left: 3px solid #00aeef;
  background: rgba(0, 174, 239, 0.06);
  font-size: 13px;
  line-height: 1.45;
}

.bsx-flex-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.bsx-flex-accept {
  color: #ffffff;
  border-color: #13855c;
  background: #13855c;
}

.bsx-flex-secondary,
.bsx-flex-auto-action {
  min-height: 40px;
  padding: 9px 14px;
  color: #164868;
  border: 1px solid rgba(0, 60, 113, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 750;
}

.bsx-flex-auto {
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
}

.bsx-flex-auto summary {
  color: #174f76;
  font-weight: 750;
  cursor: pointer;
}

.bsx-flex-limits {
  margin: 13px 0 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.bsx-flex-limits label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 6px;
  align-items: center;
  color: #365f83;
  font-size: 12px;
}

.bsx-flex-limits label > span {
  grid-column: 1 / -1;
  font-weight: 700;
}

.bsx-flex-limits input,
.bsx-flex-limits select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  color: #123f63;
  border: 1px solid rgba(0, 60, 113, 0.2);
  border-radius: 4px;
  background: #ffffff;
}

.bsx-flex-limits select {
  grid-column: 1 / -1;
}

.bsx-flex-auto-action {
  color: #ffffff;
  border-color: #0077b8;
  background: #0077b8;
}

.bsx-flex-auto > p,
.bsx-flex-result p {
  margin: 8px 0 0;
  color: #55738d;
  font-size: 12px;
}

.bsx-flex-result {
  margin: 14px 0;
  padding: 13px 14px;
  color: #145b40;
  border: 1px solid rgba(19, 133, 92, 0.25);
  border-radius: 6px;
  background: rgba(19, 133, 92, 0.08);
}

.bsx-context-card.is-appliance {
  min-height: 220px;
}

.bsx-context-card.is-field {
  grid-column: 1 / -1;
  min-height: 280px;
}

.bsx-context-card.is-portfolio {
  grid-column: 1 / -1;
  min-height: 360px;
}

.bsx-portfolio-summary {
  padding: 4px 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid rgba(0, 60, 113, 0.15);
}

.bsx-portfolio-summary .is-attention strong {
  color: #cf3f24;
}

.bsx-portfolio-summary div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bsx-portfolio-summary strong {
  color: #003c71;
  font-size: 25px;
  line-height: 1;
}

.bsx-portfolio-summary span {
  color: #55738d;
  font-size: 12px;
  line-height: 1.3;
}

.bsx-portfolio-list {
  display: grid;
}

.bsx-portfolio-project {
  width: 100%;
  min-height: 74px;
  padding: 14px 4px;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr) 24px;
  align-items: center;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid rgba(0, 60, 113, 0.13);
  color: #003c71;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.bsx-portfolio-project:hover,
.bsx-portfolio-project:focus-visible {
  padding-left: 10px;
  padding-right: 10px;
  background: rgba(0, 119, 184, 0.08);
  outline: 0;
}

.bsx-portfolio-project-main,
.bsx-portfolio-project-progress {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.bsx-portfolio-project-main strong,
.bsx-portfolio-project-progress strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.bsx-portfolio-project small {
  overflow-wrap: anywhere;
  color: #55738d;
  font-size: 12px;
  line-height: 1.3;
}

.bsx-portfolio-project-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bsx-portfolio-empty {
  margin: 28px 0 0;
  color: #55738d;
}

.bsx-context-card.is-maintenance {
  grid-column: 1 / -1;
  min-height: 300px;
}

.bsx-shell.is-hager-theme .bsx-context-card.is-maintenance {
  color: #003c71;
  border-color: rgba(0, 119, 184, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(231, 245, 252, 0.97));
  box-shadow: 0 20px 55px rgba(0, 39, 70, 0.18);
}

.bsx-shell.is-hager-theme .bsx-context-card.is-maintenance :is(
  .bsx-card-kicker, .bsx-card-title, .bsx-card-summary,
  .bsx-maintenance-item strong, .bsx-maintenance-item p,
  .bsx-maintenance-item small, .bsx-maintenance-scope span
) {
  color: #003c71;
}

.bsx-maintenance-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.bsx-maintenance-item {
  padding: 15px 16px;
  border: 1px solid rgba(0, 60, 113, 0.16);
  border-radius: 12px;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-context-card.is-maintenance .bsx-inline-action {
  color: #ffffff;
  border-color: #0077b8;
  background: #0077b8;
}

.bsx-shell.is-hager-theme .bsx-context-card.is-maintenance .bsx-inline-action:hover,
.bsx-shell.is-hager-theme .bsx-context-card.is-maintenance .bsx-inline-action:focus-visible {
  color: #003c71;
  border-color: #70d8f7;
  background: #e7f5fc;
}

.bsx-maintenance-item > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bsx-maintenance-item small {
  color: #55738d;
  text-transform: capitalize;
}

.bsx-maintenance-item p {
  margin: 10px 0;
  color: #274b68;
  line-height: 1.45;
}

.bsx-maintenance-actions {
  display: flex;
  justify-content: flex-end;
}

.bsx-context-card.is-lifecycle-summary,
.bsx-context-card.is-lifecycle-timeline,
.bsx-context-card.is-lifecycle-decision,
.bsx-context-card.is-comparison {
  grid-column: 1 / -1;
}

.bsx-context-card.is-lifecycle-observation,
.bsx-context-card.is-lifecycle-assumptions {
  min-height: 280px;
}

.bsx-context-card.is-site-report,
.bsx-context-card.is-property-transfer,
.bsx-context-card.is-messaging {
  grid-column: 1 / -1;
  min-height: 250px;
}

.bsx-messaging-links,
.bsx-messaging-providers {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.bsx-messaging-link,
.bsx-messaging-provider,
.bsx-messaging-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bsx-messaging-link > div,
.bsx-messaging-provider {
  min-width: 0;
}

.bsx-messaging-link strong,
.bsx-messaging-link small,
.bsx-messaging-provider small {
  display: block;
}

.bsx-messaging-qr {
  display: block;
  width: min(240px, 100%);
  aspect-ratio: 1;
  margin: 18px auto;
  padding: 8px;
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 8px;
  background: #fff;
}

.bsx-messaging-code {
  width: 150px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 60, 113, 0.3);
  border-radius: 5px;
  color: #003c71;
  background: #fff;
  font: 600 22px/1 monospace;
  letter-spacing: 0.16em;
  text-align: center;
}

.bsx-messaging-demo {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 6px;
  background: rgba(0, 174, 239, 0.08);
}

.bsx-context-card.is-lifecycle-summary {
  min-height: 230px;
}

.bsx-context-card.is-lifecycle-timeline {
  min-height: 330px;
}

.bsx-context-card.is-recommendation {
  min-height: 280px;
}

.bsx-context-card.is-comparison {
  min-height: 390px;
}

.bsx-card-head {
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bsx-card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bsx-card-kicker {
  margin: 0 0 4px;
  color: #476b89;
  font: 500 13px/1.3 "Butler", Georgia, serif;
}

.bsx-card-title {
  margin: 0;
  color: #003c71;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.bsx-card-close,
.bsx-card-collapse,
.bsx-card-resize,
.bsx-card-tool {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #003c71;
  background: transparent;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-card-collapse,
.bsx-card-resize,
.bsx-card-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
}

.bsx-card-collapse svg,
.bsx-card-resize svg,
.bsx-card-tool svg {
  width: 19px;
  height: 19px;
}

.bsx-card-close:hover,
.bsx-card-collapse:hover,
.bsx-card-resize:hover,
.bsx-card-tool:hover {
  background: rgba(0, 60, 113, 0.08);
}

.bsx-card-close:focus-visible,
.bsx-card-collapse:focus-visible,
.bsx-card-resize:focus-visible,
.bsx-card-tool:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.32);
  outline-offset: 2px;
}

.bsx-card-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px 0 18px;
}

.bsx-power {
  min-height: 64px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.bsx-power strong {
  color: #003c71;
  font-size: 45px;
  font-weight: 500;
  line-height: 1;
}

.bsx-power span {
  color: #476b89;
  font-size: 17px;
  font-weight: 500;
}

.bsx-metrics {
  margin-top: 20px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid rgba(0, 60, 113, 0.14);
}

.bsx-metrics div,
.bsx-device-state {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bsx-metrics span,
.bsx-device-state span {
  color: #55738d;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bsx-metrics strong {
  color: #003c71;
  font-size: 17px;
  font-weight: 600;
}

.bsx-consumption-summary {
  min-height: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.bsx-consumption-summary p {
  margin: 0 0 7px;
  color: #55738d;
  font-size: 15px;
}

.bsx-chart-wrap {
  margin-top: 22px;
}

.bsx-consumption-chart {
  display: block;
  width: 100%;
  height: clamp(170px, 27vh, 250px);
  overflow: visible;
}

.bsx-chart-baseline {
  stroke: rgba(0, 60, 113, 0.18);
  stroke-width: 1;
}

.bsx-chart-area {
  fill: rgba(0, 174, 239, 0.16);
}

.bsx-chart-line {
  fill: none;
  stroke: #0078c4;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 120, 196, 0.24));
}

.bsx-chart-grid {
  stroke: rgba(0, 60, 113, 0.11);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.bsx-chart-axis-label {
  fill: #607b91;
  font: 9px/1 Arial, sans-serif;
}

.bsx-chart-time-tick {
  stroke: rgba(0, 60, 113, 0.28);
  stroke-width: 1;
}

.bsx-chart-time-label {
  fill: #55738d;
  font: 700 9px/1 Arial, sans-serif;
}

.bsx-chart-time-reference {
  margin-top: 2px;
  color: #607b91;
  font-size: 10px;
  text-align: right;
}

.bsx-chart-labels {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  color: #607b91;
  font-size: 12px;
}

.bsx-energy-periods {
  display: inline-flex;
  gap: 5px;
  margin: 12px 0 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 60, 113, 0.06);
}

.bsx-energy-period {
  min-width: 48px;
  min-height: 31px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  color: #476b89;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bsx-energy-period:hover,
.bsx-energy-period:focus-visible {
  color: #003c71;
  background: rgba(0, 120, 196, 0.10);
  outline: 0;
}

.bsx-energy-period.is-active {
  color: #ffffff;
  background: #0078c4;
}

.bsx-energy-period-label {
  display: block;
  margin-top: 7px;
  color: #607b91;
  font-size: 11px;
}

.bsx-energy-source-intro {
  margin: 0 0 16px;
  color: #385f7e;
  font-size: 13px;
  line-height: 1.45;
}

.bsx-energy-source-list {
  display: grid;
  gap: 8px;
}

.bsx-energy-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.bsx-energy-source-row select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 34px 8px 11px;
  border: 1px solid rgba(0, 60, 113, 0.28);
  border-radius: 5px;
  color: #003c71;
  background: #ffffff;
  font: 600 12px/1.25 Arial, sans-serif;
}

.bsx-energy-source-remove {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 60, 113, 0.28);
  border-radius: 5px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.bsx-energy-source-remove:disabled {
  cursor: default;
  opacity: 0.4;
}

.bsx-energy-source-preview,
.bsx-energy-source-empty {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 5px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.45;
}

.bsx-energy-source-preview.is-warning {
  border-color: rgba(184, 105, 0, 0.52);
  color: #754300;
  background: #fff6e8;
}

.bsx-energy-source-empty {
  display: grid;
  gap: 4px;
}

.bsx-energy-source-empty span {
  color: #55738d;
}

.bsx-energy-source-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bsx-energy-source-save {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #003c71;
  border-radius: 4px;
  color: #ffffff;
  background: #003c71;
  font: 700 12px/1.2 "Butler", Georgia, serif;
  cursor: pointer;
}

.bsx-energy-source-save:hover,
.bsx-energy-source-save:focus-visible {
  border-color: #0077b8;
  background: #0077b8;
  outline: 0;
}

.bsx-energy-source-save:disabled {
  cursor: default;
  opacity: 0.5;
}

.bsx-appliance-reading {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bsx-appliance-reading .bsx-power strong {
  font-size: 36px;
}

.bsx-appliance-status {
  color: #16734b;
  font-size: 13px;
  font-weight: 600;
}

.bsx-appliance-status.is-offline {
  color: #b42318;
}

.bsx-appliance-actions {
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(0, 60, 113, 0.12);
}

.bsx-appliance-history-wrap {
  margin: 12px 0 4px;
}

.bsx-appliance-history-wrap > span {
  display: block;
  margin-bottom: 4px;
  color: rgba(0, 60, 113, 0.66);
  font-size: 10px;
}

.bsx-appliance-history {
  display: block;
  width: 100%;
  height: 58px;
  overflow: visible;
}

.bsx-appliance-history-area {
  fill: rgba(0, 119, 184, 0.10);
}

.bsx-appliance-history-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.bsx-appliance-history-time {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #55738d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.bsx-appliance-history-empty {
  margin: 10px 0 2px;
  color: rgba(0, 60, 113, 0.56);
  font-size: 10px;
}

.bsx-lifecycle-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bsx-lifecycle-totals > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bsx-lifecycle-totals span {
  color: #607b91;
  font-size: 13px;
}

.bsx-lifecycle-totals strong {
  color: #003c71;
  font-size: 25px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.bsx-lifecycle-note {
  margin: 20px 0 0;
  color: #55738d;
  font-size: 14px;
  line-height: 1.45;
}

.bsx-memory-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.bsx-report-status {
  margin: 10px 0 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 10px;
  color: #003c71;
  background: linear-gradient(105deg, #e9f7f1, #f5fbfd);
}

.bsx-report-status-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  border-radius: 50%;
  color: #ffffff;
  background: #16845b;
  font-weight: 800;
}

.bsx-report-status strong,
.bsx-report-status small {
  display: block;
}

.bsx-report-status small {
  margin-top: 2px;
  color: #55738d;
}

.bsx-report-status.has-open-points {
  background: linear-gradient(105deg, #fff6dc, #f7fbfd);
}

.bsx-report-open-points {
  margin: 14px 0;
  padding: 13px 16px 13px 34px;
  border-left: 4px solid #f2a900;
  border-radius: 4px;
  color: #274b68;
  background: #fff8e7;
}

.bsx-report-open-points li + li {
  margin-top: 6px;
}

.bsx-report-technical {
  margin: 14px 0;
  padding: 11px 14px;
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 7px;
  color: #274b68;
  background: rgba(238, 247, 252, 0.72);
}

.bsx-report-technical summary {
  color: #003c71;
  font-weight: 700;
  cursor: pointer;
}

.bsx-report-technical p {
  margin: 8px 0 0;
  color: #607b91;
  font-size: 12px;
}

.bsx-memory-proof > div {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 60, 113, 0.16);
}

.bsx-memory-proof span,
.bsx-report-fingerprint span,
.bsx-transfer-reference span,
.bsx-transfer-summary span,
.bsx-transfer-summary small {
  display: block;
  color: #607b91;
  font-size: 12px;
}

.bsx-memory-proof strong,
.bsx-transfer-reference strong,
.bsx-transfer-summary strong {
  display: block;
  margin-top: 4px;
  color: #003c71;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.bsx-report-fingerprint,
.bsx-transfer-reference,
.bsx-transfer-summary {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 60, 113, 0.14);
  border-bottom: 1px solid rgba(0, 60, 113, 0.14);
}

.bsx-report-fingerprint code {
  display: block;
  margin-top: 5px;
  color: #003c71;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.bsx-report-plan-wrap {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(238, 248, 251, 0.92), rgba(255, 255, 255, 0.82));
}

.bsx-report-plan-wrap > div:first-child {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bsx-report-plan-wrap strong { color: #003c71; }
.bsx-report-plan-wrap small { color: #607b91; }

.bsx-report-plan {
  position: relative;
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 113, 0.12);
  background-color: rgba(255, 255, 255, 0.72);
  background-image:
    linear-gradient(rgba(0, 60, 113, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 60, 113, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
  aspect-ratio: 3 / 2;
}

.bsx-report-room {
  position: absolute;
  padding: 7px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 119, 184, 0.55);
  color: #003c71;
  background: rgba(221, 243, 249, 0.68);
  font-size: 10px;
}

.bsx-report-room > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-report-appliance {
  position: absolute;
  max-width: 84px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #003c71;
  transform: translate(-50%, -50%);
}

.bsx-report-appliance > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  border: 1px solid rgba(0, 60, 113, 0.24);
  border-radius: 50%;
  background: #ffffff;
}

.bsx-report-appliance small {
  overflow: hidden;
  color: #365f83;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-transfer-qr {
  display: block;
  width: 156px;
  height: 156px;
  margin: 14px auto;
  background: #fff;
}

.bsx-timeline-detail {
  min-height: 150px;
}

.bsx-timeline-detail > span {
  color: #607b91;
  font-size: 13px;
}

.bsx-timeline-detail h3 {
  margin: 7px 0 8px;
  color: #003c71;
  font-size: 30px;
  font-weight: 500;
}

.bsx-timeline-detail p {
  max-width: 620px;
  margin: 0;
  color: #476b89;
  font-size: 17px;
  line-height: 1.4;
}

.bsx-timeline-metrics {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: #003c71;
  font-size: 14px;
  font-weight: 600;
}

.bsx-timeline-slider {
  width: 100%;
  height: 24px;
  margin: 18px 0 0;
  accent-color: #003c71;
  cursor: pointer;
}

.bsx-timeline-labels {
  display: flex;
  justify-content: space-between;
  color: #607b91;
  font-size: 12px;
}

.bsx-recommendation-reason {
  min-height: 66px;
  margin: 0 0 16px;
  color: #476b89;
  font-size: 16px;
  line-height: 1.42;
}

.bsx-recommendation-effect {
  display: block;
  margin-bottom: 20px;
  color: #003c71;
  font-size: 21px;
  font-weight: 500;
}

.bsx-assumption-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.bsx-assumption-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 60, 113, 0.1);
}

.bsx-assumption-list span {
  color: #55738d;
  font-size: 13px;
}

.bsx-assumption-list strong {
  color: #003c71;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.bsx-assumption-list em {
  grid-column: 1 / -1;
  color: #607b91;
  font-size: 12px;
  font-style: normal;
}

.bsx-decision-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.bsx-decision-proof > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bsx-decision-proof span {
  color: #607b91;
  font-size: 12px;
}

.bsx-decision-proof strong {
  color: #003c71;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.bsx-comparison-grid {
  display: grid;
  gap: 20px;
}

.bsx-comparison-metric {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.bsx-comparison-metric > span {
  grid-row: 1 / 3;
  color: #003c71;
  font-size: 14px;
  font-weight: 600;
}

.bsx-comparison-row {
  grid-column: 2 / 4;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(30px, 1fr) 94px;
  align-items: center;
  gap: 9px;
}

.bsx-comparison-row em {
  color: #607b91;
  font-size: 12px;
  font-style: normal;
}

.bsx-comparison-row i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #9db0bf;
}

.bsx-comparison-row.is-after i {
  background: #00aeef;
}

.bsx-comparison-row strong {
  color: #003c71;
  font-size: 14px;
  text-align: right;
}

.bsx-load-list {
  display: flex;
  flex-direction: column;
}

.bsx-load-row {
  min-height: 48px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 60, 113, 0.11);
}

.bsx-load-row:last-child {
  border-bottom: 0;
}

.bsx-load-row div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bsx-load-row div strong,
.bsx-load-row div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-load-row div strong {
  color: #003c71;
  font-size: 15px;
  font-weight: 600;
}

.bsx-load-row div span {
  color: #607b91;
  font-size: 12px;
}

.bsx-load-row p {
  min-width: 66px;
  margin: 0;
  text-align: right;
}

.bsx-load-row p strong {
  color: #003c71;
  font-size: 18px;
  font-weight: 600;
}

.bsx-load-row p span {
  margin-left: 4px;
  color: #607b91;
  font-size: 12px;
}

.bsx-card-message {
  margin: 14px 0 0;
  color: #476b89;
  font-size: 17px;
  line-height: 1.45;
}

.bsx-device-state {
  margin-top: 18px;
}

.bsx-device-state span:first-child {
  color: #16734b;
  font-weight: 600;
}

.bsx-device-state span:first-child.is-offline {
  color: #b42318;
}

.bsx-plan-heading {
  flex: 0 0 auto;
  min-height: 82px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bsx-plan-tabs {
  flex: 0 0 auto;
  min-height: 34px;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bsx-living-plan-toolbar {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bsx-living-plan-config {
  min-height: 30px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  border: 1px solid #70d8f7;
  border-radius: 6px;
  background: #0077b8;
  font-weight: 750;
  cursor: pointer;
}

.bsx-living-plan-config.is-active {
  color: #003c71;
  background: #ffffff;
}

.bsx-plan-tab {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #55738d;
  background: transparent;
  font: 600 13px/1.2 "Butler", Georgia, serif;
  cursor: pointer;
}

.bsx-plan-tab.is-active {
  color: #003c71;
  border-bottom-color: #003c71;
}

.bsx-plan-tab:focus-visible,
.bsx-plan-room:focus-visible,
.bsx-plan-control:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.32);
  outline-offset: 2px;
}

.bsx-plan-canvas {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  aspect-ratio: 1000 / 650;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 113, 0.24);
  background: rgba(239, 243, 246, 0.70);
}

.bsx-plan-room-palette {
  flex: 0 0 auto;
  min-height: 38px;
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bsx-plan-palette-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bsx-plan-room-choice {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(0, 60, 113, 0.30);
  border-radius: 3px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.88);
  font: 600 13px/1.2 "Butler", Georgia, serif;
  letter-spacing: 0;
  cursor: pointer;
}

.bsx-plan-room-choice:hover,
.bsx-plan-room-choice:focus-visible {
  color: #ffffff;
  border-color: #0077b8;
  background: #0077b8;
  outline: 0;
}

.bsx-plan-compass {
  position: relative;
  flex: 0 0 78px;
  width: 78px;
  height: 82px;
  display: grid;
  justify-items: center;
  align-content: start;
  color: #003c71;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.bsx-plan-compass:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.38);
  outline-offset: 3px;
}

.bsx-plan-compass.is-dragging {
  cursor: grabbing;
}

.bsx-plan-compass-top {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 50%;
  padding: 1px 4px;
  border-radius: 3px;
  color: #607b91;
  background: rgba(255, 255, 255, 0.86);
  font: 600 9px/1.2 "Butler", Georgia, serif;
  transform: translateX(-50%);
}

.bsx-plan-compass-top::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 6px solid #0077b8;
  transform: translateX(-50%);
}

.bsx-plan-compass-ring {
  position: relative;
  width: 56px;
  height: 56px;
  margin-top: 12px;
  border: 1px solid rgba(0, 60, 113, 0.30);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 18px rgba(0, 60, 113, 0.12);
  transition: transform 90ms linear;
}

.bsx-plan-compass.is-dragging .bsx-plan-compass-ring {
  transition: none;
}

.bsx-plan-compass-ring::before,
.bsx-plan-compass-ring::after {
  content: "";
  position: absolute;
  background: rgba(0, 60, 113, 0.18);
}

.bsx-plan-compass-ring::before {
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 1px;
}

.bsx-plan-compass-ring::after {
  top: 50%;
  right: 7px;
  left: 7px;
  height: 1px;
}

.bsx-plan-compass-ring span {
  position: absolute;
  z-index: 1;
  color: #003c71;
  font: 600 11px/1 "Butler", Georgia, serif;
}

.bsx-plan-compass-ring .is-north {
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.bsx-plan-compass-ring .is-east {
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
}

.bsx-plan-compass-ring .is-south {
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.bsx-plan-compass-ring .is-west {
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
}

.bsx-plan-compass-status {
  max-width: 78px;
  margin-top: 3px;
  overflow: hidden;
  color: #607b91;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-plan-compass:not(.is-confirmed) .bsx-plan-compass-ring {
  border-style: dashed;
}

.bsx-plan-room {
  position: absolute;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 113, 0.28);
  border-radius: 2px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.84);
  font: 600 13px/1.15 "Butler", Georgia, serif;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  cursor: grab;
  touch-action: none;
}

.bsx-plan-room.is-dragging {
  z-index: 8;
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(0, 60, 113, 0.18);
}

.bsx-plan-room.is-entering {
  animation: bsx-plan-room-enter 240ms ease-out both;
}

@keyframes bsx-plan-room-enter {
  from {
    opacity: 0;
    transform: scale(0.84);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bsx-plan-room-label {
  position: relative;
  z-index: 2;
  display: block;
  padding-right: 28px;
}

.bsx-plan-room-config-button {
  position: absolute;
  z-index: 8;
  top: 5px;
  right: 5px;
  width: 27px;
  height: 27px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 60, 113, 0.26);
  border-radius: 3px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.bsx-plan-room-config-button:hover,
.bsx-plan-room-config-button:focus-visible {
  color: #ffffff;
  border-color: #0077b8;
  background: #0077b8;
  outline: 0;
}

.bsx-plan-room-config {
  position: absolute;
  z-index: 20;
  top: 12px;
  right: 12px;
  width: min(292px, calc(100% - 24px));
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 60, 113, 0.28);
  border-radius: 4px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 36px rgba(0, 40, 75, 0.20);
}

.bsx-plan-room-config-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bsx-plan-room-config-head strong {
  overflow: hidden;
  font: 600 15px/1.2 "Butler", Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-plan-room-config-close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bsx-plan-room-config-counters {
  display: grid;
  gap: 8px;
}

.bsx-plan-room-config .bsx-plan-room-name {
  height: 36px;
  padding: 7px 9px;
  border: 1px solid rgba(0, 60, 113, 0.28);
  border-radius: 3px;
  color: #003c71;
  background: #ffffff;
}

.bsx-plan-room-config .bsx-plan-counter {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) 32px 24px 32px;
}

.bsx-plan-room-config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.bsx-plan-room-config-actions .is-danger {
  color: #a73535;
  border-color: rgba(167, 53, 53, 0.34);
}

.bsx-plan-opening {
  position: absolute;
  z-index: 3;
  display: block;
  cursor: ew-resize;
  pointer-events: auto;
  touch-action: none;
}

.bsx-plan-opening::before {
  content: "";
  position: absolute;
  inset: -12px;
}

.bsx-plan-opening.is-north,
.bsx-plan-opening.is-south {
  width: 24%;
  height: 4px;
}

.bsx-plan-opening.is-east,
.bsx-plan-opening.is-west {
  width: 4px;
  height: 24%;
  cursor: ns-resize;
}

.bsx-plan-opening.is-door {
  color: #d97706;
  border: 2px solid currentColor;
  background: #ffffff;
}

.bsx-plan-opening.is-window {
  border: 1px solid #ffffff;
  background: #00aeef;
  box-shadow: 0 0 0 1px #003c71;
}

.bsx-plan-opening.is-window::after,
.bsx-plan-opening.is-door::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bsx-plan-opening.is-window::after {
  background: #ffffff;
}

.bsx-plan-opening.is-window:is(.is-north, .is-south)::after {
  top: 1px;
  right: 2px;
  left: 2px;
  height: 1px;
}

.bsx-plan-opening.is-window:is(.is-east, .is-west)::after {
  top: 2px;
  bottom: 2px;
  left: 1px;
  width: 1px;
}

.bsx-plan-opening.is-door::after {
  background: currentColor;
}

.bsx-plan-opening.is-door.is-north::after {
  top: 100%;
  left: -2px;
  width: 2px;
  height: 20px;
  transform: rotate(-38deg);
  transform-origin: 0 0;
}

.bsx-plan-opening.is-door.is-south::after {
  bottom: 100%;
  left: -2px;
  width: 2px;
  height: 20px;
  transform: rotate(38deg);
  transform-origin: 0 100%;
}

.bsx-plan-opening.is-door.is-west::after {
  top: -2px;
  left: 100%;
  width: 20px;
  height: 2px;
  transform: rotate(-38deg);
  transform-origin: 0 0;
}

.bsx-plan-opening.is-door.is-east::after {
  top: -2px;
  right: 100%;
  width: 20px;
  height: 2px;
  transform: rotate(38deg);
  transform-origin: 100% 0;
}

.bsx-plan-opening.is-selected {
  box-shadow: 0 0 0 2px #f2a900;
}

.bsx-plan-opening.is-dragging {
  z-index: 9;
}

.bsx-plan-opening-grip {
  position: absolute;
  z-index: 4;
  display: block;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #003c71;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82);
  opacity: 0;
  touch-action: none;
  transition: opacity 120ms ease;
}

.bsx-plan-opening:hover .bsx-plan-opening-grip,
.bsx-plan-opening.is-selected .bsx-plan-opening-grip,
.bsx-plan-opening.is-dragging .bsx-plan-opening-grip {
  opacity: 1;
}

.bsx-plan-opening.is-north .bsx-plan-opening-grip,
.bsx-plan-opening.is-south .bsx-plan-opening-grip {
  top: 50%;
  width: 13px;
  height: 13px;
  cursor: ew-resize;
  transform: translateY(-50%);
}

.bsx-plan-opening.is-east .bsx-plan-opening-grip,
.bsx-plan-opening.is-west .bsx-plan-opening-grip {
  left: 50%;
  width: 13px;
  height: 13px;
  cursor: ns-resize;
  transform: translateX(-50%);
}

.bsx-plan-opening.is-north .bsx-plan-opening-grip.is-start,
.bsx-plan-opening.is-south .bsx-plan-opening-grip.is-start {
  left: -7px;
}

.bsx-plan-opening.is-north .bsx-plan-opening-grip.is-end,
.bsx-plan-opening.is-south .bsx-plan-opening-grip.is-end {
  right: -7px;
}

.bsx-plan-opening.is-east .bsx-plan-opening-grip.is-start,
.bsx-plan-opening.is-west .bsx-plan-opening-grip.is-start {
  top: -7px;
}

.bsx-plan-opening.is-east .bsx-plan-opening-grip.is-end,
.bsx-plan-opening.is-west .bsx-plan-opening-grip.is-end {
  bottom: -7px;
}

.bsx-plan-resize-handle {
  position: absolute;
  z-index: 7;
  right: 2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border-right: 2px solid #0077b8;
  border-bottom: 2px solid #0077b8;
  cursor: nwse-resize;
  touch-action: none;
}

.bsx-plan-room:hover {
  border-color: #0077b8;
}

.bsx-plan-room.is-selected {
  border: 2px solid #0077b8;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(0, 174, 239, 0.12);
}

.bsx-plan-tools {
  flex: 0 0 auto;
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto auto;
  align-items: center;
  gap: 10px 14px;
}

.bsx-plan-history {
  flex: 0 0 auto;
  min-height: 34px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bsx-plan-history > span {
  color: #607b91;
  font-size: 12px;
}

.bsx-plan-structure {
  flex: 0 0 auto;
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto auto;
  gap: 6px;
}

.bsx-plan-room-name {
  min-width: 0;
  height: 32px;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid rgba(0, 60, 113, 0.30);
  border-radius: 0;
  color: #003c71;
  background: transparent;
  font: 600 14px/1.2 "Butler", Georgia, serif;
  letter-spacing: 0;
}

.bsx-plan-room-name:focus {
  border-bottom-color: #0077b8;
  outline: 0;
}

.bsx-plan-room-name:disabled {
  opacity: 0.45;
}

.bsx-plan-undo {
  font-size: 18px;
}

.bsx-plan-undo:disabled {
  opacity: 0.35;
  cursor: default;
}

.bsx-plan-selection {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bsx-plan-selection span,
.bsx-plan-counter > span {
  color: #607b91;
  font-size: 12px;
}

.bsx-plan-selection strong {
  overflow: hidden;
  color: #003c71;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-plan-move,
.bsx-plan-resize,
.bsx-plan-counter {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bsx-plan-control {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 60, 113, 0.24);
  border-radius: 3px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.82);
  font: 600 13px/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-plan-control:hover {
  border-color: #003c71;
  background: #ffffff;
}

.bsx-plan-control svg,
.bsx-plan-room-config-button svg {
  display: block;
}

.bsx-plan-counter {
  grid-column: span 1;
}

.bsx-plan-counter > span {
  min-width: 54px;
}

.bsx-plan-counter strong {
  min-width: 20px;
  color: #003c71;
  font-size: 15px;
  text-align: center;
}

.bsx-plan-opening-tools {
  flex: 0 0 auto;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.bsx-context-card.is-expanded.is-plan .bsx-plan-tabs {
  min-height: 28px;
  margin-bottom: 8px;
}

.bsx-context-card.is-expanded.is-plan .bsx-plan-tab {
  min-height: 26px;
  padding: 4px 8px;
}

.bsx-context-card.is-expanded.is-plan .bsx-plan-canvas {
  height: min(calc(96vh - 212px), calc((96vw - 40px) * 0.65));
  min-height: 0;
}

.bsx-context-card.is-expanded.is-plan .bsx-plan-history {
  margin-top: 8px;
  min-height: 28px;
}

.bsx-context-card.is-expanded.is-plan .bsx-plan-structure {
  margin-top: 6px;
}

.bsx-context-card.is-expanded.is-plan .bsx-plan-tools {
  margin-top: 8px;
}

.bsx-plan-opening-tools > span {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #607b91;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-project-reference {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bsx-project-reference span {
  color: #607b91;
  font-size: 13px;
}

.bsx-project-reference strong {
  color: #003c71;
  font: 600 28px/1.15 "Butler", Georgia, serif;
  overflow-wrap: anywhere;
}

.bsx-project-qr {
  display: block;
  width: 150px;
  height: 150px;
  margin: 18px auto 0;
  object-fit: contain;
  background: #ffffff;
}

.bsx-project-qr-unavailable {
  width: min(190px, 100%);
  min-height: 120px;
  margin: 18px auto 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  border: 1px dashed rgba(0, 60, 113, 0.32);
  color: #003c71;
  text-align: center;
}

.bsx-project-qr-unavailable strong {
  font-size: 18px;
}

.bsx-project-qr-unavailable span {
  color: #607b91;
  font-size: 12px;
}

.bsx-project-facts {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bsx-project-facts div {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid rgba(0, 60, 113, 0.14);
}

.bsx-project-facts span,
.bsx-proposal-price span,
.bsx-proposal-products span {
  color: #607b91;
  font-size: 12px;
}

.bsx-project-facts strong {
  color: #003c71;
  font-size: 22px;
  font-weight: 600;
}

.bsx-requirements {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bsx-requirements span {
  padding: 5px 8px;
  border: 1px solid rgba(0, 60, 113, 0.20);
  border-radius: 3px;
  color: #365f83;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-transform: capitalize;
}

.bsx-proposal-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.bsx-proposal-price strong {
  color: #003c71;
  font-size: 30px;
  font-weight: 600;
}

.bsx-proposal-summary {
  margin: 13px 0;
  color: #365f83;
  font-size: 15px;
  line-height: 1.38;
}

.bsx-proposal-capabilities {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.bsx-proposal-capabilities-head,
.bsx-proposal-capability {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bsx-proposal-capabilities-head > strong {
  color: #003c71;
  font-size: 14px;
}

.bsx-proposal-capabilities-head > span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: #13855c;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bsx-proposal-capability {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 60, 113, 0.10);
}

.bsx-proposal-capability > div {
  display: grid;
  gap: 2px;
}

.bsx-proposal-capability strong {
  color: #003c71;
  font-size: 12px;
}

.bsx-proposal-capability span,
.bsx-proposal-capability small,
.bsx-proposal-capabilities-note {
  color: #607b91;
  font-size: 10px;
  line-height: 1.35;
}

.bsx-proposal-capability.is-compatible > small {
  color: #13855c;
  font-weight: 700;
  white-space: nowrap;
}

.bsx-proposal-capability.is-attention > small {
  color: #a55000;
  font-weight: 700;
  white-space: nowrap;
}

.bsx-proposal-capabilities-note {
  padding-top: 4px;
}

.bsx-proposal-coverage {
  margin: 0;
  padding-left: 18px;
  color: #003c71;
  font-size: 13px;
  line-height: 1.45;
}

.bsx-proposal-products {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.bsx-proposal-products strong {
  color: #003c71;
  font-size: 17px;
}

.bsx-proposal-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  border: 1px solid rgba(0, 60, 113, 0.16);
  background: rgba(0, 60, 113, 0.16);
}

.bsx-proposal-scope > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.76);
}

.bsx-proposal-scope strong {
  color: #003c71;
  font-size: 12px;
}

.bsx-proposal-scope span {
  color: #607b91;
  font-size: 11px;
  line-height: 1.35;
}

.bsx-proposal-protocols {
  margin: 10px 0 0;
  color: #365f83;
  font-size: 12px;
}

.bsx-proposal-compatibility {
  margin: 8px 0 0;
  color: #13855c;
  font-size: 12px;
  font-weight: 600;
}

.bsx-proposal-compatibility.is-warning {
  color: #a55000;
}

.bsx-proposal-validation {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 133, 92, 0.24);
  border-radius: 12px;
  background: rgba(19, 133, 92, 0.07);
}

.bsx-proposal-validation.is-warning {
  border-color: rgba(165, 80, 0, 0.26);
  background: rgba(165, 80, 0, 0.07);
}

.bsx-proposal-validation-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bsx-proposal-validation-head strong {
  color: #0b7250;
  font-size: 13px;
}

.bsx-proposal-validation-head span,
.bsx-proposal-validation small {
  color: #607b91;
  font-size: 11px;
}

.bsx-proposal-validation ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #21465f;
  font-size: 12px;
}

.bsx-proposal-details {
  display: none;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 60, 113, 0.14);
}

.bsx-context-card.is-expanded .bsx-proposal-details {
  display: grid;
  gap: 18px;
}

.bsx-proposal-actions {
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(0, 60, 113, 0.14);
}

.bsx-proposal-actions .bsx-proposal-simulate-action {
  min-height: 48px;
  padding: 13px 20px;
  flex: 1 1 220px;
  font-size: 14px;
}

.bsx-proposal-actions .bsx-primary-action {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #0077b8;
  border-radius: 4px;
  color: #ffffff;
  background: #0077b8;
  font: 600 12px/1.2 "Butler", Georgia, serif;
  cursor: pointer;
}

.bsx-proposal-actions .bsx-primary-action:hover,
.bsx-proposal-actions .bsx-primary-action:focus-visible {
  border-color: #003c71;
  background: #003c71;
  outline: 0;
}

.bsx-proposal-simulation-ready {
  flex-basis: 100%;
  color: #13855c;
  font-size: 11px;
  font-weight: 600;
}

.bsx-proposal-design-basis {
  display: grid;
  gap: 4px;
}

.bsx-proposal-design-basis strong {
  color: #003c71;
  font-size: 14px;
}

.bsx-proposal-design-basis span {
  color: #607b91;
  font-size: 12px;
}

.bsx-proposal-product-list {
  display: grid;
  gap: 20px;
}

.bsx-proposal-category {
  min-width: 0;
}

.bsx-proposal-category > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(0, 60, 113, 0.2);
}

.bsx-proposal-category > header strong {
  color: #003c71;
  font-size: 13px;
}

.bsx-proposal-category > header span {
  color: #365f83;
  font-size: 12px;
  font-weight: 600;
}

.bsx-proposal-category-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bsx-proposal-product-line {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(0, 60, 113, 0.14);
  background: rgba(255, 255, 255, 0.38);
}

.bsx-proposal-product-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.bsx-proposal-product-heading strong {
  color: #003c71;
  font-size: 14px;
}

.bsx-proposal-product-heading span,
.bsx-proposal-product-line small {
  color: #607b91;
  font-size: 11px;
}

.bsx-proposal-product-line small {
  display: block;
  line-height: 1.35;
}

.bsx-proposal-product-line small + small {
  margin-top: 4px;
}

.bsx-proposal-product-line p {
  margin: 7px 0 3px;
  color: #003c71;
  font-size: 13px;
}

.bsx-installation-questions {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #365f83;
  font-size: 13px;
  line-height: 1.45;
}

.bsx-installation-questions li + li {
  margin-top: 7px;
}

.bsx-installation-phase-tabs {
  margin: 14px 0 12px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(0, 60, 113, 0.20);
}

.bsx-installation-details {
  margin-top: 10px;
  border-top: 1px solid rgba(0, 60, 113, 0.16);
}

.bsx-installation-details > summary {
  padding: 10px 2px;
  color: #365f83;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bsx-installation-details[open] > summary {
  color: #003c71;
}

.bsx-installation-phase-tab {
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #607b91;
  background: transparent;
  cursor: pointer;
}

.bsx-installation-phase-tab strong {
  overflow: hidden;
  font: 600 13px/1.2 "Butler", Georgia, serif;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-installation-phase-tab small {
  min-width: 20px;
  color: inherit;
  font-size: 10px;
  text-align: right;
}

.bsx-installation-phase-tab:hover,
.bsx-installation-phase-tab:focus-visible,
.bsx-installation-phase-tab.is-active {
  color: #003c71;
  border-bottom-color: #00a7e1;
  outline: 0;
}

.bsx-knx-design-overview {
  margin: 12px 0 16px;
  border-block: 1px solid rgba(0, 60, 113, 0.18);
}

.bsx-knx-design-heading {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bsx-knx-design-heading > div:first-child,
.bsx-knx-product-copy,
.bsx-knx-link-source,
.bsx-knx-link-target,
.bsx-knx-link-dpt {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bsx-knx-design-heading span,
.bsx-knx-product-copy small,
.bsx-knx-link-row small {
  color: #607b91;
  font-size: 10px;
}

.bsx-knx-design-heading strong {
  color: #003c71;
  font-size: 14px;
}

.bsx-knx-design-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.bsx-knx-design-actions .bsx-inline-action,
.bsx-secondary-action {
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(0, 60, 113, 0.44);
  border-radius: 4px;
  color: #003c71;
  background: transparent;
  font: 600 12px/1.2 "Butler", Georgia, serif;
  cursor: pointer;
}

.bsx-secondary-action:hover,
.bsx-secondary-action:focus-visible {
  color: #ffffff;
  background: #003c71;
  outline: 0;
}

.bsx-secondary-action:disabled {
  cursor: default;
  opacity: 0.45;
}

.bsx-knx-product-list,
.bsx-knx-link-list {
  border-top: 1px solid rgba(0, 60, 113, 0.13);
}

.bsx-knx-product-row {
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid rgba(0, 60, 113, 0.10);
  color: #003c71;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.bsx-knx-product-row:hover,
.bsx-knx-product-row:focus-visible {
  background: rgba(0, 119, 184, 0.06);
  outline: 0;
}

.bsx-knx-product-icon {
  display: grid;
  place-items: center;
}

.bsx-knx-product-copy strong,
.bsx-knx-link-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-knx-product-status {
  color: #0077b8;
  font-size: 10px;
  text-align: right;
  text-transform: capitalize;
}

.bsx-knx-link-list {
  padding: 10px 0 4px;
}

.bsx-knx-link-list > strong {
  display: block;
  margin-bottom: 5px;
  color: #365f83;
  font-size: 11px;
}

.bsx-knx-link-row {
  min-height: 44px;
  padding: 6px 0;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 22px minmax(120px, 1.25fr) minmax(76px, auto);
  align-items: center;
  gap: 7px;
  border-top: 1px solid rgba(0, 60, 113, 0.09);
  color: #003c71;
}

.bsx-knx-link-arrow {
  display: grid;
  color: #00a7e1;
  place-items: center;
}

.bsx-knx-link-dpt {
  text-align: right;
}

.bsx-installation-canvas {
  margin-top: 8px;
}

.bsx-map-legend {
  margin: 9px 0 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: #365f83;
  font-size: 11px;
}

.bsx-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bsx-map-legend span::before {
  content: "";
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 2px solid #003c71;
  border-radius: 2px;
  background: #ffffff;
}

.bsx-map-legend .is-knx::before {
  border-color: #0077b8;
  border-radius: 50%;
}

.bsx-map-legend .is-zigbee::before {
  border-color: #198a68;
  border-radius: 50%;
}

.bsx-map-legend .is-suggested::before {
  border-color: #d17b00;
  border-style: dashed;
}

.bsx-map-legend .is-commissioned::before {
  border-color: #16875d;
  background: #16875d;
}

.bsx-electrical-panel-drawer {
  margin: 6px 0 10px;
}

.bsx-electrical-panel-toggle {
  width: 100%;
  min-height: 48px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(0, 60, 113, 0.22);
  border-radius: 4px;
  color: #003c71;
  background: rgba(248, 251, 253, 0.76);
  text-align: left;
  cursor: pointer;
}

.bsx-electrical-panel-toggle:hover,
.bsx-electrical-panel-toggle:focus-visible {
  border-color: rgba(0, 60, 113, 0.48);
  background: rgba(255, 255, 255, 0.94);
  outline: 0;
}

.bsx-electrical-panel-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bsx-electrical-panel-toggle-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bsx-electrical-panel-toggle-copy strong {
  font-size: 13px;
}

.bsx-electrical-panel-toggle-copy small {
  overflow: hidden;
  color: #607b91;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-electrical-panel-toggle-chevron {
  display: inline-flex;
  transition: transform 180ms ease;
}

.bsx-electrical-panel-toggle.is-open .bsx-electrical-panel-toggle-chevron {
  transform: rotate(180deg);
}

.bsx-electrical-panel {
  margin: 5px 0 0;
  padding: 12px;
  border: 1px solid rgba(0, 60, 113, 0.22);
  border-radius: 6px;
  background: rgba(248, 251, 253, 0.86);
}

.bsx-electrical-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #003c71;
}

.bsx-electrical-panel-head span {
  color: #607b91;
  font-size: 11px;
  text-transform: uppercase;
}

.bsx-electrical-panel-head strong {
  font-size: 13px;
}

.bsx-panel-rail {
  min-height: 42px;
  margin-top: 10px;
  padding: 5px;
  display: flex;
  gap: 4px;
  align-items: stretch;
  overflow-x: auto;
  border-block: 3px solid rgba(86, 103, 116, 0.32);
}

.bsx-panel-device {
  min-width: 76px;
  max-width: 130px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 60, 113, 0.24);
  border-radius: 3px;
  background: #ffffff;
  color: #003c71;
  font: 600 10px/1.25 Arial, sans-serif;
  cursor: pointer;
  text-align: left;
}

.bsx-panel-device strong,
.bsx-panel-device small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-panel-device strong {
  font-size: 10px;
}

.bsx-panel-device small {
  margin-top: 2px;
  color: rgba(0, 60, 113, 0.66);
  font-size: 8px;
  font-weight: 400;
}

.bsx-panel-device.is-zigbee {
  border-bottom: 3px solid #198a68;
}

.bsx-panel-device.is-knx {
  border-bottom: 3px solid #0077b8;
}

.bsx-panel-device.is-commissioned,
.bsx-site-device.is-commissioned {
  border-color: #16875d;
  color: #0f6947;
  background: #ecf8f2;
  box-shadow: inset 0 0 0 1px rgba(22, 135, 93, 0.18);
}

.bsx-panel-device.is-selected,
.bsx-installation-device.is-selected,
.bsx-installation-appliance.is-selected {
  outline: 3px solid rgba(0, 119, 184, 0.24);
  outline-offset: 2px;
}

.bsx-panel-empty {
  padding: 8px;
  color: #607b91;
  font-size: 11px;
}

.bsx-site-zone {
  position: absolute;
  z-index: 0;
  box-sizing: border-box;
  border: 1px dashed rgba(52, 117, 74, 0.38);
  background: rgba(225, 240, 228, 0.48);
  color: #27613a;
}

.bsx-site-zone-label {
  padding: 4px 6px;
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.bsx-site-device {
  margin: 2px 4px;
  padding: 5px 8px;
  border: 1px solid rgba(39, 97, 58, 0.36);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  color: #27613a;
  font: 600 10px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.bsx-site-device.is-selected {
  outline: 3px solid rgba(0, 119, 184, 0.24);
  outline-offset: 1px;
}

.bsx-installation-room {
  position: absolute;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  padding: 7px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 60, 113, 0.28);
  color: #003c71;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.bsx-installation-room > .bsx-plan-room-label {
  position: relative;
  z-index: 3;
  padding: 2px 5px;
  display: inline-block;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 1px 5px rgba(0, 60, 113, 0.08);
  font-weight: 700;
}

.bsx-installation-room .bsx-plan-opening {
  pointer-events: none;
}

.bsx-installation-links {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.bsx-installation-link {
  stroke: rgba(0, 60, 113, 0.32);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

.bsx-installation-link.is-zigbee {
  stroke: rgba(25, 138, 104, 0.54);
}

.bsx-installation-link.is-commissioned {
  stroke: #16875d;
  stroke-width: 2.5;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 3px rgba(22, 135, 93, 0.28));
}

.bsx-installation-device {
  position: absolute;
  z-index: 6;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid #0077b8;
  border-radius: 50%;
  color: #003c71;
  background: #ffffff;
  font: 700 10px/1 Arial, sans-serif;
  cursor: grab;
  touch-action: none;
}

.bsx-map-marker-core {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.bsx-map-marker-caption {
  position: absolute;
  z-index: 2;
  top: calc(100% + 5px);
  left: 50%;
  width: max-content;
  min-width: 78px;
  max-width: 128px;
  padding: 4px 6px;
  box-sizing: border-box;
  transform: translate(-50%, -2px);
  border: 1px solid rgba(0, 60, 113, 0.20);
  border-radius: 3px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 10px rgba(0, 60, 113, 0.12);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease, transform 120ms ease,
    visibility 120ms ease;
}

.bsx-map-marker-caption strong,
.bsx-map-marker-caption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-map-marker-caption strong {
  font: 600 10px/1.2 "Butler", Georgia, serif;
}

.bsx-map-marker-caption small {
  margin-top: 1px;
  color: rgba(0, 60, 113, 0.66);
  font: 400 8px/1.2 Arial, sans-serif;
}

.bsx-installation-device:hover,
.bsx-installation-appliance:hover {
  z-index: 12;
}

.bsx-installation-device:hover .bsx-map-marker-caption,
.bsx-installation-device:focus-visible .bsx-map-marker-caption,
.bsx-installation-device.is-selected .bsx-map-marker-caption,
.bsx-installation-appliance:hover .bsx-map-marker-caption,
.bsx-installation-appliance:focus-visible .bsx-map-marker-caption,
.bsx-installation-appliance.is-selected .bsx-map-marker-caption {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.bsx-map-items {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bsx-plan-assignments {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bsx-plan-assignments > strong {
  grid-column: 1 / -1;
  color: #365f83;
  font-size: 11px;
}

.bsx-plan-assignments button {
  min-width: 0;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 113, 0.18);
  border-left: 3px solid #0077b8;
  border-radius: 3px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.82);
  font: 500 10px/1.35 Arial, sans-serif;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.bsx-plan-assignments button.is-measurement {
  border-left-color: #18a17a;
}

.bsx-shell.is-hager-theme .bsx-plan-assignments > strong {
  color: rgba(255, 255, 255, 0.88);
}

.bsx-shell.is-hager-theme .bsx-plan-assignments button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  border-left-color: #8dd6ff;
  background: rgba(0, 48, 87, 0.48);
}

.bsx-shell.is-hager-theme .bsx-plan-assignments button.is-measurement {
  border-left-color: #7fe4c5;
}

.bsx-shell.is-hager-theme .bsx-installation-phase-tabs,
.bsx-shell.is-hager-theme .bsx-knx-design-overview,
.bsx-shell.is-hager-theme .bsx-knx-product-list,
.bsx-shell.is-hager-theme .bsx-knx-link-list,
.bsx-shell.is-hager-theme .bsx-knx-product-row,
.bsx-shell.is-hager-theme .bsx-knx-link-row {
  border-color: rgba(255, 255, 255, 0.20);
}

.bsx-shell.is-hager-theme .bsx-installation-phase-tab,
.bsx-shell.is-hager-theme .bsx-knx-design-heading span,
.bsx-shell.is-hager-theme .bsx-knx-product-copy small,
.bsx-shell.is-hager-theme .bsx-knx-link-row small,
.bsx-shell.is-hager-theme .bsx-knx-link-list > strong {
  color: rgba(255, 255, 255, 0.70);
}

.bsx-shell.is-hager-theme .bsx-installation-phase-tab:hover,
.bsx-shell.is-hager-theme .bsx-installation-phase-tab:focus-visible,
.bsx-shell.is-hager-theme .bsx-installation-phase-tab.is-active,
.bsx-shell.is-hager-theme .bsx-knx-design-heading strong,
.bsx-shell.is-hager-theme .bsx-knx-product-row,
.bsx-shell.is-hager-theme .bsx-knx-link-row,
.bsx-shell.is-hager-theme .bsx-knx-product-status {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-knx-product-row:hover,
.bsx-shell.is-hager-theme .bsx-knx-product-row:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.bsx-shell.is-hager-theme .bsx-secondary-action {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
}

.bsx-shell.is-hager-theme .bsx-secondary-action:hover,
.bsx-shell.is-hager-theme .bsx-secondary-action:focus-visible {
  color: #0077b8;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-workspace-navigation {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 48, 87, 0.42);
}

.bsx-shell.is-hager-theme .bsx-workspace-navigation p,
.bsx-shell.is-hager-theme .bsx-installation-details > summary {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-workspace-back {
  color: #003c71;
  border-color: #ffffff;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-context-card button.bsx-workspace-back span {
  color: #003c71;
}

.bsx-shell.is-hager-theme .bsx-workspace-back:hover,
.bsx-shell.is-hager-theme .bsx-workspace-back:focus-visible {
  color: #ffffff;
  background: transparent;
}

.bsx-shell.is-hager-theme .bsx-context-card button.bsx-workspace-back:hover span,
.bsx-shell.is-hager-theme .bsx-context-card button.bsx-workspace-back:focus-visible span {
  color: #ffffff;
}

.bsx-map-items > strong {
  flex: 1 0 100%;
  color: #365f83;
  font-size: 11px;
}

.bsx-map-items button {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 4px 7px 4px 19px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 113, 0.18);
  border-radius: 3px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.82);
  font: 500 9px/1.25 "Butler", Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.bsx-map-items button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border: 2px solid #003c71;
  border-radius: 2px;
  box-sizing: border-box;
}

.bsx-map-items button.is-knx::before {
  border-color: #0077b8;
  border-radius: 50%;
}

.bsx-map-items button.is-zigbee::before {
  border-color: #198a68;
  border-radius: 50%;
}

.bsx-installation-device.is-suggested {
  border-style: dashed;
  border-color: #d17b00;
}

.bsx-installation-device.is-knx {
  border-color: #0077b8;
}

.bsx-installation-device.is-zigbee {
  border-color: #198a68;
}

.bsx-installation-device.is-indicative {
  width: 34px;
  height: 34px;
  border-width: 2px;
  box-shadow: 0 3px 10px rgba(0, 60, 113, 0.18);
}

.bsx-installation-device.is-commissioned {
  border-color: #16875d;
  color: #0f6947;
  background: #ecf8f2;
  box-shadow: 0 0 0 4px rgba(22, 135, 93, 0.16);
}

.bsx-installation-device.is-dragging {
  z-index: 10;
  cursor: grabbing;
  box-shadow: 0 6px 18px rgba(0, 60, 113, 0.22);
}

.bsx-installation-appliance {
  position: absolute;
  z-index: 5;
  min-width: 22px;
  max-width: 54px;
  padding: 0;
  border: 2px solid #003c71;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #003c71;
  box-shadow: 0 2px 8px rgba(0, 60, 113, 0.12);
  cursor: grab;
  touch-action: none;
}

.bsx-installation-appliance.is-shutter {
  border-color: #6d5a00;
  color: #6d5a00;
}

.bsx-installation-appliance.is-heat_pump,
.bsx-installation-appliance.is-ev_charger {
  border-color: #b42318;
  color: #b42318;
}

.bsx-installation-appliance.is-suggested {
  border-style: dashed;
}

.bsx-installation-appliance.is-simulated {
  background: rgba(229, 247, 239, 0.96);
  box-shadow: 0 0 0 3px rgba(22, 135, 93, 0.16);
}

.bsx-installation-appliance.is-commissioned {
  border-color: #16875d;
  color: #0f6947;
  background: #ecf8f2;
  box-shadow: 0 0 0 4px rgba(22, 135, 93, 0.18);
}

.bsx-installation-appliance.is-dragging {
  z-index: 11;
  cursor: grabbing;
  box-shadow: 0 8px 20px rgba(0, 60, 113, 0.24);
}

.bsx-installation-appliance-label {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font: 700 10px/1 Arial, sans-serif;
}

.bsx-installation-appliance-label svg,
.bsx-map-marker-core svg {
  display: block;
}

.bsx-installation-appliance.has-panel-channels {
  min-width: 104px;
  max-width: 132px;
  height: 36px;
  padding: 4px 7px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  aspect-ratio: auto !important;
}

.bsx-installation-appliance.has-panel-channels
  .bsx-installation-appliance-label {
  width: 20px;
  height: 20px;
}

.bsx-installation-channel-projection {
  min-width: 0;
  display: block;
  text-align: left;
  pointer-events: none;
}

.bsx-installation-channel-projection strong,
.bsx-installation-channel-projection small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-installation-channel-projection strong {
  font: 700 9px/1.2 "Hanken Grotesk", Arial, sans-serif;
}

.bsx-installation-channel-projection small {
  margin-top: 2px;
  font: 500 8px/1.15 "Hanken Grotesk", Arial, sans-serif;
}

.bsx-installation-measurement {
  position: absolute;
  z-index: 3;
  top: -7px;
  right: -7px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #0077b8;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 60, 113, 0.18);
  pointer-events: none;
}

.bsx-installation-appliance-resize {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: #003c71;
  cursor: nwse-resize;
  touch-action: none;
}

.bsx-installation-result,
.bsx-installation-projection {
  margin: 10px 0 0;
  color: #4e5f70;
  font-size: 12px;
  line-height: 1.45;
}

.bsx-installation-result.is-passed {
  color: #146c4b;
}

.bsx-installation-result.is-failed {
  color: #b42318;
}

.bsx-homeowner-design-proof {
  margin: 12px 0 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(0, 119, 184, 0.22);
  border-radius: 10px;
  color: #003c71;
  background: rgba(0, 174, 239, 0.07);
}

.bsx-homeowner-design-proof.is-passed {
  border-color: rgba(22, 135, 93, 0.28);
  background: rgba(22, 135, 93, 0.08);
}

.bsx-homeowner-design-proof-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #16875d;
}

.bsx-homeowner-design-proof strong,
.bsx-homeowner-design-proof small {
  display: block;
}

.bsx-homeowner-design-proof small {
  margin-top: 3px;
  color: #4f6b80;
  font-size: 11px;
  line-height: 1.35;
}

.bsx-hager-order-confirmation {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(150px, 0.62fr) minmax(220px, 1fr);
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(164, 244, 198, 0.48);
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0a5b40 0%, #16875d 52%, #219b6f 100%);
  box-shadow: 0 14px 32px rgba(6, 83, 57, 0.24);
}

.bsx-hager-order-confirmation::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.2) 44%, transparent 64%);
  transform: translateX(-120%);
  animation: bsx-hager-order-sheen 2.8s ease-in-out 1;
}

.bsx-hager-order-animation {
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px minmax(42px, 1fr) 48px;
  align-items: center;
  color: #ffffff;
}

.bsx-hager-order-check,
.bsx-hager-order-product {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(0, 60, 42, 0.46);
  box-shadow: 0 9px 24px rgba(0, 55, 38, 0.3);
}

.bsx-hager-order-check {
  background: #07563d;
  animation: bsx-hager-order-confirm 680ms cubic-bezier(.2, .9, .25, 1.35) both;
}

.bsx-hager-order-product {
  animation: bsx-hager-order-product 900ms 280ms cubic-bezier(.2, .9, .25, 1.2) both;
}

.bsx-hager-order-route {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.bsx-hager-order-route::after {
  content: "";
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, #b7f4d0);
  animation: bsx-hager-order-route 1.15s 180ms ease-out both;
}

.bsx-hager-order-copy strong {
  display: block;
  color: #ffffff;
  font: 700 21px/1.15 "Butler", Georgia, serif;
}

.bsx-hager-order-copy p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.5;
}

.bsx-order-continue {
  min-height: 38px;
  margin: 2px 0 0 auto;
  padding: 8px 14px;
  display: block;
  border: 1px solid #16875d;
  border-radius: 6px;
  color: #ffffff;
  background: #16875d;
  font: 700 12px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.bsx-order-continue:hover,
.bsx-order-continue:focus-visible {
  border-color: #0a5b40;
  background: #0a5b40;
  outline: 0;
}

@keyframes bsx-hager-order-confirm {
  from { opacity: 0; transform: scale(0.55) rotate(-16deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes bsx-hager-order-product {
  from { opacity: 0; transform: translateX(-26px) scale(0.72); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes bsx-hager-order-route {
  from { transform: translateX(-110%); }
  to { transform: translateX(280%); }
}

@keyframes bsx-hager-order-sheen {
  0%, 22% { transform: translateX(-120%); }
  65%, 100% { transform: translateX(120%); }
}

.bsx-transceiver-loading,
.bsx-commissioning-edge-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #003c71;
}

.bsx-transceiver-picker {
  margin: 16px 0 14px;
  padding: 16px;
  border: 1px solid rgba(0, 120, 196, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(231, 246, 255, 0.96), #ffffff 72%);
  box-shadow: 0 12px 30px rgba(0, 60, 113, 0.08);
}

.bsx-transceiver-picker label,
.bsx-transceiver-status {
  display: grid;
  gap: 7px;
}

.bsx-transceiver-picker label > span,
.bsx-transceiver-status small,
.bsx-transceiver-lock-note {
  color: #50708c;
  font: 600 12px/1.4 Arial, sans-serif;
}

.bsx-transceiver-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 38px 10px 12px;
  border: 1px solid #8fb9d7;
  border-radius: 8px;
  color: #003c71;
  background-color: #ffffff;
  font: 700 16px/1.2 Arial, sans-serif;
}

.bsx-transceiver-status {
  position: relative;
  margin-top: 13px;
  padding: 12px 12px 12px 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.bsx-transceiver-status > span {
  position: absolute;
  left: 13px;
  top: 16px;
  width: 12px;
  height: 12px;
  overflow: hidden;
  border-radius: 50%;
  color: transparent;
  background: #9aa9b6;
  box-shadow: 0 0 0 5px rgba(154, 169, 182, 0.14);
}

.bsx-transceiver-status > span.is-online {
  background: #31a36f;
  box-shadow: 0 0 0 5px rgba(49, 163, 111, 0.14);
}

.bsx-transceiver-status strong {
  color: #003c71;
}

.bsx-transceiver-start {
  width: 100%;
  justify-content: center;
}

.bsx-transceiver-lock-note {
  display: block;
  margin-top: 10px;
}

.bsx-commissioning-edge-proof {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 60, 113, 0.2);
  border-radius: 9px;
  color: #003c71;
  background: #fff;
}

.bsx-commissioning-edge-proof div {
  display: grid;
  gap: 2px;
}

.bsx-commissioning-edge-proof small {
  font: 600 11px/1.3 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.bsx-installation-hint {
  margin: 9px 0 0;
  color: #607b91;
  font-size: 12px;
  line-height: 1.35;
}

.bsx-installation-measurement-source {
  margin: 10px 0;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 3px solid #0077b8;
  color: #003c71;
  background: rgba(0, 119, 184, 0.07);
}

.bsx-installation-measurement-source span {
  display: inline-flex;
}

.bsx-installation-measurement-source strong,
.bsx-installation-measurement-source small {
  display: block;
}

.bsx-installation-measurement-source small {
  margin-top: 2px;
  color: rgba(0, 60, 113, 0.68);
  font-size: 10px;
}

.bsx-installation-editor {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 60, 113, 0.16);
}

.bsx-contactor-purpose {
  margin: 14px 0;
  padding: 14px;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(0, 119, 184, 0.2);
  border-radius: 8px;
  background: rgba(0, 119, 184, 0.05);
}

.bsx-contactor-purpose-heading p {
  margin: 4px 0 0;
  color: #607b91;
  font-size: 12px;
  line-height: 1.4;
}

.bsx-contactor-purpose-row {
  display: grid;
  grid-template-columns: minmax(105px, 0.65fr) minmax(190px, 1.6fr)
    minmax(125px, 0.8fr);
  gap: 9px;
  align-items: end;
}

.bsx-contactor-purpose-row > div,
.bsx-contactor-purpose-row label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.bsx-contactor-purpose-row small,
.bsx-contactor-purpose-row label span {
  color: #607b91;
  font-size: 11px;
}

.bsx-contactor-purpose input,
.bsx-contactor-purpose select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px 8px;
  border: 1px solid rgba(0, 60, 113, 0.22);
  border-radius: 4px;
  background: #ffffff;
  color: #003c71;
  font: 13px/1.35 Arial, sans-serif;
}

.bsx-installation-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  color: #003c71;
}

.bsx-installation-editor-head span {
  color: #607b91;
  font-size: 11px;
  text-transform: uppercase;
}

.bsx-installation-editor-head strong {
  font-size: 14px;
}

.bsx-installation-editor-form {
  margin-top: 12px;
}

.bsx-installation-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bsx-installation-editor-grid label,
.bsx-channel-assignments label,
.bsx-installation-instruction-box label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #607b91;
  font-size: 11px;
}

.bsx-installation-editor input,
.bsx-installation-editor select,
.bsx-installation-editor textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(0, 60, 113, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #003c71;
  font: 13px/1.35 Arial, sans-serif;
}

.bsx-installation-editor input,
.bsx-installation-editor select {
  min-height: 36px;
  padding: 7px 8px;
}

.bsx-installation-editor textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

.bsx-installation-check {
  margin: 10px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #365f83;
  font-size: 12px;
}

.bsx-installation-check input {
  width: 16px;
  min-height: 16px;
}

.bsx-channel-assignments {
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.bsx-channel-assignments > strong,
.bsx-channel-assignments > p {
  grid-column: 1 / -1;
}

.bsx-channel-assignment {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(120px, 1fr)
    minmax(170px, 1.4fr);
  gap: 8px;
  align-items: end;
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 4px;
}

.bsx-channel-assignment > strong {
  grid-column: 1 / -1;
  color: #003c71;
  font-size: 12px;
}

.bsx-shell.is-hager-theme .bsx-channel-assignment {
  border-color: rgba(255, 255, 255, 0.22);
}

.bsx-channel-assignments > strong {
  color: #003c71;
  font-size: 13px;
}

.bsx-channel-assignments > p {
  margin: 0;
  color: #607b91;
  font-size: 11px;
  line-height: 1.4;
}

.bsx-add-appliance-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) minmax(100px, 1fr)
    minmax(120px, 1.2fr) auto;
  gap: 8px;
  align-items: center;
}

.bsx-add-appliance-form > span {
  color: #003c71;
  font-size: 12px;
  font-weight: 700;
}

.bsx-installation-instruction-box {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.bsx-installation-instruction-box > small {
  grid-column: 1 / -1;
  color: #607b91;
  font-size: 11px;
}

.bsx-installation-generate {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #003c71;
  border-radius: 4px;
  background: #003c71;
  color: #ffffff;
  font: 700 13px/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-lifecycle-status {
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid rgba(0, 60, 113, 0.14);
}

.bsx-lifecycle-status span,
.bsx-lifecycle-list span {
  color: #607b91;
  font-size: 12px;
}

.bsx-lifecycle-status strong {
  color: #003c71;
  font-size: 23px;
  font-weight: 600;
}

.bsx-lifecycle-selection {
  margin: 13px 0 0;
  color: #0077b8;
  font-size: 14px;
  font-weight: 600;
}

.bsx-lifecycle-updates {
  margin: 9px 0 0;
  color: #0077b8;
  font-size: 13px;
}

.bsx-lifecycle-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.bsx-lifecycle-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bsx-lifecycle-list strong {
  color: #365f83;
  font-size: 14px;
  font-weight: 600;
}

.bsx-question {
  min-height: 44px;
  margin: 0;
  max-width: 740px;
  color: #003c71;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
  filter: blur(0);
  transition: opacity 240ms ease, transform 280ms cubic-bezier(.2, .75, .2, 1),
    font-size 360ms cubic-bezier(.2, .75, .2, 1),
    filter 220ms ease;
}

.bsx-question.is-changing {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(3px);
}

.bsx-guidance {
  max-width: 620px;
  margin: 12px 0 0;
  color: #365f83;
  font-size: 17px;
  line-height: 1.45;
}

.bsx-guidance[hidden] {
  display: none;
}

.bsx-answer-form {
  width: 100%;
  margin-top: 3px;
}

.bsx-input-shell {
  position: relative;
  width: 100%;
  color: #003c71;
}

.bsx-input-shell[hidden] {
  display: none;
}

.bsx-input-shell.is-empty::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 6px;
  left: -2px;
  width: 16px;
  height: 30px;
  color: currentColor;
  background: currentColor;
  clip-path: polygon(56% 0, 12% 52%, 44% 52%, 27% 100%, 88% 38%, 57% 38%);
  animation: bsx-spark 1.4s ease-in-out infinite;
  pointer-events: none;
}

.bsx-shell.is-hager-theme .bsx-input-shell.is-empty::before {
  top: 1px;
  left: -5px;
  width: 22px;
  height: 39px;
  color: #ffe59a;
  filter: drop-shadow(0 0 7px rgba(255, 229, 154, 0.72));
}

.bsx-shell .bsx-input {
  display: block;
  width: 100%;
  min-height: 50px;
  max-height: 156px;
  margin: 0;
  padding: 4px 0 8px 14px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: none;
  overflow-y: auto;
  color: #003c71;
  background: transparent;
  box-shadow: none;
  caret-color: #003c71;
  font: 500 21px/1.4 "Butler", Georgia, serif;
  letter-spacing: 0;
}

.bsx-shell .bsx-input:not(:placeholder-shown) {
  padding-left: 0;
}

.bsx-shell textarea.bsx-input {
  min-height: 88px;
  overflow-y: hidden;
}

.bsx-shell .bsx-input::placeholder {
  color: #365f83;
  opacity: 1;
}

.bsx-shell .bsx-input:focus {
  border: 0;
  outline: 0;
}

.bsx-shell .bsx-input:disabled {
  color: #7d8791;
  cursor: wait;
}

.bsx-back-button {
  position: fixed;
  z-index: 7;
  top: 164px;
  left: 30px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #003c71;
  background: rgba(255, 255, 255, 0.46);
  font: 400 24px/34px Arial, sans-serif;
  cursor: pointer;
  opacity: 0.68;
  backdrop-filter: blur(10px);
  transition: opacity 160ms ease, transform 160ms ease,
    background 160ms ease;
}

.bsx-back-button:hover,
.bsx-back-button:focus-visible {
  opacity: 1;
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.82);
  outline: 0;
}

.bsx-back-button[hidden] {
  display: none;
}

.bsx-input-shell.has-voice .bsx-input {
  padding-right: 40px;
}

.bsx-voice {
  position: absolute;
  top: 8px;
  right: 2px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #003c71;
  background: transparent;
  cursor: pointer;
  opacity: 0.56;
  transition: opacity 160ms ease, background 160ms ease,
    transform 160ms ease;
}

.bsx-voice:hover,
.bsx-voice:focus-visible {
  opacity: 1;
  background: rgba(0, 60, 113, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.bsx-voice.is-listening {
  color: #ffffff;
  background: #003c71;
  opacity: 1;
  animation: bsx-voice-pulse 1.1s ease-in-out infinite;
}

@keyframes bsx-voice-pulse {
  50% { box-shadow: 0 0 0 6px rgba(0, 60, 113, 0.10); }
}

.bsx-qr-scanner {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(241, 246, 249, 0.72);
  backdrop-filter: blur(18px);
}

.bsx-qr-scanner-panel {
  position: relative;
  width: min(430px, 100%);
  padding: 24px;
  display: grid;
  gap: 8px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(0, 60, 113, 0.16);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(21, 52, 76, 0.18);
}

.bsx-qr-scanner-panel > strong {
  padding-right: 40px;
  font-size: 24px;
  font-weight: 600;
}

.bsx-qr-scanner-panel > span {
  color: #365f83;
  font-size: 16px;
}

.bsx-qr-frame {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 113, 0.20);
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  background: #0b1822;
}

.bsx-qr-frame::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 2px solid rgba(255, 255, 255, 0.90);
  border-radius: 3px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.bsx-qr-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bsx-qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: 400 25px/30px Arial, sans-serif;
  cursor: pointer;
  opacity: 0.62;
}

.bsx-qr-close:hover,
.bsx-qr-close:focus-visible {
  opacity: 1;
  outline: 0;
}

.bsx-field-item {
  position: relative;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 60, 113, 0.15);
}

.bsx-card-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 60, 113, 0.11);
}

.bsx-field-item:first-of-type {
  margin-top: 12px;
}

.bsx-field-item strong {
  display: block;
  padding-right: 72px;
  color: #003c71;
}

.bsx-field-item p {
  margin: 6px 0 0;
  color: #365f83;
}

.bsx-field-status {
  position: absolute;
  top: 14px;
  right: 0;
  text-transform: uppercase;
  font: 700 10px/1.4 Arial, sans-serif;
}

.bsx-controls {
  position: relative;
  min-height: 44px;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.bsx-answer-form.is-guided {
  display: flex;
  flex-direction: column;
}

.bsx-answer-form.is-choice-only {
  margin-top: 2px;
}

.bsx-answer-form.is-choice-only .bsx-controls {
  margin-top: 2px;
  margin-bottom: 0;
}

.bsx-answer-form.is-guided .bsx-controls {
  order: 1;
  margin-top: 0;
  margin-bottom: 5px;
}

.bsx-answer-form.is-guided .bsx-input-shell {
  order: 2;
  width: min(540px, 100%);
  opacity: 0.72;
  transition: opacity 150ms ease;
}

.bsx-main:not(.has-context) .bsx-answer-form.is-guided .bsx-input-shell {
  margin-left: auto;
  margin-right: auto;
}

.bsx-answer-form.is-guided.is-input-first .bsx-input-shell {
  order: 1;
}

.bsx-answer-form.is-guided.is-input-first .bsx-controls {
  order: 2;
  margin-top: 6px;
  margin-bottom: 0;
}

.bsx-answer-form.is-guided .bsx-input-shell:focus-within {
  opacity: 1;
}

.bsx-answer-form.is-guided .bsx-input {
  min-height: 42px;
  font-size: 18px;
}

.bsx-answer-form.is-guided .bsx-input-shell.is-empty::before {
  top: 4px;
  width: 14px;
  height: 26px;
}

.bsx-answer-form.is-guided .bsx-options {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bsx-answer-form.is-conversational .bsx-options {
  max-width: 690px;
}

.bsx-answer-form.is-conversational .bsx-controls {
  margin-top: 6px;
}

.bsx-inline-action {
  min-height: 40px;
  margin-top: 18px;
  padding: 8px 13px;
  border: 1px solid #003c71;
  border-radius: 4px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.74);
  font: 600 15px/1.2 "Butler", Georgia, serif;
  cursor: pointer;
}

.bsx-inline-action:hover {
  color: #ffffff;
  background: #003c71;
}

.bsx-option-trigger {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #003c71;
  border-radius: 4px;
  color: #ffffff;
  background: #003c71;
  box-shadow: 0 8px 24px rgba(0, 60, 113, 0.14);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.bsx-option-trigger:hover {
  background: #00549b;
}

.bsx-option-trigger:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.35);
  outline-offset: 3px;
}

.bsx-option-trigger[aria-expanded="true"] {
  color: #003c71;
  background: #ffffff;
}

.bsx-option-trigger[hidden] {
  display: none;
}

.bsx-option-trigger span {
  display: block;
  font: 400 29px/1 Arial, sans-serif;
  transform: translateY(-1px);
  transition: transform 140ms ease;
}

.bsx-option-trigger[aria-expanded="true"] span {
  transform: translateY(-1px) rotate(45deg);
}

.bsx-options {
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.bsx-options[hidden] {
  display: none;
}

.bsx-options.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bsx-option {
  min-height: 40px;
  max-width: 240px;
  padding: 8px 13px;
  border: 1px solid #cbd2d8;
  border-radius: 4px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.7);
  font: 600 15px/1.25 "Butler", Georgia, serif;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.bsx-option.is-journey-action {
  min-width: min(240px, 100%);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  border-color: #003c71;
  background: #003c71;
  text-align: left;
}

.bsx-option.is-journey-action:hover,
.bsx-option.is-journey-action:focus-visible {
  color: #ffffff;
  border-color: #0077b8;
  background: #0077b8;
}

.bsx-option.is-hager-order {
  position: relative;
  overflow: hidden;
  min-width: min(292px, 100%);
  border-color: #00aeef;
  background: linear-gradient(100deg, #003c71, #0077b8 58%, #00aeef);
  box-shadow: 0 10px 26px rgba(0, 119, 184, 0.28);
  animation: bsx-hager-order-cta 1.8s ease-in-out infinite;
}

.bsx-option.is-hager-order::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.32) 46%, transparent 64%);
  transform: translateX(-120%);
  animation: bsx-hager-order-cta-sheen 2.4s ease-in-out infinite;
}

.bsx-option.is-hager-order > span {
  position: relative;
  z-index: 1;
}

@keyframes bsx-hager-order-cta {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 26px rgba(0, 119, 184, 0.28); }
  50% { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 174, 239, 0.38); }
}

@keyframes bsx-hager-order-cta-sheen {
  0%, 34% { transform: translateX(-120%); }
  72%, 100% { transform: translateX(120%); }
}

.bsx-option-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.bsx-option-arrow svg {
  display: block;
}

.bsx-option.is-icon-shortcut {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-color: rgba(0, 60, 113, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
}

.bsx-option.is-icon-shortcut.is-flex-attention {
  color: #003c71;
  border-color: #ffd94a;
  background: #fff6c5;
  box-shadow: 0 0 0 4px rgba(255, 217, 74, 0.24),
    0 7px 20px rgba(0, 60, 113, 0.18);
  animation: bsx-flex-attention 1.8s ease-in-out infinite;
}

.bsx-flex-attention-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  color: #003c71;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ffd94a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

@keyframes bsx-flex-attention {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.bsx-option.is-icon-shortcut svg {
  display: block;
}

.bsx-option-monogram {
  display: block;
  color: inherit;
  font: 800 18px/1 "Hanken Grotesk", Arial, sans-serif;
}

.bsx-living-plan .bsx-installation-appliance {
  cursor: pointer;
  touch-action: manipulation;
}

.bsx-living-plan .bsx-installation-appliance:hover,
.bsx-living-plan .bsx-installation-appliance:focus-visible {
  z-index: 5;
  border-color: #003c71;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.22),
    0 8px 22px rgba(0, 60, 113, 0.16);
  outline: 0;
}

.bsx-living-plan.is-configuring .bsx-installation-appliance.is-movable {
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 4px rgba(112, 216, 247, 0.34),
    0 8px 22px rgba(0, 60, 113, 0.18);
}

.bsx-living-plan.is-configuring .bsx-installation-appliance.is-fixed {
  cursor: not-allowed;
  opacity: 0.58;
}

.bsx-electric-panel-board {
  position: absolute;
  inset: 8% 12%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-sizing: border-box;
  color: #ffffff;
  border: 2px solid rgba(141, 214, 255, 0.68);
  border-radius: 10px;
  background: linear-gradient(145deg, #006eae, #003c71);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 39, 70, 0.28);
}

.bsx-electric-panel-board > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
}

.bsx-electric-panel-board > header small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.bsx-electric-panel-board > header strong {
  font-size: 15px;
}

.bsx-electric-panel-rail {
  flex: 1 1 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  background: linear-gradient(
    to bottom,
    #157fba 0 13%,
    #003c71 13% 18%,
    #00659f 18% 82%,
    #003c71 82% 87%,
    #157fba 87% 100%
  );
  box-shadow: inset 0 2px 7px rgba(0, 31, 57, 0.32);
}

.bsx-electric-panel-device {
  position: relative;
  width: min(180px, 42%);
  min-width: 118px;
  min-height: 150px;
  padding: 17px 13px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 5px;
  color: #ffffff;
  border: 1px solid rgba(141, 214, 255, 0.68);
  border-radius: 5px;
  background: #0078c4;
  box-shadow: 0 8px 18px rgba(0, 31, 57, 0.28);
  cursor: pointer;
}

.bsx-electric-panel-device:hover,
.bsx-electric-panel-device:focus-visible,
.bsx-electric-panel-device.is-selected {
  border-color: #0078c4;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.22),
    0 10px 22px rgba(0, 48, 87, 0.2);
  outline: 0;
}

.bsx-electric-panel-device-mark {
  position: absolute;
  top: 13px;
  left: 13px;
  color: #9de8ff;
  font-size: 12px;
  font-weight: 900;
}

.bsx-electric-panel-device strong {
  font-size: 20px;
}

.bsx-electric-panel-device small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.bsx-living-state-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #8795a1;
  box-shadow: 0 1px 4px rgba(0, 60, 113, 0.28);
}

.bsx-installation-appliance:is(.is-state-on, .is-state-open, .is-state-active)
  .bsx-living-state-dot,
.bsx-electric-panel-device:is(.is-state-on, .is-state-open, .is-state-active)
  .bsx-living-state-dot {
  background: #13a36f;
}

.bsx-installation-appliance:is(.is-state-off, .is-state-closed, .is-state-standby)
  .bsx-living-state-dot,
.bsx-electric-panel-device:is(.is-state-off, .is-state-closed, .is-state-standby)
  .bsx-living-state-dot {
  background: #f2a900;
}

.bsx-installation-appliance:is(.is-state-position, .is-state-stopped)
  .bsx-living-state-dot {
  background: #00aeef;
}

.bsx-living-appliance-popover {
  position: absolute;
  z-index: 40;
  top: 50%;
  left: 50%;
  width: min(320px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 15px;
  overflow: auto;
  box-sizing: border-box;
  color: #003c71;
  border: 1px solid rgba(0, 120, 196, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 44px rgba(0, 48, 87, 0.26);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
}

.bsx-living-popover-head,
.bsx-living-popover-title,
.bsx-living-popover-reading,
.bsx-living-popover-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bsx-living-popover-head > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.bsx-living-popover-head small,
.bsx-living-popover-reading small {
  display: block;
  color: #5e7990;
  font: 700 9px/1.2 "Hanken Grotesk", Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bsx-living-popover-head h3 {
  margin: 3px 0 0;
  overflow: hidden;
  color: #003c71;
  font: 700 20px/1.08 "Hanken Grotesk", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-living-popover-close {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  color: #003c71;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 120, 196, 0.09);
  font: 400 23px/28px Arial, sans-serif;
  cursor: pointer;
}

.bsx-living-rename-trigger {
  padding: 2px 0;
  color: #0078c4;
  border: 0;
  background: transparent;
  font: 700 10px/1.2 "Hanken Grotesk", Arial, sans-serif;
  cursor: pointer;
}

.bsx-living-rename {
  margin-top: 5px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.8fr) auto;
  gap: 6px;
}

.bsx-living-rename-input,
.bsx-living-type-select {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  color: #003c71;
  border: 1px solid rgba(0, 60, 113, 0.25);
  border-radius: 7px;
  background: #ffffff;
  font: 600 13px/1 "Hanken Grotesk", Arial, sans-serif;
}

.bsx-living-type-select {
  cursor: pointer;
}

.bsx-living-rename-save {
  padding: 0 11px;
  color: #ffffff;
  border: 0;
  border-radius: 7px;
  background: #0078c4;
  font-weight: 700;
  cursor: pointer;
}

.bsx-living-popover-reading,
.bsx-living-popover-state {
  min-height: 52px;
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #f1f8fc;
}

.bsx-living-popover-reading strong {
  display: block;
  margin-top: 2px;
  color: #003c71;
  font-size: 23px;
}

.bsx-living-popover-note {
  margin: 0;
  color: #426783;
  font-size: 12px;
}

.bsx-appliance-status[class*="is-state-"] {
  padding: 4px 8px;
  color: #526c80;
  border-radius: 999px;
  background: #e7eef3;
}

.bsx-appliance-status:is(.is-state-on, .is-state-open, .is-state-active) {
  color: #0f6947;
  background: #e5f6ef;
}

.bsx-appliance-status:is(.is-state-off, .is-state-closed, .is-state-standby) {
  color: #815900;
  background: #fff3cf;
}

.bsx-living-brightness {
  margin-top: 12px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  border: 1px solid rgba(0, 120, 196, 0.18);
  border-radius: 9px;
  background: #f8fbfd;
}

.bsx-living-history {
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(0, 120, 196, 0.18);
  border-radius: 9px;
  background: #f8fbfd;
}

.bsx-living-history .bsx-lifecycle-note {
  display: block;
  margin: 7px 0 0;
  color: #526c80;
  font-size: 10px;
  line-height: 1.35;
}

.bsx-living-brightness-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #426783;
  font-size: 11px;
  font-weight: 700;
}

.bsx-living-brightness-value {
  color: #003c71;
  font-size: 14px;
  font-weight: 800;
}

.bsx-living-brightness-range {
  width: 100%;
  min-width: 0;
  accent-color: #0078c4;
}

.bsx-living-brightness-apply {
  min-width: 64px;
  padding: 6px 10px;
  color: #ffffff;
  border: 0;
  border-radius: 7px;
  background: #0078c4;
  font: 700 10px/1.2 "Hanken Grotesk", Arial, sans-serif;
  cursor: pointer;
}

.bsx-living-brightness-apply:disabled,
.bsx-living-brightness-range:disabled {
  opacity: 0.5;
  cursor: default;
}

.bsx-living-popover-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.bsx-living-popover-actions.is-shutter {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bsx-living-control {
  min-height: 48px;
  padding: 7px 5px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #003c71;
  border: 1px solid rgba(0, 120, 196, 0.24);
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
}

.bsx-living-control:hover,
.bsx-living-control:focus-visible {
  color: #ffffff;
  border-color: #0078c4;
  background: #0078c4;
  outline: 0;
}

.bsx-living-control:disabled {
  opacity: 0.5;
  cursor: default;
}

.bsx-living-control > span {
  font-size: 18px;
  line-height: 1;
}

.bsx-living-control > small {
  font-size: 9px;
  font-weight: 700;
}

.bsx-living-control-status {
  margin: 9px 1px 0;
  color: #526c80;
  font-size: 10px;
}

.bsx-living-control-status.is-success { color: #0f6947; }
.bsx-living-control-status.is-error { color: #b42318; }

.bsx-living-site-assets {
  margin-top: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  border: 1px solid rgba(0, 120, 196, 0.2);
  border-radius: 12px;
  background: rgba(241, 248, 252, 0.82);
}

.bsx-living-site-assets > strong {
  grid-column: 1 / -1;
  color: #003c71;
  font-size: 12px;
}

.bsx-living-site-asset {
  min-width: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #003c71;
  border: 1px solid rgba(0, 120, 196, 0.2);
  border-radius: 9px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.bsx-living-site-asset:hover,
.bsx-living-site-asset:focus-visible,
.bsx-living-site-asset.is-selected {
  border-color: #0078c4;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
  outline: 0;
}

.bsx-living-site-glyph {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: #0078c4;
  font-size: 11px;
  font-weight: 800;
}

.bsx-living-site-asset > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bsx-living-site-asset b,
.bsx-living-site-asset small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-living-site-asset small {
  color: #526c80;
  font-size: 10px;
}

/* Site equipment is rendered as a light surface inside the blue Home Plan.
   Pin its text colours so the Hager card inheritance cannot turn EV labels white. */
.bsx-shell.is-hager-theme .bsx-living-site-assets {
  color: #003c71;
  border-color: rgba(0, 120, 196, 0.30);
  background: rgba(231, 245, 252, 0.94);
}

.bsx-shell.is-hager-theme .bsx-living-site-assets > strong {
  color: #003c71 !important;
}

.bsx-shell.is-hager-theme .bsx-living-site-asset {
  color: #003c71 !important;
  border-color: rgba(0, 120, 196, 0.28);
  background: #ffffff !important;
}

.bsx-shell.is-hager-theme .bsx-living-site-asset :is(b, span) {
  color: #003c71 !important;
}

.bsx-shell.is-hager-theme .bsx-living-site-asset small {
  color: #426783 !important;
}

.bsx-shell.is-hager-theme .bsx-living-site-asset
  .bsx-living-site-glyph {
  color: #ffffff !important;
  background: #0078c4 !important;
}

.bsx-context-card.is-assistant {
  grid-column: 1 / -1;
  width: min(600px, 100%);
  justify-self: center;
}

.bsx-option:hover {
  border-color: #003c71;
  color: #003c71;
  background: #ffffff;
}

.bsx-option:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.28);
  outline-offset: 2px;
}

.bsx-option[aria-disabled="true"] {
  color: #7b858d;
  border-color: #dde1e5;
  background: rgba(255, 255, 255, 0.42);
  cursor: not-allowed;
}

.bsx-status {
  min-height: 24px;
  margin-top: 13px;
  color: #003c71;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.bsx-status:empty {
  min-height: 0;
  margin-top: 0;
}

.bsx-status.is-error {
  color: #b42318;
}

.bsx-status.is-busy::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-left: 8px;
  vertical-align: middle;
  background: #00aeef;
  animation: bsx-busy 900ms ease-in-out infinite alternate;
}

@keyframes bsx-spark {
  0%, 72%, 100% {
    opacity: 0.90;
    transform: translate(0, 0) scale(1);
    filter: drop-shadow(0 0 0 currentColor);
  }
  74% {
    opacity: 0.55;
    transform: translate(-1px, 1px) scale(0.96);
  }
  77% {
    opacity: 1;
    transform: translate(1px, -1px) scale(1.08);
    filter: drop-shadow(0 0 5px currentColor);
  }
  80% {
    opacity: 0.72;
    transform: translate(0, 1px) scale(0.98);
  }
}

@keyframes bsx-busy {
  from { transform: scaleX(0.35); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 1040px) {
  .bsx-main.has-context {
    width: min(860px, calc(100% - 64px));
    grid-template-columns: minmax(300px, 0.78fr) minmax(400px, 1.22fr);
    gap: 36px;
  }

  .bsx-context {
    grid-template-columns: 1fr;
  }

  .bsx-main.has-context.has-workspace-context {
    width: min(940px, calc(100% - 40px));
    grid-template-columns: minmax(280px, 0.6fr) minmax(520px, 1.4fr);
    gap: 24px;
  }

  .bsx-context-card.is-heating,
  .bsx-context-card.is-error,
  .bsx-context-card.is-loading:only-child {
    grid-column: auto;
    width: 100%;
  }

  .bsx-context-card.is-plan,
  .bsx-context-card.is-identity,
  .bsx-context-card.is-project-review,
  .bsx-context-card.is-proposal,
  .bsx-context-card.is-consumption,
  .bsx-context-card.is-lifecycle-summary,
  .bsx-context-card.is-lifecycle-timeline,
  .bsx-context-card.is-lifecycle-decision,
  .bsx-context-card.is-comparison {
    grid-column: auto;
    width: 100%;
  }

  .bsx-plan-tools {
    grid-template-columns: 1fr;
  }

  .bsx-plan-counter {
    grid-column: auto;
  }

  .bsx-plan-opening-tools {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .bsx-plan-opening-tools > span {
    flex: 1 0 100%;
  }
}

@media (max-width: 820px) {
  .bsx-main.has-context {
    width: min(620px, calc(100% - 44px));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 34px;
    padding-top: 104px;
  }

  .bsx-main.has-context .bsx-conversation {
    min-height: 330px;
  }

  .bsx-context {
    max-height: none;
    padding-bottom: 54px;
    overflow: visible;
  }

  .bsx-main.has-context.has-workspace-context {
    width: min(700px, calc(100% - 36px));
    display: flex;
  }

  .bsx-context-card.is-workspace .bsx-legacy-view {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .bsx-proposal-scope,
  .bsx-proposal-category-lines {
    grid-template-columns: minmax(0, 1fr);
  }

  .bsx-brand {
    top: 68px;
    left: 72px;
    width: 56px;
    height: 56px;
  }

  .bsx-main {
    width: calc(100% - 36px);
    padding: 104px 0 64px;
    justify-content: center;
  }

  .bsx-main.has-context {
    width: calc(100% - 36px);
    padding: 96px 0 44px;
  }

  .bsx-conversation {
    min-height: 390px;
  }

  .bsx-main.has-context .bsx-conversation {
    min-height: 360px;
  }

  .bsx-main.has-context.has-portfolio-context {
    gap: 20px;
  }

  .bsx-main.has-context.has-portfolio-context .bsx-conversation {
    min-height: 270px;
  }

  .bsx-question {
    min-height: 48px;
    font-size: 28px;
    line-height: 1.2;
  }

  .bsx-answer-form {
    margin-top: 8px;
  }

  .bsx-input {
    font-size: 18px;
  }

  .bsx-controls {
    gap: 12px;
  }

  .bsx-options {
    flex: 1 1 auto;
    flex-direction: column;
  }

  .bsx-option {
    width: 100%;
    max-width: none;
  }

  .bsx-option.is-icon-shortcut {
    width: 42px;
    max-width: 42px;
  }

  .bsx-answer-form:has(.bsx-option.is-icon-shortcut) .bsx-options {
    flex-direction: row;
  }

  .bsx-context-card {
    min-height: 218px;
    padding: 18px;
  }

  .bsx-context-card.is-expanded {
    top: 3vh;
    left: 3vw;
    width: 94vw;
    height: 94vh;
    max-height: 94vh;
    padding: 12px;
  }

  .bsx-context-card.is-plan {
    min-height: 430px;
  }

  .bsx-context-card.is-flex-settings {
    min-height: 0;
  }

  .bsx-context-card.is-flex-events {
    min-height: 0;
  }

  .bsx-flex-history-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .bsx-flex-history-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .bsx-flex-history-action {
    width: 100%;
  }

  .bsx-flex-setting-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .bsx-flex-setting-choice {
    min-height: 0;
  }

  .bsx-consumption-summary {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .bsx-consumption-chart {
    height: 170px;
  }

  .bsx-lifecycle-totals {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bsx-memory-proof {
    grid-template-columns: 1fr;
  }

  .bsx-timeline-detail {
    min-height: 190px;
  }

  .bsx-comparison-metric {
    grid-template-columns: 1fr;
  }

  .bsx-comparison-metric > span,
  .bsx-comparison-row {
    grid-column: 1;
    grid-row: auto;
  }

  .bsx-decision-proof {
    grid-template-columns: 1fr 1fr;
  }

  .bsx-plan-canvas {
    min-height: 210px;
  }

  .bsx-plan-room {
    padding: 5px;
    font-size: 11px;
  }

  .bsx-card-title {
    font-size: 21px;
  }

  .bsx-power strong {
    font-size: 40px;
  }

}

@media (max-height: 620px) and (min-width: 701px) {
  .bsx-main {
    justify-content: flex-start;
    padding-top: 112px;
  }

  .bsx-question {
    min-height: 52px;
    font-size: 30px;
  }

  .bsx-answer-form {
    margin-top: 8px;
  }
}

.bsx-commissioning-products {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.bsx-commissioning-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 48, 76, 0.12);
}

.bsx-commissioning-product strong,
.bsx-commissioning-product span {
  display: block;
}

.bsx-commissioning-state {
  color: #607b91 !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.bsx-commissioning-product.is-bound .bsx-commissioning-state {
  color: #16875d !important;
}

.bsx-commissioning-progress {
  margin: 14px 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.bsx-commissioning-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bsx-commissioning-progress-copy strong {
  color: #003c71;
  font-size: 17px;
}

.bsx-commissioning-progress-copy span {
  color: #607b91;
  font-size: 11px;
}

.bsx-commissioning-progress-bar {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 60, 113, 0.10);
}

.bsx-commissioning-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bsx-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #00aeef, #16875d);
  transition: width 320ms ease;
}

.bsx-commissioning-journey-list {
  margin: 8px 0 16px;
  display: grid;
  gap: 7px;
}

.bsx-commissioning-next-action {
  display: grid;
  gap: 11px;
  min-height: 330px;
  margin: 18px 0;
  padding: 22px;
  border: 1px solid rgba(0, 174, 239, 0.38);
  border-radius: 16px;
  background: rgba(0, 174, 239, 0.08);
}

.bsx-context-card.is-commissioning-journey {
  grid-column: 1 / -1;
  min-height: 540px;
}

.bsx-commissioning-next-action.is-error {
  border-color: rgba(190, 52, 52, 0.45);
}

.bsx-commissioning-next-action p {
  margin: 0;
}

.bsx-commissioning-live-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 18px;
}

.bsx-commissioning-live-heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.bsx-commissioning-live-title em {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #003c71;
  border: 1px solid rgba(0, 120, 196, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.bsx-commissioning-live-pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #00aeef;
  box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.55);
  animation: bsx-commissioning-pulse 0.9s ease-out infinite;
}

@keyframes bsx-commissioning-pulse {
  70%, 100% { box-shadow: 0 0 0 9px rgba(0, 174, 239, 0); }
}

.bsx-commissioning-live-detail {
  color: #4f6b80;
  font-size: 12px;
  line-height: 1.4;
}

.bsx-commissioning-live-summary {
  color: #003c71;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.38;
}

.bsx-commissioning-live-narrative {
  min-height: 84px;
  padding: 12px 14px;
  overflow: hidden;
  border-left: 4px solid #00aeef;
  border-radius: 4px 10px 10px 4px;
  background: rgba(255, 255, 255, 0.72);
}

.bsx-commissioning-live-narrative > span {
  display: block;
  margin-bottom: 5px;
  color: #52748d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.bsx-commissioning-live-narrative-text {
  min-height: 42px;
  color: #003c71;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.bsx-commissioning-live-narrative-text.is-changing {
  opacity: 0;
  transform: translateY(-5px);
}

.bsx-commissioning-live-steps {
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

.bsx-commissioning-live-step {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-height: 25px;
  color: #7890a2;
  font-size: 12px;
}

.bsx-commissioning-live-step-copy > span,
.bsx-commissioning-live-step-copy > small {
  display: block;
}

.bsx-commissioning-live-step-copy > small {
  margin-top: 3px;
  color: #526f86;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.38;
}

.bsx-commissioning-live-step.is-current {
  color: #003c71;
  font-weight: 700;
}

.bsx-commissioning-live-step.is-done {
  color: #137a53;
  font-weight: 750;
}

.bsx-commissioning-live-step.is-done .bsx-commissioning-live-mark {
  color: #ffffff;
  border-color: #16875d;
  background: #16875d;
}

.bsx-commissioning-live-step.is-error {
  color: #be3434;
}

.bsx-commissioning-live-mark {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
}

.bsx-shell.is-hager-theme .bsx-commissioning-live-title em {
  color: #003c71;
  border-color: rgba(255, 255, 255, 0.68);
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-commissioning-live-narrative {
  color: #ffffff;
  border-left-color: #70d8f7;
  background: rgba(0, 48, 87, 0.42);
}

.bsx-shell.is-hager-theme .bsx-commissioning-live-narrative
  :is(span, p),
.bsx-shell.is-hager-theme .bsx-commissioning-live-step-copy > small {
  color: rgba(255, 255, 255, 0.86);
}

@media (prefers-reduced-motion: reduce) {
  .bsx-commissioning-live-narrative-text {
    transition: none;
  }
}

@media (max-width: 680px) {
  .bsx-flex-load-choice {
    grid-template-columns: 1fr;
  }

  .bsx-flex-load-select {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .bsx-flex-load-select > b {
    grid-column: 2;
  }

  .bsx-flex-load-order {
    padding: 0 12px 10px 52px;
    justify-content: start;
  }

  .bsx-flex-ai-choice,
  .bsx-living-plan-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bsx-living-rename {
    grid-template-columns: 1fr;
  }
}

/* BlueSpring Live is an installation-scoped proof view. It stays independent
 * from the active workflow so closing it never cancels field operations. */
body.bsx-live-open {
  overflow: hidden;
}

.bsx-live-overlay {
  position: fixed;
  z-index: 260;
  inset: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow: auto;
  color: #003c71;
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 174, 239, 0.36), transparent 31%),
    linear-gradient(145deg, #0069ad 0%, #007fc8 54%, #003c71 100%);
  font-family: "Butler", Georgia, serif;
  animation: bsx-live-enter 220ms ease-out both;
}

.bsx-live-overlay * {
  box-sizing: border-box;
}

.bsx-live-topbar {
  min-height: 88px;
  padding: 18px clamp(18px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 60, 113, 0.26);
  backdrop-filter: blur(18px);
}

.bsx-live-brand,
.bsx-live-actions,
.bsx-live-route-proof,
.bsx-live-activity-head,
.bsx-live-state-list > div {
  display: flex;
  align-items: center;
}

.bsx-live-brand {
  gap: 16px;
}

.bsx-live-mark {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  color: #ffffff;
  font-family: "CODE", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.08);
}

.bsx-live-brand > div,
.bsx-live-route-proof > div,
.bsx-live-activity-head > div,
.bsx-live-state-list > div > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bsx-live-brand strong {
  color: #ffffff;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 600;
}

.bsx-live-brand small {
  color: rgba(255, 255, 255, 0.84);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bsx-live-actions {
  gap: 9px;
}

.bsx-live-pin,
.bsx-live-close {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #003c71;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 42, 78, 0.18);
  cursor: pointer;
}

.bsx-live-pin {
  padding: 0 17px;
  border-radius: 999px;
  font: 800 12px/1 Arial, sans-serif;
}

.bsx-live-pin.is-active {
  color: #ffffff;
  border-color: #00aeef;
  background: #003c71;
}

.bsx-live-close {
  width: 42px;
  padding: 0 0 4px;
  border-radius: 50%;
  font: 400 31px/1 Arial, sans-serif;
}

.bsx-live-pin:hover,
.bsx-live-close:hover,
.bsx-live-pin:focus-visible,
.bsx-live-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.bsx-live-grid {
  width: min(1580px, calc(100% - clamp(28px, 5vw, 80px)));
  min-height: calc(100dvh - 154px);
  margin: 24px auto 14px;
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(520px, 2.3fr) minmax(260px, 0.85fr);
  gap: clamp(14px, 1.7vw, 26px);
  align-items: stretch;
}

.bsx-live-overview,
.bsx-live-plan,
.bsx-live-activity {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 38, 72, 0.24);
}

.bsx-live-overview {
  min-height: 240px;
  padding: clamp(22px, 2.5vw, 38px) clamp(18px, 2vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #003c71;
  background: #b9e8f8;
}

.bsx-live-overview > span,
.bsx-live-plan > header span,
.bsx-live-activity-head small {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bsx-live-overview > strong {
  margin-top: 12px;
  color: #003c71;
  font: 600 clamp(42px, 5vw, 74px)/0.95 "Butler", Georgia, serif;
}

.bsx-live-overview > strong small {
  margin-left: 7px;
  color: #005d99;
  font: 800 16px/1 Arial, sans-serif;
}

.bsx-live-overview > p {
  margin: 12px 0 28px;
  color: #174f78;
  font: 700 13px/1.45 Arial, sans-serif;
}

.bsx-live-route-proof {
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  gap: 10px;
  border-top: 1px solid rgba(0, 60, 113, 0.20);
}

.bsx-live-route-proof > span {
  min-width: 46px;
  padding: 6px 7px;
  border-radius: 5px;
  color: #ffffff;
  background: #003c71;
  font: 800 10px/1 Arial, sans-serif;
  text-align: center;
}

.bsx-live-route-proof strong,
.bsx-live-route-proof small {
  overflow: hidden;
  color: #003c71;
  font-family: Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-live-route-proof strong {
  font-size: 13px;
}

.bsx-live-route-proof small {
  color: #32688e;
  font-size: 10px;
}

.bsx-live-plan {
  min-width: 0;
  padding: clamp(18px, 2vw, 30px);
  color: #003c71;
  background: rgba(255, 255, 255, 0.96);
}

.bsx-live-plan > header {
  margin-bottom: 17px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.bsx-live-plan h1 {
  margin: 3px 0 0;
  color: #003c71;
  font-size: clamp(25px, 2.5vw, 38px);
  font-weight: 500;
}

.bsx-live-plan > header > small {
  color: #356783;
  font: 800 10px/1.3 Arial, sans-serif;
  letter-spacing: 0.05em;
}

.bsx-live-floor-tabs {
  margin-bottom: 11px;
  display: flex;
  gap: 7px;
}

.bsx-live-floor-tabs button {
  padding: 7px 12px;
  border: 1px solid rgba(0, 60, 113, 0.20);
  border-radius: 999px;
  color: #003c71;
  background: #e9f6fb;
  font: 800 11px/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-live-floor-tabs button.is-active {
  color: #ffffff;
  border-color: #003c71;
  background: #003c71;
}

.bsx-live-plan-canvas {
  position: relative;
  width: 100%;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 113, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(rgba(0, 120, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 120, 196, 0.035) 1px, transparent 1px),
    #eef8fc;
  background-size: 24px 24px;
}

.bsx-live-room {
  position: absolute;
  overflow: visible;
  border: 2px solid #6e9fbb;
  color: #003c71;
  background: rgba(255, 255, 255, 0.74);
}

.bsx-live-room > strong {
  position: absolute;
  top: 8px;
  left: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  color: #315f7d;
  font: 800 10px/1 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-live-appliance {
  position: absolute;
  z-index: 3;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: #003c71;
  box-shadow: 0 7px 16px rgba(0, 60, 113, 0.24);
}

.bsx-live-appliance.has-field-state {
  background: #0078c4;
  box-shadow: 0 0 0 5px rgba(0, 174, 239, 0.17),
    0 8px 18px rgba(0, 60, 113, 0.25);
}

.bsx-live-appliance-glyph {
  color: #ffffff;
  font: 800 clamp(8px, 0.8vw, 11px)/1 Arial, sans-serif;
}

.bsx-live-appliance-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #8da5b5;
}

.bsx-live-appliance.has-field-state .bsx-live-appliance-pulse {
  background: #b5f12d;
  animation: bsx-live-pulse 1.8s ease-in-out infinite;
}

.bsx-live-appliance-caption {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  width: max-content;
  max-width: 155px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(0, 60, 113, 0.16);
  border-radius: 5px;
  color: #003c71;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 15px rgba(0, 60, 113, 0.12);
  font-family: Arial, sans-serif;
  transform: translateX(-50%);
}

.bsx-live-appliance-caption b,
.bsx-live-appliance-caption small {
  overflow: hidden;
  color: #003c71;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-live-appliance-caption b {
  font-size: 10px;
}

.bsx-live-appliance-caption small {
  color: #4d7089;
  font-size: 8px;
}

.bsx-live-activity {
  min-width: 0;
  padding: clamp(20px, 2vw, 29px);
  color: #ffffff;
  background: #003c71;
}

.bsx-live-activity-head {
  gap: 11px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}

.bsx-live-beacon {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 3px solid #003c71;
  border-radius: 50%;
  background: #b5f12d;
  box-shadow: 0 0 0 4px rgba(181, 241, 45, 0.18);
  animation: bsx-live-pulse 1.8s ease-in-out infinite;
}

.bsx-live-activity-head strong,
.bsx-live-activity-head small {
  color: #ffffff;
}

.bsx-live-activity-head strong {
  font-size: 18px;
  font-weight: 600;
}

.bsx-live-activity-head small {
  color: #b9d8e9;
  font-size: 9px;
  line-height: 1.4;
}

.bsx-live-activity-message {
  margin: 18px 0;
  color: #d5e8f3;
  font: 700 13px/1.5 Arial, sans-serif;
}

.bsx-live-state-list,
.bsx-live-commissioning-steps {
  display: grid;
  gap: 8px;
}

.bsx-live-state-list > div,
.bsx-live-commissioning-steps > div {
  min-width: 0;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.bsx-live-state-mark,
.bsx-live-commissioning-steps > div > span {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #486f8c;
  font: 800 9px/1 Arial, sans-serif;
}

.bsx-live-state-mark.is-live,
.bsx-live-commissioning-steps > div.is-done > span {
  color: #003c71;
  background: #b5f12d;
}

.bsx-live-state-list strong,
.bsx-live-state-list small,
.bsx-live-commissioning-steps strong,
.bsx-live-commissioning-steps small {
  overflow: hidden;
  color: #ffffff;
  font-family: Arial, sans-serif;
  text-overflow: ellipsis;
}

.bsx-live-state-list strong,
.bsx-live-commissioning-steps strong {
  font-size: 11px;
  white-space: nowrap;
}

.bsx-live-state-list small,
.bsx-live-commissioning-steps small {
  color: #b9d8e9;
  font-size: 9px;
  line-height: 1.35;
}

.bsx-live-commissioning-steps > div {
  display: flex;
  align-items: center;
}

.bsx-live-commissioning-steps > div.is-current {
  border-color: #00aeef;
  background: rgba(0, 174, 239, 0.17);
}

.bsx-live-commissioning-steps > div.is-current > span {
  color: #003c71;
  background: #ffffff;
}

.bsx-live-commissioning-steps > div.is-error {
  border-color: #ffbe4f;
  background: rgba(255, 190, 79, 0.14);
}

.bsx-live-commissioning-steps > div.is-error > span {
  color: #003c71;
  background: #ffbe4f;
}

.bsx-live-flex-proof {
  display: grid;
  gap: 9px;
}

.bsx-live-flex-proof > div {
  padding: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  color: #003c71;
  background: #d9f2fb;
}

.bsx-live-flex-proof span,
.bsx-live-flex-proof strong {
  color: #003c71;
  font-family: Arial, sans-serif;
}

.bsx-live-flex-proof span {
  font-size: 10px;
  font-weight: 800;
}

.bsx-live-flex-proof strong {
  font-size: 13px;
  text-align: right;
  text-transform: capitalize;
}

.bsx-live-footer {
  width: min(1580px, calc(100% - clamp(28px, 5vw, 80px)));
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font: 700 11px/1.35 Arial, sans-serif;
}

.bsx-live-footer > span {
  padding: 5px 8px;
  border-radius: 4px;
  color: #003c71;
  background: #b5f12d;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.bsx-live-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.bsx-live-footer time {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.bsx-live-loading {
  min-height: calc(100dvh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
}

.bsx-live-loading strong {
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
}

.bsx-live-empty {
  padding: 28px;
  border: 1px solid rgba(0, 60, 113, 0.16);
  border-radius: 10px;
  color: #003c71;
  background: #eef8fc;
  font: 700 13px/1.45 Arial, sans-serif;
}

@keyframes bsx-live-enter {
  from { opacity: 0; transform: scale(1.012); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bsx-live-pulse {
  0%, 100% { opacity: 0.75; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 1100px) {
  .bsx-live-grid {
    grid-template-columns: minmax(180px, 0.65fr) minmax(460px, 1.8fr);
  }

  .bsx-live-activity {
    grid-column: 1 / -1;
  }

  .bsx-live-state-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bsx-live-topbar {
    min-height: 74px;
    padding: 12px 14px;
  }

  .bsx-live-mark {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .bsx-live-brand {
    gap: 11px;
  }

  .bsx-live-brand strong {
    font-size: 18px;
  }

  .bsx-live-brand small,
  .bsx-live-pin {
    display: none;
  }

  .bsx-live-grid {
    width: calc(100% - 24px);
    min-height: auto;
    margin: 12px auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bsx-live-overview {
    min-height: 170px;
  }

  .bsx-live-overview > strong {
    font-size: 46px;
  }

  .bsx-live-plan {
    padding: 16px 12px;
  }

  .bsx-live-plan > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bsx-live-plan-canvas {
    min-height: 390px;
  }

  .bsx-live-appliance-caption {
    display: none;
  }

  .bsx-live-state-list {
    grid-template-columns: 1fr;
  }

  .bsx-live-footer {
    width: calc(100% - 28px);
    grid-template-columns: auto 1fr;
  }

  .bsx-live-footer time {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsx-live-overlay,
  .bsx-live-beacon,
  .bsx-live-appliance-pulse {
    animation: none;
  }
}

/* Keep the full-screen proof view inside the same Hager design system as Use.
 * The room grid deliberately prioritises readable live state over centimetre-
 * accurate marker placement; the normal Home plan keeps the editable geometry. */
.bsx-live-overlay {
  color: #ffffff;
  background: #0078c4;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-weight: 600;
}

.bsx-live-overlay button,
.bsx-live-overlay input,
.bsx-live-overlay select {
  font-family: "Hanken Grotesk", Arial, sans-serif;
}

.bsx-live-topbar {
  min-height: 116px;
  padding: 18px clamp(22px, 3vw, 52px);
  border-bottom-color: rgba(255, 255, 255, 0.20);
  background: rgba(0, 57, 103, 0.20);
  backdrop-filter: none;
}

.bsx-live-brand {
  gap: 28px;
}

.bsx-live-mark {
  --brand-ray-radius: 34px;
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  isolation: isolate;
  color: #ffffff;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bsx-live-mark .bsx-brand-orbit {
  inset: -38px;
  color: #ffffff;
  filter: none;
  animation-duration: 15s;
}

.bsx-live-mark .bsx-brand-ray::before {
  width: 1.5px;
  opacity: 0.82;
  animation-duration: 7s;
}

.bsx-live-mark img {
  position: absolute;
  z-index: 1;
  inset: 7px;
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
}

.bsx-live-brand strong {
  color: #ffffff;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 700;
}

.bsx-live-brand small {
  color: rgba(255, 255, 255, 0.78);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-weight: 600;
}

.bsx-live-grid {
  width: min(1640px, calc(100% - clamp(28px, 5vw, 82px)));
  min-height: calc(100dvh - 184px);
  margin-top: 22px;
  grid-template-columns: minmax(210px, 0.66fr) minmax(560px, 2fr)
    minmax(270px, 0.92fr);
}

.bsx-live-overview,
.bsx-live-plan,
.bsx-live-activity {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(0, 57, 103, 0.52);
  box-shadow: 0 20px 55px rgba(0, 39, 70, 0.18);
}

.bsx-live-overview > span,
.bsx-live-plan > header span,
.bsx-live-activity-head small {
  color: rgba(255, 255, 255, 0.72);
}

.bsx-live-overview > strong,
.bsx-live-overview > strong small,
.bsx-live-overview > p,
.bsx-live-plan h1,
.bsx-live-plan > header > small {
  color: #ffffff;
}

.bsx-live-overview > strong {
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-weight: 700;
}

.bsx-live-route-proof {
  border-top-color: rgba(255, 255, 255, 0.20);
}

.bsx-live-route-proof > span {
  color: #003c71;
  background: #ffffff;
}

.bsx-live-route-proof strong,
.bsx-live-route-proof small {
  color: #ffffff;
}

.bsx-live-route-proof small {
  color: rgba(255, 255, 255, 0.68);
}

.bsx-live-plan-canvas {
  min-height: 500px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(0, 45, 85, 0.28);
  background-size: 24px 24px;
}

.bsx-live-room {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.60);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.bsx-live-room > strong {
  z-index: 2;
  color: #ffffff;
  font-size: 11px;
}

.bsx-live-room-appliances {
  position: absolute;
  inset: 32px 10px 10px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  grid-auto-rows: minmax(58px, auto);
  align-content: start;
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.44) transparent;
}

.bsx-live-appliance {
  position: relative;
  z-index: 3;
  width: 100% !important;
  min-width: 0;
  min-height: 58px;
  aspect-ratio: auto !important;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  place-items: center start;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 9px;
  color: #ffffff;
  background: rgba(0, 57, 103, 0.68);
  box-shadow: none;
  transform: none !important;
}

.bsx-live-appliance:hover,
.bsx-live-appliance:focus-visible {
  z-index: 4;
  outline: 2px solid #70d8f7;
  outline-offset: -2px;
  background: rgba(0, 45, 85, 0.90);
}

.bsx-live-appliance.has-field-state {
  border-color: rgba(112, 216, 247, 0.82);
  background: rgba(0, 87, 143, 0.82);
  box-shadow: inset 3px 0 0 #70d8f7;
}

.bsx-live-appliance-glyph {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 45, 85, 0.62);
  font-size: 10px;
}

.bsx-live-appliance-pulse {
  top: 7px;
  right: 7px;
}

.bsx-live-appliance-caption {
  position: static;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0 13px 0 0;
  gap: 3px;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.bsx-live-appliance-caption b,
.bsx-live-appliance-caption small {
  width: 100%;
  color: #ffffff;
}

.bsx-live-appliance-caption b {
  font-size: 11px;
}

.bsx-live-appliance-caption small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}

.bsx-live-site-appliances {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 9px;
  background: rgba(0, 45, 85, 0.24);
}

.bsx-live-site-appliances > strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 11px;
}

.bsx-live-site-appliances > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.bsx-live-state-list > div,
.bsx-live-commissioning-steps > div {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.bsx-live-footer {
  width: min(1640px, calc(100% - clamp(28px, 5vw, 82px)));
}

@media (max-width: 1100px) {
  .bsx-live-grid {
    grid-template-columns: minmax(190px, 0.58fr) minmax(480px, 1.65fr);
  }
}

@media (max-width: 760px) {
  .bsx-live-topbar {
    min-height: 86px;
    padding: 10px 14px;
  }

  .bsx-live-brand {
    gap: 15px;
  }

  .bsx-live-mark {
    --brand-ray-radius: 25px;
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .bsx-live-mark .bsx-brand-orbit {
    inset: -27px;
  }

  .bsx-live-mark img {
    inset: 5px;
    width: 42px;
    height: 42px;
  }

  .bsx-live-grid {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }

  .bsx-live-plan-canvas {
    min-height: 420px;
  }

  .bsx-live-appliance-caption {
    display: flex;
  }
}

.bsx-commissioning-pong-open {
  width: 100%;
  margin-top: 14px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 60, 113, 0.24);
  border-radius: 9px;
  color: #003c71;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 48, 88, 0.13);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.bsx-commissioning-pong-open:hover,
.bsx-commissioning-pong-open:focus-visible {
  border-color: #00aeef;
  outline: 3px solid rgba(0, 174, 239, 0.22);
  outline-offset: 2px;
  box-shadow: 0 11px 28px rgba(0, 48, 88, 0.19);
  transform: translateY(-1px);
}

.bsx-commissioning-pong-open > span {
  flex: 0 0 54px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: #003c71;
  font: 800 9px/1 Arial, sans-serif;
  letter-spacing: 0.13em;
}

.bsx-commissioning-pong-open > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bsx-commissioning-pong-open strong,
.bsx-commissioning-pong-open small {
  color: #003c71;
}

.bsx-commissioning-pong-open strong {
  font-size: 14px;
  font-weight: 600;
}

.bsx-commissioning-pong-open small {
  color: #4d7089;
  font: 700 10px/1.35 Arial, sans-serif;
}

body.bsx-pong-open {
  overflow: hidden;
}

.bsx-pong-overlay {
  position: fixed;
  z-index: 290;
  inset: 0;
  padding: clamp(14px, 3vw, 42px);
  display: grid;
  place-items: center;
  overflow: auto;
  color: #003c71;
  background: rgba(0, 32, 60, 0.72);
  backdrop-filter: blur(13px);
  animation: bsx-pong-enter 180ms ease-out both;
}

.bsx-pong-card {
  width: min(920px, 100%);
  max-height: calc(100dvh - 28px);
  padding: clamp(16px, 2.5vw, 30px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  color: #003c71;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 20, 38, 0.42);
  font-family: "Butler", Georgia, serif;
}

.bsx-pong-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.bsx-pong-head > div {
  min-width: 0;
}

.bsx-pong-head span {
  color: #0078c4;
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bsx-pong-head h2 {
  margin: 5px 0 0;
  color: #003c71;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
}

.bsx-pong-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  border: 1px solid rgba(0, 60, 113, 0.22);
  border-radius: 50%;
  color: #ffffff;
  background: #003c71;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-pong-close:hover,
.bsx-pong-close:focus-visible {
  outline: 3px solid rgba(0, 174, 239, 0.28);
  outline-offset: 2px;
  background: #0078c4;
}

.bsx-pong-safety {
  margin: 16px 0 13px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(31, 130, 78, 0.24);
  border-radius: 8px;
  color: #155f3d;
  background: #e2f5e9;
}

.bsx-pong-safety > span {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #1f824e;
  font: 800 12px/1 Arial, sans-serif;
}

.bsx-pong-safety p {
  margin: 0;
  color: #155f3d;
  font: 700 11px/1.4 Arial, sans-serif;
}

.bsx-pong-scoreboard {
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 15px;
  color: #003c71;
  font: 800 11px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.bsx-pong-scoreboard > span:last-child {
  text-align: right;
}

.bsx-pong-score {
  min-width: 82px;
  color: #003c71;
  font: 600 22px/1 "Butler", Georgia, serif;
  text-align: center;
}

.bsx-pong-canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid #0078c4;
  border-radius: 11px;
  background: #003c71;
  box-shadow: 0 14px 32px rgba(0, 60, 113, 0.24);
  touch-action: none;
}

.bsx-pong-canvas:focus-visible {
  outline: 4px solid rgba(181, 241, 45, 0.62);
  outline-offset: 3px;
}

.bsx-pong-help {
  margin: 10px 0 0;
  color: #456c88;
  font: 700 10px/1.4 Arial, sans-serif;
  text-align: center;
}

.bsx-game-stage {
  min-height: 310px;
}

.bsx-game-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bsx-game-choice {
  min-height: 112px;
  padding: 15px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: #003c71;
  border: 1px solid rgba(0, 60, 113, 0.2);
  border-radius: 12px;
  background: #f2f8fc;
  text-align: left;
  cursor: pointer;
}

.bsx-game-choice:hover,
.bsx-game-choice:focus-visible {
  border-color: #00aeef;
  background: #e3f5fc;
  outline: 3px solid rgba(0, 174, 239, 0.18);
  outline-offset: 2px;
}

.bsx-game-choice > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 10px;
  background: #003c71;
  font: 800 18px/1 Arial, sans-serif;
}

.bsx-game-choice > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.bsx-game-choice strong {
  color: #003c71;
  font-size: 19px;
}

.bsx-game-choice small {
  color: #4d7089;
  font: 700 11px/1.3 Arial, sans-serif;
}

.bsx-game-toolbar {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bsx-game-toolbar > span {
  color: #4d7089;
  font: 700 10px/1.3 Arial, sans-serif;
  text-align: right;
}

.bsx-game-back,
.bsx-game-new {
  min-height: 38px;
  padding: 8px 13px;
  color: #ffffff;
  border: 1px solid #003c71;
  border-radius: 7px;
  background: #003c71;
  font: 800 11px/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-game-back:hover,
.bsx-game-back:focus-visible,
.bsx-game-new:hover,
.bsx-game-new:focus-visible {
  color: #003c71;
  border-color: #00aeef;
  background: #e8f7fd;
  outline: 2px solid rgba(0, 174, 239, 0.22);
  outline-offset: 2px;
}

.bsx-game-status {
  min-height: 24px;
  margin: 2px 0 10px;
  display: block;
  color: #003c71;
  font-size: 17px;
  text-align: center;
}

.bsx-morpion-grid {
  width: min(360px, 100%);
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.bsx-morpion-cell {
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  color: #003c71;
  border: 2px solid rgba(0, 60, 113, 0.2);
  border-radius: 10px;
  background: #f2f8fc;
  font: 800 clamp(34px, 8vw, 58px)/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-morpion-cell.is-x {
  color: #0078c4;
  background: #e4f5fc;
}

.bsx-morpion-cell.is-o {
  color: #16734a;
  background: #e4f6eb;
}

.bsx-morpion-cell:focus-visible {
  border-color: #00aeef;
  outline: 3px solid rgba(0, 174, 239, 0.24);
}

.bsx-game-stage > .bsx-game-new {
  margin: 0 auto;
  display: block;
}

.bsx-snake-canvas {
  max-height: min(54vh, 500px);
  object-fit: contain;
}

.bsx-snake-controls {
  margin: 10px auto;
  display: grid;
  grid-template-columns: repeat(4, 50px);
  justify-content: center;
  gap: 7px;
}

.bsx-snake-controls button {
  width: 50px;
  height: 42px;
  padding: 0;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  background: #0078c4;
  font: 800 20px/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-snake-controls button:hover,
.bsx-snake-controls button:focus-visible {
  background: #003c71;
  outline: 3px solid rgba(0, 174, 239, 0.26);
}

.bsx-solitaire-draw {
  margin: 0 0 13px;
  display: grid;
  grid-template-columns: 76px 76px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.bsx-solitaire-draw > div {
  display: grid;
  gap: 4px;
}

.bsx-solitaire-draw small {
  color: #4d7089;
  font: 800 9px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.bsx-solitaire-draw p {
  margin: 0 0 6px;
  color: #4d7089;
  font: 700 10px/1.4 Arial, sans-serif;
}

.bsx-solitaire-stock,
.bsx-solitaire-waste {
  width: 66px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(0, 60, 113, 0.24);
  border-radius: 8px;
  color: #ffffff;
  background: #0078c4;
  font: 800 12px/1.25 Arial, sans-serif;
  white-space: pre-line;
}

.bsx-solitaire-stock {
  cursor: pointer;
}

.bsx-solitaire-stock:disabled {
  color: #4d7089;
  background: #edf3f7;
  cursor: default;
}

.bsx-solitaire-waste {
  background: #e8f7fd;
}

.bsx-solitaire-board {
  min-height: 170px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(7, minmax(58px, 1fr));
  gap: 8px;
}

.bsx-solitaire-column {
  position: relative;
  min-width: 0;
  height: 164px;
  padding: 0;
  border: 1px dashed rgba(0, 60, 113, 0.25);
  border-radius: 8px;
  background: #edf5f9;
  cursor: pointer;
}

.bsx-solitaire-column.is-playable {
  border-color: #1f824e;
  background: #e2f5e9;
  box-shadow: 0 0 0 3px rgba(31, 130, 78, 0.12);
}

.bsx-playing-card {
  position: absolute;
  top: calc(var(--card-index, 0) * 18px);
  left: 5px;
  right: 5px;
  height: 72px;
  padding: 6px;
  display: block;
  box-sizing: border-box;
  color: #003c71;
  border: 1px solid rgba(0, 60, 113, 0.25);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 48, 88, 0.12);
  font: 800 14px/1 Arial, sans-serif;
  text-align: left;
}

.bsx-playing-card:nth-child(2) { --card-index: 1; }
.bsx-playing-card:nth-child(3) { --card-index: 2; }
.bsx-playing-card:nth-child(4) { --card-index: 3; }
.bsx-playing-card:nth-child(5) { --card-index: 4; }

.bsx-playing-card.is-red {
  color: #bd2948;
}

.bsx-playing-card.is-top {
  border-color: #0078c4;
}

.bsx-solitaire-waste .bsx-playing-card {
  position: static;
  width: 58px;
  height: 76px;
}

@keyframes bsx-pong-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .bsx-pong-overlay {
    padding: 0;
    place-items: stretch;
  }

  .bsx-pong-card {
    width: 100vw;
    min-height: 100dvh;
    max-height: none;
    padding: 18px 12px 26px;
    border: 0;
    border-radius: 0;
  }

  .bsx-pong-safety {
    margin-top: 13px;
  }

  .bsx-pong-help {
    padding: 0 12px;
  }

  .bsx-game-stage {
    min-height: 0;
  }

  .bsx-game-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .bsx-game-choice {
    min-height: 84px;
  }

  .bsx-game-toolbar {
    align-items: flex-start;
  }

  .bsx-solitaire-draw {
    grid-template-columns: 68px 68px minmax(0, 1fr);
    gap: 7px;
  }

  .bsx-solitaire-board {
    grid-template-columns: repeat(7, minmax(38px, 1fr));
    gap: 3px;
  }

  .bsx-solitaire-column {
    height: 140px;
  }

  .bsx-playing-card {
    left: 2px;
    right: 2px;
    padding: 4px 2px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsx-pong-overlay {
    animation: none;
  }
}

.bsx-commissioning-identity {
  display: grid;
  gap: 8px;
}

.bsx-commissioning-identity input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 60, 113, 0.20);
  border-radius: 10px;
  background: #ffffff;
  color: #003c71;
  caret-color: #003c71;
}

.bsx-commissioning-identity input::placeholder {
  color: #55758f;
  opacity: 1;
}

.bsx-commissioning-journey-item {
  min-width: 0;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(0, 60, 113, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
}

.bsx-commissioning-journey-item.is-complete {
  border-color: rgba(22, 135, 93, 0.30);
  background: rgba(236, 248, 242, 0.84);
}

.bsx-commissioning-journey-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0077b8;
  background: rgba(0, 174, 239, 0.10);
}

.bsx-commissioning-journey-item.is-complete
  .bsx-commissioning-journey-icon {
  color: #16875d;
  background: rgba(22, 135, 93, 0.12);
}

.bsx-commissioning-journey-item strong,
.bsx-commissioning-journey-item small {
  display: block;
}

.bsx-commissioning-journey-item strong {
  overflow: hidden;
  color: #003c71;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-commissioning-journey-item small {
  margin-top: 2px;
  color: #607b91;
  font-size: 10px;
}

.bsx-commissioning-journey-item em {
  color: #607b91;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.bsx-commissioning-journey-item.is-complete em {
  color: #16875d;
}

.bsx-maintenance-scope {
  margin: 8px 0 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bsx-maintenance-scope span {
  padding: 4px 7px;
  border: 1px solid rgba(0, 119, 184, 0.20);
  border-radius: 999px;
  color: #365f83;
  background: rgba(0, 174, 239, 0.07);
  font-size: 10px;
}

.bsx-commissioning-product strong {
  color: #123654;
  font-size: 14px;
}

.bsx-commissioning-product span {
  margin-top: 2px;
  color: rgba(18, 54, 84, 0.66);
  font-size: 12px;
}

.bsx-commissioning-action {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(18, 54, 84, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: #123654;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bsx-commissioning-action:hover,
.bsx-commissioning-action:focus-visible,
.bsx-commissioning-action.is-primary {
  border-color: #123654;
  background: #123654;
  color: #fff;
}

.bsx-room-validation {
  margin: 18px 0 6px;
  padding: 14px;
  border: 1px solid rgba(18, 54, 84, 0.16);
  border-radius: 6px;
  background: rgba(245, 249, 251, 0.78);
}

.bsx-room-validation.has-progress {
  border-color: rgba(22, 135, 93, 0.32);
  background: rgba(235, 248, 242, 0.72);
}

.bsx-room-validation-head {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #123654;
}

.bsx-room-validation-head span {
  font-size: 12px;
  opacity: 0.68;
}

.bsx-room-validation-head strong {
  font-size: 13px;
}

.bsx-room-validation-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(18, 54, 84, 0.09);
}

.bsx-room-validation-check {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid rgba(18, 54, 84, 0.28);
  border-radius: 50%;
  color: #ffffff;
  font: 700 11px/1 Arial, sans-serif;
}

.bsx-room-validation-item.is-ready .bsx-room-validation-check {
  border-color: #16875d;
  background: #16875d;
}

.bsx-room-validation-item strong,
.bsx-room-validation-item small {
  display: block;
}

.bsx-room-validation-item strong {
  color: #123654;
  font-size: 13px;
}

.bsx-room-validation-item small {
  margin-top: 2px;
  color: rgba(18, 54, 84, 0.64);
  font-size: 11px;
}

/* Alternate Hager presentation theme. The lifecycle and card structure stays
 * identical, while the visual hierarchy moves to a high-contrast field UI. */
.bsx-shell.is-hager-theme {
  --bsx-blue-surface: #005f99;
  --bsx-blue-surface-deep: #003c71;
  --bsx-blue-surface-text: #ffffff;
  --bsx-blue-surface-muted: rgba(255, 255, 255, 0.78);
  color: #ffffff;
  background: #0078c4;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-weight: 500;
}

.bsx-shell.is-hager-theme .bsx-ambient {
  opacity: 0;
}

.bsx-shell.is-hager-theme .bsx-brand {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-wash {
  background: transparent;
}

.bsx-shell.is-hager-theme,
.bsx-shell.is-hager-theme button,
.bsx-shell.is-hager-theme input,
.bsx-shell.is-hager-theme textarea,
.bsx-shell.is-hager-theme select,
.bsx-shell.is-hager-theme .be-wordmark {
  font-family: "Hanken Grotesk", Arial, sans-serif !important;
  font-weight: 600 !important;
}

.bsx-shell.is-hager-theme .bsx-identity,
.bsx-shell.is-hager-theme .bsx-electrician-home,
.bsx-shell.is-hager-theme .bsx-history-button,
.bsx-shell.is-hager-theme .bsx-signout,
.bsx-shell.is-hager-theme .bsx-question,
.bsx-shell.is-hager-theme .bsx-guidance,
.bsx-shell.is-hager-theme .bsx-status,
.bsx-shell.is-hager-theme .bsx-input-shell,
.bsx-shell.is-hager-theme .bsx-input,
.bsx-shell.is-hager-theme .bsx-input::placeholder,
.bsx-shell.is-hager-theme .bsx-waiting-state {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-electrician-home,
.bsx-shell.is-hager-theme .bsx-history-button {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(0, 57, 103, 0.22);
}

.bsx-shell.is-hager-theme .bsx-electrician-home:hover,
.bsx-shell.is-hager-theme .bsx-electrician-home:focus-visible,
.bsx-shell.is-hager-theme .bsx-history-button:hover,
.bsx-shell.is-hager-theme .bsx-history-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 57, 103, 0.42);
}

.bsx-shell.is-hager-theme .bsx-assistant-reply {
  color: #ffffff;
  border-left-color: #ffffff;
  background: rgba(0, 57, 103, 0.42);
  box-shadow: 0 14px 34px rgba(0, 39, 70, 0.18);
}

.bsx-shell.is-hager-theme .bsx-assistant-reply > header span,
.bsx-shell.is-hager-theme .bsx-assistant-reply > header strong {
  color: rgba(255, 255, 255, 0.76);
}

.bsx-shell.is-hager-theme .bsx-guidance,
.bsx-shell.is-hager-theme .bsx-input::placeholder {
  opacity: 0.72;
}

.bsx-shell.is-hager-theme .bsx-input,
.bsx-shell.is-hager-theme .bsx-login-input {
  caret-color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-login-input {
  border-bottom-color: rgba(255, 255, 255, 0.52);
}

.bsx-shell.is-hager-theme .bsx-login-input:-webkit-autofill,
.bsx-shell.is-hager-theme .bsx-login-input:-webkit-autofill:hover,
.bsx-shell.is-hager-theme .bsx-login-input:-webkit-autofill:focus,
.bsx-shell.is-hager-theme .bsx-login-input:autofill {
  border-bottom-color: rgba(255, 255, 255, 0.72);
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  box-shadow: 0 0 0 1000px #0078c4 inset;
}

.bsx-shell.is-hager-theme .bsx-settings-button,
.bsx-shell.is-hager-theme .bsx-theme-toggle {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(0, 60, 113, 0.30);
  box-shadow: 0 8px 24px rgba(0, 42, 75, 0.20);
}

.bsx-shell.is-hager-theme .bsx-settings-popover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(0, 57, 103, 0.90);
  box-shadow: 0 18px 46px rgba(0, 42, 75, 0.24);
}

.bsx-shell.is-hager-theme .bsx-settings-row,
.bsx-shell.is-hager-theme .bsx-settings-status {
  color: rgba(255, 255, 255, 0.74);
}

.bsx-shell.is-hager-theme .bsx-settings-select {
  color: #003c71;
  border-color: rgba(255, 255, 255, 0.36);
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-settings-save {
  color: #003c71;
  border-color: #ffffff;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-settings-danger {
  border-color: rgba(255, 255, 255, 0.20);
}

.bsx-shell.is-hager-theme .bsx-settings-danger span {
  color: rgba(255, 255, 255, 0.70);
}

.bsx-shell.is-hager-theme .bsx-settings-reset,
.bsx-shell.is-hager-theme .bsx-settings-reset-cancel {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.34);
}

.bsx-shell.is-hager-theme .bsx-settings-reset.is-armed {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.66);
  background: #8d2f3a;
}

.bsx-shell.is-hager-theme .bsx-option,
.bsx-shell.is-hager-theme .bsx-inline-action,
.bsx-shell.is-hager-theme .bsx-login-submit,
.bsx-shell.is-hager-theme .bsx-option-trigger {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(0, 60, 113, 0.28);
  box-shadow: none;
}

.bsx-shell.is-hager-theme .bsx-option.is-journey-action {
  color: #003c71;
  border-color: #ffffff;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-option:hover,
.bsx-shell.is-hager-theme .bsx-inline-action:hover,
.bsx-shell.is-hager-theme .bsx-login-submit:hover,
.bsx-shell.is-hager-theme .bsx-option-trigger:hover,
.bsx-shell.is-hager-theme .bsx-option-trigger[aria-expanded="true"] {
  color: #0077b8;
  border-color: #ffffff;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-option.is-journey-action:hover,
.bsx-shell.is-hager-theme .bsx-option.is-journey-action:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(0, 48, 87, 0.54);
}

.bsx-shell.is-hager-theme .bsx-option.is-journey-action[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 48, 87, 0.28);
}

.bsx-shell.is-hager-theme .bsx-option.is-hager-order,
.bsx-shell.is-hager-theme .bsx-option.is-hager-order:hover,
.bsx-shell.is-hager-theme .bsx-option.is-hager-order:focus-visible {
  color: #ffffff;
  border-color: #77dcff;
  background: linear-gradient(100deg, #003c71, #0077b8 58%, #00aeef);
  box-shadow: 0 12px 32px rgba(0, 48, 87, 0.34);
}

.bsx-shell.is-hager-theme .bsx-map-legend {
  color: rgba(255, 255, 255, 0.88);
}

.bsx-shell.is-hager-theme .bsx-map-marker-caption,
.bsx-shell.is-hager-theme .bsx-installation-room > .bsx-plan-room-label {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 60, 113, 0.92);
}

.bsx-shell.is-hager-theme .bsx-map-marker-caption small {
  color: rgba(255, 255, 255, 0.72);
}

.bsx-shell.is-hager-theme .bsx-map-items > strong {
  color: rgba(255, 255, 255, 0.84);
}

.bsx-shell.is-hager-theme .bsx-map-items button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 60, 113, 0.58);
}

.bsx-shell.is-hager-theme .bsx-electrical-panel-toggle {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 48, 87, 0.34);
}

.bsx-shell.is-hager-theme .bsx-electrical-panel-toggle:hover,
.bsx-shell.is-hager-theme .bsx-electrical-panel-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 48, 87, 0.54);
}

.bsx-shell.is-hager-theme .bsx-electrical-panel-toggle-copy small {
  color: rgba(255, 255, 255, 0.72);
}

.bsx-shell.is-hager-theme .bsx-voice {
  color: #ffffff;
  background: transparent;
}

.bsx-shell.is-hager-theme .bsx-voice:hover,
.bsx-shell.is-hager-theme .bsx-voice:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.bsx-shell.is-hager-theme .bsx-voice.is-listening {
  color: #0077b8;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-back-button {
  color: #ffffff;
  background: rgba(0, 60, 113, 0.24);
}

.bsx-shell.is-hager-theme .bsx-back-button:hover,
.bsx-shell.is-hager-theme .bsx-back-button:focus-visible {
  background: rgba(0, 60, 113, 0.42);
}

.bsx-shell.is-hager-theme .bsx-qr-scanner {
  background: rgba(0, 64, 105, 0.72);
}

.bsx-shell.is-hager-theme .bsx-qr-scanner-panel {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 60, 113, 0.94);
}

.bsx-shell.is-hager-theme .bsx-qr-scanner-panel > span {
  color: rgba(255, 255, 255, 0.74);
}

.bsx-shell.is-hager-theme .bsx-journey-step {
  color: rgba(255, 255, 255, 0.55);
}

.bsx-shell.is-hager-theme .bsx-journey-step:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.26);
}

.bsx-shell.is-hager-theme .bsx-journey-step.is-current,
.bsx-shell.is-hager-theme .bsx-journey-step.is-complete {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-journey-dot {
  border-color: rgba(255, 255, 255, 0.70);
  background: #0077b8;
}

.bsx-shell.is-hager-theme .bsx-journey-step.is-current .bsx-journey-dot,
.bsx-shell.is-hager-theme .bsx-journey-step.is-complete .bsx-journey-dot {
  color: #0077b8;
  border-color: #ffffff;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-context-card {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 57, 103, 0.52);
  box-shadow: 0 20px 55px rgba(0, 39, 70, 0.22);
  backdrop-filter: blur(20px);
}

.bsx-shell.is-hager-theme .bsx-chart-grid {
  stroke: rgba(255, 255, 255, 0.16);
}

.bsx-shell.is-hager-theme .bsx-chart-baseline {
  stroke: rgba(255, 255, 255, 0.24);
}

.bsx-shell.is-hager-theme .bsx-chart-axis-label {
  fill: rgba(255, 255, 255, 0.72);
}

.bsx-shell.is-hager-theme .bsx-chart-time-tick {
  stroke: rgba(255, 255, 255, 0.3);
}

.bsx-shell.is-hager-theme .bsx-chart-time-label {
  fill: rgba(255, 255, 255, 0.78);
}

.bsx-shell.is-hager-theme .bsx-chart-time-reference,
.bsx-shell.is-hager-theme .bsx-appliance-history-time {
  color: rgba(255, 255, 255, 0.76);
}

.bsx-shell.is-hager-theme .bsx-chart-area,
.bsx-shell.is-hager-theme .bsx-appliance-history-area {
  fill: rgba(68, 208, 255, 0.22);
}

.bsx-shell.is-hager-theme .bsx-chart-line,
.bsx-shell.is-hager-theme .bsx-appliance-history-line {
  stroke: #83e7ff;
  filter: drop-shadow(0 0 5px rgba(131, 231, 255, 0.58));
}

.bsx-shell.is-hager-theme .bsx-chart-line {
  stroke-width: 4.5;
}

@media (max-width: 520px) {
  .bsx-chart-time-label.is-mobile-hidden {
    display: none;
  }
}

.bsx-shell.is-hager-theme
  .bsx-main.has-simulation-editor-context .bsx-conversation {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(155deg,
    rgba(0, 57, 103, 0.76), rgba(0, 42, 76, 0.62));
  box-shadow: 0 22px 58px rgba(0, 32, 57, 0.28);
}

.bsx-shell.is-hager-theme
  .bsx-main.has-simulation-editor-context .bsx-conversation::before {
  color: #8dd6ff;
}

.bsx-shell.is-hager-theme
  .bsx-main.has-simulation-editor-context .bsx-context-card.is-workspace {
  border-color: rgba(141, 214, 255, 0.42);
  background: linear-gradient(150deg,
    rgba(0, 73, 125, 0.80), rgba(0, 39, 70, 0.72));
  box-shadow: 0 24px 64px rgba(0, 24, 43, 0.34);
}

.bsx-shell.is-hager-theme .bsx-context-card.is-proposal.is-featured {
  border-color: rgba(130, 255, 203, 0.88);
  background: linear-gradient(145deg, rgba(11, 114, 80, 0.55), rgba(0, 57, 103, 0.64));
  box-shadow: 0 24px 62px rgba(0, 35, 61, 0.34);
}

.bsx-shell.is-hager-theme .bsx-context-card.is-smart-shedding {
  border-color: rgba(130, 255, 203, 0.88);
  background: linear-gradient(145deg, rgba(8, 112, 77, 0.78), rgba(0, 57, 103, 0.72));
  box-shadow: 0 24px 62px rgba(0, 35, 61, 0.34);
}

.bsx-shell.is-hager-theme .bsx-smart-shedding-state,
.bsx-shell.is-hager-theme .bsx-smart-shedding-signals > div {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 48, 87, 0.28);
}

.bsx-shell.is-hager-theme .bsx-smart-shedding-state.is-active {
  background: rgba(7, 91, 63, 0.38);
}

.bsx-shell.is-hager-theme .bsx-smart-shedding-state > span {
  color: #ffffff;
  background: #0077b8;
}

.bsx-shell.is-hager-theme .bsx-smart-shedding-state.is-active > span,
.bsx-shell.is-hager-theme .bsx-smart-shedding-action.is-active {
  color: #ffffff;
  border-color: #5fe0a8;
  background: #08774f;
}

.bsx-shell.is-hager-theme .bsx-context-card.is-flex-offer,
.bsx-shell.is-hager-theme .bsx-context-card.is-flex-settings,
.bsx-shell.is-hager-theme .bsx-context-card.is-flex-events {
  border-color: rgba(112, 216, 247, 0.9);
  background: linear-gradient(145deg, rgba(0, 87, 143, 0.84), rgba(0, 45, 85, 0.78));
  box-shadow: 0 24px 62px rgba(0, 35, 61, 0.38);
}

.bsx-shell.is-hager-theme .bsx-option.is-icon-shortcut.is-flex-attention,
.bsx-shell.is-hager-theme .bsx-option.is-icon-shortcut.is-flex-attention:hover,
.bsx-shell.is-hager-theme .bsx-option.is-icon-shortcut.is-flex-attention:focus-visible {
  color: #003c71;
  border-color: #ffd94a;
  background: #fff6c5;
}

.bsx-shell.is-hager-theme :is(
  .bsx-flex-events-open,
  .bsx-flex-events-back,
  .bsx-flex-history-summary > div,
  .bsx-flex-history-item,
  .bsx-flex-history-empty
) {
  color: #ffffff;
  border-color: rgba(112, 216, 247, 0.48);
  background: #0b679a;
}

.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-events-open strong,
.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-summary strong,
.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-heading strong,
.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-empty strong {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-events-open small,
.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-summary span,
.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-copy p,
.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-copy small,
.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-empty p,
.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-note {
  color: rgba(255, 255, 255, 0.78);
}

.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-status {
  color: #eaf9ff;
}

.bsx-shell.is-hager-theme .bsx-context-card
  .bsx-flex-history-status.is-pending {
  color: #624800;
}

.bsx-shell.is-hager-theme .bsx-flex-history-item.is-pending,
.bsx-shell.is-hager-theme .bsx-flex-history-summary > div.is-pending {
  background: #176b8d;
}

.bsx-shell.is-hager-theme
  .bsx-flex-history-item .bsx-flex-history-action {
  color: #ffffff;
  border-color: #0077b8;
  background: #0077b8;
}

.bsx-shell.is-hager-theme
  .bsx-flex-history-item .bsx-flex-history-action:hover,
.bsx-shell.is-hager-theme
  .bsx-flex-history-item .bsx-flex-history-action:focus-visible {
  color: #003c71;
  border-color: #00aeef;
  background: #e8f7fd;
  outline: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bsx-option.is-icon-shortcut.is-flex-attention {
    animation: none;
  }
}

.bsx-shell.is-hager-theme .bsx-flex-setting-choice,
.bsx-shell.is-hager-theme .bsx-flex-settings-proof,
.bsx-shell.is-hager-theme .bsx-flex-execution {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 48, 87, 0.3);
}

.bsx-shell.is-hager-theme .bsx-flex-loads-open,
.bsx-shell.is-hager-theme .bsx-flex-load-choice,
.bsx-shell.is-hager-theme .bsx-flex-load-empty {
  color: #ffffff;
  border-color: rgba(112, 216, 247, 0.48);
  background: #075b91;
}

.bsx-shell.is-hager-theme .bsx-flex-load-choice.is-selected,
.bsx-shell.is-hager-theme .bsx-flex-loads-open {
  border-color: #70d8f7;
  background: #0077b8;
}

.bsx-shell.is-hager-theme .bsx-flex-setting-choice.is-selected {
  border-color: #70d8f7;
  background: rgba(0, 174, 239, 0.22);
  box-shadow: inset 0 0 0 1px #70d8f7, 0 8px 18px rgba(0, 35, 61, 0.24);
}

.bsx-shell.is-hager-theme :is(
  .bsx-flex-settings-intro,
  .bsx-flex-setting-choice small,
  .bsx-flex-settings-proof span,
  .bsx-flex-settings-updated,
  .bsx-flex-settings-link-note,
  .bsx-flex-execution
) {
  color: rgba(255, 255, 255, 0.78);
}

.bsx-shell.is-hager-theme .bsx-flex-setting-choice em {
  color: #79edbd;
}

.bsx-shell.is-hager-theme :is(
  .bsx-flex-hero,
  .bsx-flex-metrics > div,
  .bsx-flex-auto,
  .bsx-flex-result
) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 48, 87, 0.3);
}

.bsx-shell.is-hager-theme .bsx-flex-hero.is-accepted,
.bsx-shell.is-hager-theme .bsx-flex-hero.is-complete,
.bsx-shell.is-hager-theme .bsx-flex-result {
  background: rgba(7, 91, 63, 0.48);
}

.bsx-shell.is-hager-theme :is(
  .bsx-flex-hero p,
  .bsx-flex-reward small,
  .bsx-flex-metrics span,
  .bsx-flex-resources > span,
  .bsx-flex-auto > p,
  .bsx-flex-result p
) {
  color: rgba(255, 255, 255, 0.78);
}

.bsx-shell.is-hager-theme .bsx-flex-resources em {
  color: #ffffff;
  border-color: rgba(112, 216, 247, 0.45);
  background: rgba(0, 174, 239, 0.14);
}

.bsx-shell.is-hager-theme .bsx-flex-privacy {
  color: #ffffff;
  border-left-color: #70d8f7;
  background: rgba(0, 174, 239, 0.12);
}

.bsx-shell.is-hager-theme .bsx-flex-auto summary,
.bsx-shell.is-hager-theme .bsx-flex-secondary {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-flex-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.bsx-shell.is-hager-theme .bsx-context-card :is(
  h2, h3, h4, p, span, strong, small, label, li, dt, dd
) {
  color: inherit;
}

.bsx-shell.is-hager-theme .bsx-proposal-details,
.bsx-shell.is-hager-theme .bsx-proposal-product-line,
.bsx-shell.is-hager-theme .bsx-proposal-scope,
.bsx-shell.is-hager-theme .bsx-proposal-validation,
.bsx-shell.is-hager-theme .bsx-proposal-category > header {
  border-color: rgba(255, 255, 255, 0.22);
}

.bsx-shell.is-hager-theme .bsx-proposal-product-line,
.bsx-shell.is-hager-theme .bsx-proposal-scope > div {
  background: rgba(0, 48, 87, 0.28);
}

.bsx-shell.is-hager-theme .bsx-proposal-scope {
  background: rgba(255, 255, 255, 0.22);
}

.bsx-shell.is-hager-theme .bsx-proposal-validation {
  background: rgba(11, 114, 80, 0.28);
}

.bsx-shell.is-hager-theme .bsx-proposal-capabilities {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 48, 87, 0.28);
}

.bsx-shell.is-hager-theme .bsx-proposal-coverage li {
  color: rgba(255, 255, 255, 0.9);
}

.bsx-shell.is-hager-theme .bsx-card-kicker,
.bsx-shell.is-hager-theme .bsx-context-card small,
.bsx-shell.is-hager-theme .bsx-context-card label,
.bsx-shell.is-hager-theme .bsx-context-card span {
  color: rgba(255, 255, 255, 0.72);
}

.bsx-shell.is-hager-theme .bsx-card-title,
.bsx-shell.is-hager-theme .bsx-card-close,
.bsx-shell.is-hager-theme .bsx-card-collapse,
.bsx-shell.is-hager-theme .bsx-card-resize,
.bsx-shell.is-hager-theme .bsx-card-tool,
.bsx-shell.is-hager-theme .bsx-context-card strong,
.bsx-shell.is-hager-theme .bsx-context-card h3,
.bsx-shell.is-hager-theme .bsx-context-card h4 {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-commissioning-edge-proof,
.bsx-shell.is-hager-theme .bsx-commissioning-edge-proof span,
.bsx-shell.is-hager-theme .bsx-commissioning-edge-proof strong,
.bsx-shell.is-hager-theme .bsx-commissioning-edge-proof small {
  color: #003c71;
}

.bsx-shell.is-hager-theme .bsx-commissioning-pong-open {
  color: #ffffff;
  border-color: rgba(112, 216, 247, 0.72);
  background: rgba(0, 60, 113, 0.76);
  box-shadow: 0 8px 22px rgba(0, 32, 60, 0.28);
}

.bsx-shell.is-hager-theme .bsx-commissioning-pong-open:hover,
.bsx-shell.is-hager-theme .bsx-commissioning-pong-open:focus-visible {
  border-color: #ffffff;
  background: rgba(0, 48, 87, 0.92);
}

.bsx-shell.is-hager-theme .bsx-commissioning-pong-open > span {
  color: #003c71;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-commissioning-pong-open strong {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-commissioning-pong-open small {
  color: rgba(255, 255, 255, 0.86);
}

.bsx-shell.is-hager-theme .bsx-transceiver-picker label > span,
.bsx-shell.is-hager-theme .bsx-transceiver-status small {
  color: #50708c;
}

.bsx-shell.is-hager-theme .bsx-transceiver-status strong {
  color: #003c71;
}

.bsx-shell.is-hager-theme .bsx-energy-periods {
  background: rgba(255, 255, 255, 0.12);
}

.bsx-shell.is-hager-theme .bsx-energy-period {
  color: rgba(255, 255, 255, 0.78);
}

.bsx-shell.is-hager-theme .bsx-energy-period:hover,
.bsx-shell.is-hager-theme .bsx-energy-period:focus-visible,
.bsx-shell.is-hager-theme .bsx-energy-period.is-active {
  color: #003c71;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-energy-period-label {
  color: rgba(255, 255, 255, 0.72);
}

.bsx-shell.is-hager-theme .bsx-assistant-table-wrap {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 48, 87, 0.28);
}

.bsx-shell.is-hager-theme .bsx-assistant-table :is(th, td) {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.bsx-shell.is-hager-theme .bsx-assistant-table th {
  background: rgba(255, 255, 255, 0.10);
}

.bsx-shell.is-hager-theme .bsx-report-status,
.bsx-shell.is-hager-theme .bsx-report-open-points,
.bsx-shell.is-hager-theme .bsx-report-technical {
  color: #003c71;
}

.bsx-shell.is-hager-theme .bsx-report-status strong,
.bsx-shell.is-hager-theme .bsx-report-status small,
.bsx-shell.is-hager-theme .bsx-report-open-points li,
.bsx-shell.is-hager-theme .bsx-report-technical summary,
.bsx-shell.is-hager-theme .bsx-report-technical p,
.bsx-shell.is-hager-theme .bsx-report-fingerprint span,
.bsx-shell.is-hager-theme .bsx-report-fingerprint code {
  color: #003c71;
}

.bsx-shell.is-hager-theme .bsx-portfolio-summary,
.bsx-shell.is-hager-theme .bsx-portfolio-project {
  border-color: rgba(255, 255, 255, 0.22);
}

.bsx-shell.is-hager-theme .bsx-portfolio-project:hover,
.bsx-shell.is-hager-theme .bsx-portfolio-project:focus-visible {
  background: rgba(255, 255, 255, 0.10);
}

/* The historical KNX engine is embedded as a BlueSpring workspace. Its domain
   behaviour is preserved, while its standalone chrome is deliberately removed. */
.bsx-legacy-view#be-view-knx_builder {
  --ink: #003c71;
  --ink-2: #526f86;
  --muted: #607b91;
  --line: rgba(0, 60, 113, 0.16);
  --card: rgba(255, 255, 255, 0.76);
  --blue: #0078c4;
  --blue-tint: rgba(0, 119, 184, 0.09);
  color: #003c71;
  font-family: inherit;
}

.bsx-legacy-view#be-view-knx_builder :is(
  .knx-topbar, .knx-plan, .knx-link-dock, .knx-sim-popover
) {
  border: 1px solid rgba(0, 60, 113, 0.14);
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 16px 42px rgba(35, 53, 69, 0.10) !important;
  backdrop-filter: blur(18px);
}

.bsx-legacy-view#be-view-knx_builder :is(
  .knx-icon-btn, .knx-site-chip, .knx-sim-speeds
) {
  border-radius: 6px !important;
  box-shadow: none !important;
}

.bsx-shell.is-hager-theme .bsx-legacy-view#be-view-knx_builder {
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.20);
  --card: #00558f;
  --blue: #ffffff;
  --blue-tint: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder :is(
    .knx-topbar, .knx-plan, .knx-link-dock, .knx-sim-popover
  ) {
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(0, 48, 87, 0.46) !important;
  box-shadow: 0 16px 42px rgba(0, 39, 70, 0.18) !important;
  backdrop-filter: blur(16px);
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-topbar {
  border-radius: 6px;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-plan {
  border-radius: 6px;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-design-rail {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 48, 87, 0.92) !important;
  box-shadow: 0 18px 44px rgba(0, 32, 57, 0.30) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-design-link {
  background: rgba(0, 82, 136, 0.84) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder :is(
    .knx-design-rail-head b, .knx-design-rail-head small,
    .knx-design-link-main b, .knx-design-link-main small,
    .knx-design-link-meta b, .knx-design-link-meta small
  ) {
  color: #ffffff !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder :is(
    .knx-project-name, .knx-icon-btn, .knx-site-chip,
    .knx-sim-time, .knx-sim-sun, .knx-link-hint
  ) {
  color: #ffffff !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder :is(
    .knx-icon-btn, .knx-site-chip, .knx-sim-speeds
  ) {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 60, 113, 0.42) !important;
  box-shadow: none !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder :is(
    .knx-room-map, .knx-room-map:nth-child(3n+2)
  ) {
  border-color: rgba(255, 255, 255, 0.36) !important;
  background: rgba(0, 82, 136, 0.56) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder :is(
    .knx-room-tag, .knx-appliance-label, .knx-sim-badge
  ) {
  color: #ffffff !important;
  background: rgba(0, 60, 113, 0.88) !important;
  box-shadow: 0 6px 16px rgba(0, 39, 70, 0.16) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-plan-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px) !important;
}

/* The Hager presentation theme needs an explicit simulation clock. These
   states keep the plan legible while making time-of-day visible at a glance. */
.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-shell.simulating :is(
    .knx-plan, .knx-room-map, .knx-room-tag, .knx-appliance-label,
    .knx-link-dock, .knx-appliance-orb
  ) {
  transition: background 360ms ease, border-color 360ms ease,
    color 360ms ease, box-shadow 360ms ease;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-shell.simulating
  :is(.knx-room-tag, .knx-appliance-label) {
  backdrop-filter: none;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day .knx-plan {
  color: #003c71;
  border-color: rgba(0, 60, 113, 0.42) !important;
  background: linear-gradient(180deg, #c7e6ee 0%, #91c7d9 100%) !important;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.86),
    0 18px 42px rgba(0, 48, 87, 0.24) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day .knx-room-map {
  color: #003c71 !important;
  border-color: #297ea5 !important;
  background: rgba(247, 251, 252, 0.94) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88),
    0 8px 20px rgba(0, 60, 113, 0.16) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day :is(.knx-room-tag, .knx-appliance-label) {
  color: #003c71 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(0, 60, 113, 0.20),
    0 5px 12px rgba(0, 60, 113, 0.18) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day :is(.knx-room-tag, .knx-appliance-label)
  :is(span, small, svg) {
  color: #003c71 !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day .knx-appliance-orb {
  color: #006da4 !important;
  border: 1px solid rgba(0, 85, 143, 0.34);
  background: linear-gradient(145deg, #ffffff, #d9edf4) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82),
    0 10px 22px rgba(0, 60, 113, 0.22) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day .knx-plan-link {
  stroke: #003c71 !important;
  stroke-width: 6;
  stroke-dasharray: 10 7;
  opacity: 1;
  filter: drop-shadow(0 0 1px #ffffff)
    drop-shadow(0 2px 2px rgba(0, 38, 68, 0.64));
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day .knx-plan-link-halo {
  stroke: rgba(255, 255, 255, 0.98) !important;
  stroke-width: 11;
  opacity: 1;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day .knx-plan-link-dot {
  fill: #00558f;
  stroke: #ffffff;
  stroke-width: 3;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day .knx-sim-dock {
  color: #003c71 !important;
  border-color: rgba(0, 60, 113, 0.38) !important;
  background: #f8fcfe !important;
  box-shadow: 0 12px 30px rgba(0, 48, 87, 0.24) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day :is(.knx-sim-time, .knx-sim-sun) {
  color: #003c71 !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-day .knx-sim-dock
  :is(.knx-sim-speed:not(.active), .knx-icon-btn:not(.knx-sim-play), span) {
  color: #003c71 !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-dusk .knx-plan {
  border-color: rgba(255, 204, 119, 0.76) !important;
  background: linear-gradient(180deg, #286c8e 0%, #063d61 100%) !important;
  box-shadow: inset 0 3px 0 #ffbd59,
    0 18px 42px rgba(0, 32, 57, 0.28) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-dusk .knx-room-map {
  border-color: rgba(255, 215, 147, 0.82) !important;
  background: rgba(0, 50, 84, 0.82) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 23, 41, 0.24) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-dusk :is(.knx-room-tag, .knx-appliance-label) {
  color: #ffffff !important;
  background: #003c71 !important;
  box-shadow: 0 0 0 1px rgba(255, 211, 139, 0.58),
    0 6px 14px rgba(0, 20, 36, 0.30) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-dusk :is(.knx-room-tag, .knx-appliance-label)
  :is(span, small, svg) {
  color: #ffffff !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-dusk .knx-appliance-orb {
  color: #006da4 !important;
  border: 1px solid #ffd18a;
  background: linear-gradient(145deg, #fffdf7, #e5eef2) !important;
  box-shadow: 0 0 0 2px rgba(255, 209, 138, 0.20),
    0 12px 24px rgba(0, 20, 36, 0.34) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-dusk .knx-plan-link {
  stroke: #ffd166 !important;
  stroke-width: 6;
  stroke-dasharray: 10 7;
  opacity: 1;
  filter: drop-shadow(0 0 1px rgba(0, 18, 32, 0.96))
    drop-shadow(0 2px 3px rgba(0, 12, 23, 0.82));
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-dusk .knx-plan-link-halo {
  stroke: #001728 !important;
  stroke-width: 11;
  opacity: 1;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-dusk .knx-plan-link-dot {
  fill: #ffd166;
  stroke: #003c71;
  stroke-width: 3;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-dusk .knx-sim-dock {
  color: #ffffff !important;
  border-color: rgba(255, 209, 102, 0.54) !important;
  background: rgba(0, 39, 67, 0.96) !important;
  box-shadow: 0 14px 34px rgba(0, 17, 30, 0.38) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-night .knx-plan {
  border-color: rgba(105, 211, 255, 0.58) !important;
  background: linear-gradient(180deg, #002c4b 0%, #001321 100%) !important;
  box-shadow: inset 0 3px 0 rgba(105, 211, 255, 0.58),
    0 20px 46px rgba(0, 18, 32, 0.38) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-night .knx-room-map {
  border-color: rgba(105, 211, 255, 0.62) !important;
  background: rgba(0, 54, 91, 0.88) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 10px 26px rgba(0, 8, 15, 0.34) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-night :is(.knx-room-tag, .knx-appliance-label) {
  color: #ffffff !important;
  background: #002c4b !important;
  box-shadow: 0 0 0 1px rgba(105, 211, 255, 0.52),
    0 6px 14px rgba(0, 8, 15, 0.40) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-night :is(.knx-room-tag, .knx-appliance-label)
  :is(span, small, svg) {
  color: #ffffff !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-night .knx-appliance-orb {
  color: #006da4 !important;
  border: 1px solid #69d3ff;
  background: linear-gradient(145deg, #f7fdff, #cce7f2) !important;
  box-shadow: 0 0 0 2px rgba(105, 211, 255, 0.16),
    0 12px 26px rgba(0, 6, 11, 0.44) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-night .knx-plan-link {
  stroke: #69d3ff !important;
  stroke-width: 6;
  stroke-dasharray: 10 7;
  opacity: 1;
  filter: drop-shadow(0 0 1px rgba(0, 12, 24, 0.98))
    drop-shadow(0 0 5px rgba(105, 211, 255, 0.78));
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-night .knx-plan-link-halo {
  stroke: #000b14 !important;
  stroke-width: 11;
  opacity: 1;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-night .knx-plan-link-dot {
  fill: #69d3ff;
  stroke: #001321;
  stroke-width: 3;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-shell.simulating.is-night .knx-sim-dock {
  border-color: rgba(105, 211, 255, 0.46) !important;
  background: rgba(0, 25, 43, 0.97) !important;
  box-shadow: 0 14px 34px rgba(0, 5, 10, 0.48) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-shell.simulating
  .knx-sim-ambient {
  mix-blend-mode: soft-light;
  opacity: 0.38;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-shell.simulating
  .knx-sim-sunmass {
  width: 104px;
  height: 104px;
  filter: blur(4px);
  background: radial-gradient(circle, rgba(255, 239, 170, 0.88) 0%,
    rgba(255, 190, 70, 0.34) 40%, transparent 72%);
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-shell.simulating
  .knx-room-sunlight {
  opacity: calc(var(--sun-alpha, 0) * 0.48) !important;
  background: linear-gradient(var(--sun-room-angle, 135deg),
    rgba(255, 231, 150, 0.72), rgba(255, 197, 78, 0.18) 38%,
    transparent 68%) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-shell.simulating
  .knx-room-map.sun-shaded .knx-room-sunshade {
  opacity: var(--shade-alpha, 0) !important;
  background: linear-gradient(var(--sun-room-angle, 135deg),
    rgba(0, 27, 48, 0.88), rgba(0, 38, 64, 0.66) 52%,
    rgba(0, 48, 76, 0.30) 78%, transparent 94%) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 28, 49, 0.34),
    inset 0 0 62px rgba(0, 17, 31, 0.58) !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-shell.simulating
  :is(.knx-sim-shutter, .knx-3d-shutter-panel) {
  filter: contrast(1.22) saturate(0.82);
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-sim-sun {
  min-width: 118px;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-sim-sun .ico {
  border: 1px solid currentColor;
  background: transparent;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder
  .knx-sim-sun :is(.ico, .knx-sim-sun-label) {
  color: inherit !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-sim-sun.is-day {
  color: #00689d !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-sim-sun.is-dusk {
  color: #ffd38b !important;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-sim-sun.is-night {
  color: #9bd9f2 !important;
}

.bsx-shell.is-hager-theme .bsx-card-close:hover,
.bsx-shell.is-hager-theme .bsx-card-collapse:hover,
.bsx-shell.is-hager-theme .bsx-card-resize:hover,
.bsx-shell.is-hager-theme .bsx-card-tool:hover {
  background: rgba(255, 255, 255, 0.12);
}

.bsx-shell.is-hager-theme .bsx-energy-source-intro {
  color: rgba(255, 255, 255, 0.88);
}

.bsx-shell.is-hager-theme .bsx-energy-source-preview,
.bsx-shell.is-hager-theme .bsx-energy-source-empty,
.bsx-shell.is-hager-theme .bsx-energy-source-empty strong,
.bsx-shell.is-hager-theme .bsx-energy-source-empty span {
  color: #003c71;
}

.bsx-shell.is-hager-theme .bsx-energy-source-preview.is-warning {
  color: #754300;
}

.bsx-shell.is-hager-theme .bsx-installation-questions,
.bsx-shell.is-hager-theme .bsx-installation-questions li,
.bsx-shell.is-hager-theme .bsx-card-message,
.bsx-shell.is-hager-theme .bsx-installation-hint {
  color: rgba(255, 255, 255, 0.92);
}

.bsx-installation-ai-result {
  margin-top: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
  border-left: 3px solid #0077b8;
  background: rgba(0, 119, 184, 0.08);
}

.bsx-installation-ai-result p {
  margin: 0;
}

.bsx-installation-ai-result span {
  font-size: 13px;
}

.bsx-shell.is-hager-theme .bsx-installation-ai-result {
  border-left-color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.bsx-shell.is-hager-theme .bsx-installation-ai-result :is(
  strong, p, span
) {
  color: #ffffff;
}

.bsx-shell.is-hager-theme :is(
  .bsx-requirements span,
  .bsx-electrical-panel,
  .bsx-installation-editor,
  .bsx-room-validation,
  .bsx-plan-canvas
) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 48, 87, 0.28);
}

.bsx-shell.is-hager-theme :is(
  .bsx-plan-room,
  .bsx-plan-room-choice,
  .bsx-plan-room-config,
  .bsx-installation-room,
  .bsx-panel-device,
  .bsx-site-device,
  .bsx-installation-device,
  .bsx-installation-appliance,
  .bsx-plan-control,
  .bsx-commissioning-action
) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(0, 60, 113, 0.64);
}

.bsx-shell.is-hager-theme .bsx-plan-room-config-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(0, 60, 113, 0.78);
}

.bsx-shell.is-hager-theme .bsx-plan-room-config .bsx-plan-room-name {
  color: #003c71;
  border-color: rgba(255, 255, 255, 0.72);
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-living-appliance-popover {
  color: #003c71;
  border-color: rgba(0, 120, 196, 0.30);
  background: rgba(255, 255, 255, 0.98);
}

.bsx-shell.is-hager-theme .bsx-living-appliance-popover :is(
  h3, p, span, strong, small, label
) {
  color: inherit;
}

.bsx-shell.is-hager-theme .bsx-living-popover-head small,
.bsx-shell.is-hager-theme .bsx-living-popover-reading small,
.bsx-shell.is-hager-theme .bsx-living-popover-note,
.bsx-shell.is-hager-theme .bsx-living-control-status {
  color: #426783;
}

.bsx-shell.is-hager-theme .bsx-living-control {
  color: #003c71;
  border-color: rgba(0, 120, 196, 0.24);
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-living-control:hover,
.bsx-shell.is-hager-theme .bsx-living-control:focus-visible {
  color: #ffffff;
  border-color: #0078c4;
  background: #0078c4;
}

/* Witty controls sit on a white appliance card inside the blue Hager shell.
   Keep their contrast independent from inherited shell text variables. */
.bsx-shell .bsx-living-brightness.is-witty-control {
  color: #003c71 !important;
  border-color: rgba(0, 120, 196, 0.28);
  background: #eef7fd;
}

.bsx-shell .bsx-living-brightness.is-witty-control
  :is(label, output) {
  color: #003c71 !important;
}

.bsx-shell .bsx-living-brightness-apply.is-witty-control {
  color: #ffffff !important;
  border: 1px solid #0078c4;
  background: #0078c4 !important;
}

.bsx-shell .bsx-living-brightness-apply.is-witty-control:hover,
.bsx-shell .bsx-living-brightness-apply.is-witty-control:focus-visible {
  color: #ffffff !important;
  border-color: #005f9d;
  background: #005f9d !important;
}

.bsx-shell .bsx-living-popover-actions.is-witty-control
  .bsx-living-control {
  color: #003c71 !important;
  border-color: rgba(0, 120, 196, 0.34);
  background: #eaf5fb !important;
}

.bsx-shell .bsx-living-popover-actions.is-witty-control
  .bsx-living-control :is(span, small) {
  color: inherit !important;
}

.bsx-shell .bsx-living-popover-actions.is-witty-control
  .bsx-living-control:hover,
.bsx-shell .bsx-living-popover-actions.is-witty-control
  .bsx-living-control:focus-visible {
  color: #ffffff !important;
  border-color: #0078c4;
  background: #0078c4 !important;
}

.bsx-shell.is-hager-theme .bsx-blue-surface {
  color: var(--bsx-blue-surface-text) !important;
  border-color: rgba(141, 214, 255, 0.58);
  background: linear-gradient(145deg,
    var(--bsx-blue-surface), var(--bsx-blue-surface-deep)) !important;
}

.bsx-shell.is-hager-theme .bsx-blue-surface :is(
  h2, h3, h4, p, span, strong, label
) {
  color: inherit !important;
}

.bsx-shell.is-hager-theme .bsx-blue-surface small {
  color: var(--bsx-blue-surface-muted) !important;
}

.bsx-shell.is-hager-theme .bsx-commissioning-live-step.is-done {
  color: #72f0b5;
}

.bsx-shell.is-hager-theme .bsx-commissioning-live-step.is-done
  .bsx-commissioning-live-mark {
  color: #ffffff;
  border-color: #16875d;
  background: #16875d;
}

.bsx-shell.is-hager-theme :is(
  .bsx-installation-editor input,
  .bsx-installation-editor select,
  .bsx-installation-editor textarea,
  .bsx-contactor-purpose input,
  .bsx-contactor-purpose select
) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(0, 48, 87, 0.52);
}

.bsx-shell.is-hager-theme .bsx-installation-editor option {
  color: #003c71;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-contactor-purpose {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 48, 87, 0.34);
}

.bsx-shell.is-hager-theme .bsx-contactor-purpose :is(p, small, label span) {
  color: rgba(255, 255, 255, 0.76);
}

.bsx-shell.is-hager-theme .bsx-contactor-purpose option {
  color: #003c71;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-plan-opening.is-door {
  color: #f2a900;
  border-color: currentColor;
  background: #005288;
}

.bsx-shell.is-hager-theme .bsx-plan-opening.is-window {
  border-color: #ffffff;
  background: #69d3ff;
  box-shadow: 0 0 0 1px #003c71;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-room-opening.is-window {
  border-color: #ffffff;
  background: #69d3ff;
  box-shadow: 0 0 0 1px #003c71;
}

.bsx-shell.is-hager-theme
  .bsx-legacy-view#be-view-knx_builder .knx-room-opening.is-door {
  color: #f2a900;
  background: #005288;
}

.bsx-shell.is-hager-theme .bsx-plan-opening-grip {
  color: #ffffff;
  background: #0077b8;
  box-shadow: 0 0 0 2px rgba(0, 57, 103, 0.72);
}

.bsx-shell.is-hager-theme .bsx-plan-compass {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-plan-compass-top,
.bsx-shell.is-hager-theme .bsx-plan-compass-status,
.bsx-shell.is-hager-theme .bsx-plan-compass-ring span {
  color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-plan-compass-top {
  background: rgba(0, 48, 87, 0.82);
}

.bsx-shell.is-hager-theme .bsx-plan-compass-top::after {
  border-top-color: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-plan-compass-ring {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 48, 87, 0.72);
  box-shadow: 0 6px 18px rgba(0, 34, 61, 0.22);
}

.bsx-shell.is-hager-theme .bsx-plan-compass-ring::before,
.bsx-shell.is-hager-theme .bsx-plan-compass-ring::after {
  background: rgba(255, 255, 255, 0.24);
}

.bsx-shell.is-hager-theme .bsx-project-qr {
  padding: 5px;
  background: #ffffff;
}

.bsx-shell.is-hager-theme .bsx-status.is-error {
  color: #ffd8d3;
}

.bsx-shell.is-hager-theme .bsx-waiting-spinner {
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
}

@media (max-width: 700px) {
  .bsx-hager-order-confirmation {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bsx-knx-design-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .bsx-knx-design-actions {
    justify-content: stretch;
  }

  .bsx-knx-design-actions > button {
    flex: 1 1 140px;
  }

  .bsx-knx-link-row {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1.2fr);
  }

  .bsx-knx-link-dpt {
    grid-column: 3;
    text-align: left;
  }

  .bsx-commissioning-product {
    grid-template-columns: 1fr;
  }

  .bsx-installation-editor-grid,
  .bsx-channel-assignments,
  .bsx-installation-instruction-box,
  .bsx-contactor-purpose-row {
    grid-template-columns: 1fr;
  }

  .bsx-add-appliance-form {
    grid-template-columns: 1fr 1fr;
  }

  .bsx-add-appliance-form > span,
  .bsx-add-appliance-form > input {
    grid-column: 1 / -1;
  }

  .bsx-installation-instruction-box > small {
    grid-column: 1;
  }

  .bsx-electrical-panel-head {
    display: grid;
  }

  .bsx-brand {
    top: 68px;
    left: 72px;
    width: 56px;
    height: 56px;
  }

  .bsx-back-button {
    top: 148px;
    left: 16px;
  }

  .bsx-brand img {
    width: 56px;
    height: 56px;
  }

  .bsx-account {
    top: 18px;
    right: 20px;
  }

  .bsx-identity {
    display: none;
  }

  .bsx-electrician-home span {
    display: none;
  }

  .bsx-history-button span {
    display: none;
  }

  .bsx-electrician-home,
  .bsx-history-button {
    width: 34px;
    padding: 6px;
    justify-content: center;
  }

  .bsx-history-panel {
    width: 100vw;
  }

  .bsx-history-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .bsx-history-list {
    max-height: 154px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 70vw);
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 60, 113, 0.13);
  }

  .bsx-history-conversation {
    margin: 0;
  }

  .bsx-history-detail {
    padding: 16px;
  }

  .bsx-history-detail-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .bsx-history-message {
    width: 94%;
  }

  .bsx-portfolio-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bsx-portfolio-project {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .bsx-portfolio-project-progress {
    grid-column: 1;
  }

  .bsx-portfolio-project-open {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .bsx-journey {
    display: none;
  }
}

@media (max-width: 700px) {
  .bsx-smart-shedding-signals {
    grid-template-columns: 1fr;
  }

  .bsx-smart-shedding-state {
    align-items: flex-start;
  }

  .bsx-flex-hero {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .bsx-flex-reward {
    grid-column: 2;
    text-align: left;
  }

  .bsx-flex-metrics,
  .bsx-flex-limits {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsx-main,
  .bsx-conversation,
  .bsx-question,
  .bsx-options,
  .bsx-option-trigger {
    transition: none;
  }

  .bsx-context,
  .bsx-context-card {
    animation: none;
  }

  .bsx-input-shell.is-empty::before,
  .bsx-status.is-busy::after,
  .bsx-waiting-spinner {
    animation-duration: 1.8s;
  }

  .bsx-brand-orbit {
    animation-duration: 16s;
  }

  .bsx-brand-ray::before {
    animation-duration: 8s;
  }

  .bsx-brand:is(.is-thinking, .is-commissioning) .bsx-brand-orbit {
    animation-duration: 4s;
  }

  .bsx-brand:is(.is-thinking, .is-commissioning) .bsx-brand-ray::before {
    animation-duration: 1.8s;
  }

  .bsx-commissioning-live-pulse {
    animation-duration: 1.8s;
  }

  .bsx-option.is-hager-order,
  .bsx-option.is-hager-order::before,
  .bsx-hager-order-confirmation::after,
  .bsx-hager-order-check,
  .bsx-hager-order-product,
  .bsx-hager-order-route::after {
    animation: none;
  }
}

/* Detailed distribution-board projection --------------------------------- */
.bsx-panel-generator {
  margin: 6px 0 4px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  background: transparent;
}

.bsx-panel-generate-action {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(0, 60, 113, 0.22);
  border-radius: 4px;
  color: #426983;
  background: transparent;
  box-shadow: none;
  font: 600 10px/1.2 Arial, sans-serif;
  cursor: pointer;
  transition: none;
}

.bsx-panel-generate-action:hover,
.bsx-panel-generate-action:focus-visible {
  color: #003c71;
  border-color: rgba(0, 60, 113, 0.40);
  background: transparent;
  box-shadow: none;
  transform: none;
  outline: 0;
}

.bsx-panel-generate-action:disabled {
  opacity: 0.64;
  cursor: wait;
  transform: none;
}

body.bsx-has-distribution-board {
  overflow: hidden;
}

.bsx-panel-view-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 31, 58, 0.68);
  backdrop-filter: blur(10px);
  animation: bsx-panel-modal-in 180ms ease-out both;
}

@keyframes bsx-panel-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bsx-panel-view-sheet {
  position: relative;
  width: min(1180px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  color: #183f5e;
  background:
    radial-gradient(circle at 94% 0, rgba(0, 120, 196, 0.13), transparent 27%),
    linear-gradient(180deg, #f8fbfd 0, #edf4f8 100%);
  box-shadow: 0 28px 80px rgba(0, 31, 58, 0.35);
  scrollbar-color: rgba(0, 120, 196, 0.42) transparent;
}

.bsx-panel-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.bsx-panel-view-title {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bsx-panel-view-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(145deg, #0085d2, #00599c);
  box-shadow: 0 10px 28px rgba(0, 99, 168, 0.24);
}

.bsx-panel-view-title > div {
  min-width: 0;
}

.bsx-panel-view-title small,
.bsx-panel-section-heading span,
.bsx-din-board-heading span,
.bsx-din-rail-heading span {
  color: #0078c4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bsx-panel-view-title h2 {
  margin: 4px 0 2px;
  color: #003c71;
  font: 600 clamp(25px, 3vw, 36px)/1.05 "Butler", Georgia, serif;
}

.bsx-panel-view-title p {
  margin: 0;
  color: #607b91;
  font-size: 13px;
}

.bsx-panel-view-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 1px solid rgba(0, 60, 113, 0.16);
  border-radius: 50%;
  color: #003c71;
  background: rgba(255, 255, 255, 0.82);
  font: 300 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.bsx-panel-view-close:hover,
.bsx-panel-view-close:focus-visible {
  border-color: #0078c4;
  background: #ffffff;
}

.bsx-panel-view-summary {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(0, 60, 113, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.bsx-panel-view-summary > div {
  min-width: 0;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bsx-panel-view-summary > div + div {
  border-left: 1px solid rgba(0, 60, 113, 0.10);
}

.bsx-panel-view-summary span {
  color: #607b91;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bsx-panel-view-summary strong {
  overflow: hidden;
  color: #003c71;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-panel-capacity-message {
  margin-top: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid;
  border-radius: 9px;
}

.bsx-panel-capacity-message.is-ready {
  border-color: rgba(31, 130, 78, 0.28);
  color: #176b42;
  background: rgba(225, 246, 234, 0.78);
}

.bsx-panel-capacity-message.is-warning {
  border-color: rgba(199, 119, 0, 0.30);
  color: #8b5500;
  background: rgba(255, 244, 218, 0.88);
}

.bsx-panel-capacity-message > span {
  flex: 0 0 auto;
}

.bsx-panel-capacity-message strong {
  display: block;
  font-size: 13px;
}

.bsx-panel-capacity-message p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.bsx-panel-power-flow {
  margin: 20px 0;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 32px minmax(120px, 1fr) 32px
    minmax(120px, 1fr) 32px minmax(120px, 1fr);
  align-items: center;
  gap: 4px;
}

.bsx-panel-power-flow > div {
  min-height: 70px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(0, 60, 113, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.bsx-panel-power-flow > div span {
  color: #00a4cf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.bsx-panel-power-flow > div strong {
  color: #003c71;
  font-size: 12px;
}

.bsx-panel-power-flow > div small {
  color: #607b91;
  font-size: 10px;
}

.bsx-panel-power-flow > i {
  position: relative;
  height: 2px;
  background: #0078c4;
}

.bsx-panel-power-flow > i::after {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #0078c4;
  border-right: 2px solid #0078c4;
  content: "";
  transform: rotate(45deg);
}

.bsx-din-board {
  padding: 18px;
  border: 1px solid rgba(0, 60, 113, 0.20);
  border-radius: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 60, 113, 0.018) 0 1px,
      transparent 1px 5px),
    #dfe8ed;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.60),
    inset 0 0 22px rgba(0, 31, 58, 0.08);
}

.bsx-din-board-heading,
.bsx-din-rail-heading,
.bsx-panel-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.bsx-din-board-heading > div,
.bsx-din-rail-heading > div,
.bsx-panel-section-heading {
  min-width: 0;
}

.bsx-din-board-heading > div,
.bsx-din-rail-heading > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bsx-din-board-heading strong {
  color: #003c71;
  font: 600 20px/1.1 "Butler", Georgia, serif;
}

.bsx-din-board-heading > small,
.bsx-din-rail-heading > small {
  color: #58748b;
  font-size: 10px;
  text-align: right;
}

.bsx-din-rail {
  margin-top: 16px;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid rgba(0, 31, 58, 0.15);
  border-left: 4px solid #527995;
  border-radius: 7px;
  background: rgba(250, 252, 253, 0.90);
  box-shadow: 0 5px 14px rgba(0, 31, 58, 0.08);
}

.bsx-din-rail.is-incoming { border-left-color: #e05b2f; }
.bsx-din-rail.is-type-a { border-left-color: #00a4cf; }
.bsx-din-rail.is-type-ac { border-left-color: #0078c4; }
.bsx-din-rail.is-automation { border-left-color: #7a58a6; }
.bsx-din-rail.is-reserve { border-left-color: #a6b3bd; }

.bsx-din-rail-heading {
  min-width: 690px;
}

.bsx-din-rail-heading strong {
  color: #183f5e;
  font-size: 13px;
}

.bsx-din-phase-lane {
  min-width: 690px;
  margin: 9px 0 5px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.bsx-din-phase-lane span {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #7f3424;
  font-size: 9px;
  font-weight: 800;
}

.bsx-din-phase-lane i {
  height: 3px;
  border-radius: 2px;
  background: #8b4131;
}

.bsx-din-phase-lane small {
  color: #7a635b;
  font-size: 9px;
}

.bsx-din-rail-track {
  min-width: 690px;
  display: grid;
  grid-template-columns: repeat(var(--din-columns), minmax(0, 1fr));
  align-items: stretch;
  gap: 2px;
}

.bsx-din-device,
.bsx-din-spare {
  position: relative;
  grid-column: span var(--din-span);
  min-width: 0;
  height: 94px;
  box-sizing: border-box;
  border-radius: 3px 3px 1px 1px;
}

.bsx-din-device {
  padding: 9px 7px 7px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 113, 0.20);
  color: #123b5a;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), transparent 25%),
    #f6f8f9;
  box-shadow: inset 0 -10px 0 rgba(0, 60, 113, 0.035),
    0 2px 3px rgba(0, 31, 58, 0.10);
  text-align: left;
  cursor: pointer;
}

.bsx-din-device::after {
  position: absolute;
  right: 5px;
  bottom: 8px;
  left: 5px;
  height: 4px;
  border-top: 1px solid rgba(0, 60, 113, 0.22);
  border-bottom: 1px solid rgba(0, 60, 113, 0.16);
  content: "";
}

.bsx-din-device:hover,
.bsx-din-device:focus-visible {
  z-index: 2;
  border-color: #0078c4;
  outline: 2px solid rgba(0, 120, 196, 0.18);
  transform: translateY(-2px);
}

.bsx-din-device.is-provisional {
  border-style: dashed;
}

.bsx-din-device.is-rcd { background-color: #e9f5f9; }
.bsx-din-device.is-surge { background-color: #fff1e9; }
.bsx-din-device.is-knx { background-color: #f1ebf8; }
.bsx-din-device.is-control { background-color: #e9f3fa; }
.bsx-din-device.is-protection { background-color: #f7eee9; }
.bsx-din-device.is-edge { background-color: #e8f4f6; }

.bsx-din-device-id {
  padding: 2px 4px;
  border-radius: 2px;
  color: #ffffff;
  background: #003c71;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bsx-din-device strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-din-device small {
  max-width: 100%;
  overflow: hidden;
  color: #62788a;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-din-device-width {
  position: absolute;
  top: 6px;
  right: 5px;
  color: #58748b;
  font-size: 8px;
  font-weight: 800;
}

.bsx-din-device.is-single {
  padding-right: 4px;
  padding-left: 4px;
  align-items: center;
}

.bsx-din-device.is-single .bsx-din-device-width,
.bsx-din-device.is-single small {
  display: none;
}

.bsx-din-device.is-single strong {
  margin-top: 4px;
  font-size: 8px;
  writing-mode: vertical-rl;
}

.bsx-din-spare {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(68, 95, 115, 0.32);
  color: #788e9e;
  background: repeating-linear-gradient(135deg,
    rgba(88, 116, 139, 0.05) 0 6px, transparent 6px 12px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bsx-din-rail-metal {
  min-width: 690px;
  height: 8px;
  margin-top: -2px;
  border: 1px solid #89979f;
  border-radius: 1px;
  background: linear-gradient(#e6eaec, #9ba8ae 42%, #e3e7e9 48%, #8b989f);
  box-shadow: 0 2px 3px rgba(0, 31, 58, 0.18);
}

.bsx-panel-busbars {
  margin-top: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(0, 60, 113, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
}

.bsx-panel-busbars > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(20px, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.bsx-panel-busbars span {
  color: #315977;
  font-size: 9px;
  font-weight: 800;
}

.bsx-panel-busbars i {
  height: 4px;
  border-radius: 4px;
  background: #177bd1;
}

.bsx-panel-busbars .is-earth i {
  background: repeating-linear-gradient(90deg, #1f9d55 0 8px, #f1d848 8px 16px);
}

.bsx-panel-busbars .is-knx i {
  background: linear-gradient(180deg, #d92d3f 0 48%, #252a31 48% 100%);
}

.bsx-panel-busbars strong {
  overflow: hidden;
  color: #315977;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-panel-schedule,
.bsx-panel-accessories,
.bsx-panel-design-notes {
  margin-top: 22px;
}

.bsx-panel-section-heading {
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(0, 60, 113, 0.14);
}

.bsx-panel-section-heading strong {
  color: #003c71;
  font: 600 18px/1.1 "Butler", Georgia, serif;
  text-align: right;
}

.bsx-panel-schedule-item {
  padding: 10px 8px;
  display: grid;
  grid-template-columns: 54px minmax(180px, 1.25fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 60, 113, 0.09);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.bsx-panel-schedule-item.is-highlighted {
  background: rgba(0, 120, 196, 0.10);
  box-shadow: inset 3px 0 #0078c4;
}

.bsx-panel-schedule-index,
.bsx-panel-schedule-product,
.bsx-panel-schedule-role {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bsx-panel-schedule-index strong {
  color: #003c71;
  font-size: 13px;
}

.bsx-panel-schedule-index span {
  color: #0078c4;
  font-size: 10px;
  font-weight: 800;
}

.bsx-panel-schedule-product strong,
.bsx-panel-schedule-role span {
  overflow: hidden;
  color: #183f5e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-panel-schedule-product small,
.bsx-panel-schedule-role small {
  overflow: hidden;
  color: #607b91;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsx-panel-width-proof {
  padding: 4px 7px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.bsx-panel-width-proof.is-exact {
  border-color: rgba(31, 130, 78, 0.25);
  color: #176b42;
  background: rgba(225, 246, 234, 0.75);
}

.bsx-panel-width-proof.is-provisional {
  border-color: rgba(199, 119, 0, 0.24);
  color: #8b5500;
  background: rgba(255, 244, 218, 0.82);
}

.bsx-panel-accessories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bsx-panel-accessories .bsx-panel-section-heading {
  grid-column: 1 / -1;
}

.bsx-panel-accessories > div:not(.bsx-panel-section-heading) {
  padding: 11px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(0, 60, 113, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.bsx-panel-accessories > div:not(.bsx-panel-section-heading) > span {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #1f824e;
}

.bsx-panel-accessories > div > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bsx-panel-accessories strong {
  color: #183f5e;
  font-size: 12px;
}

.bsx-panel-accessories small {
  color: #607b91;
  font-size: 10px;
  line-height: 1.35;
}

.bsx-panel-design-notes {
  padding: 15px;
  border: 1px solid rgba(0, 60, 113, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
}

.bsx-panel-design-notes p {
  position: relative;
  margin: 9px 0 0;
  padding-left: 15px;
  color: #526f86;
  font-size: 11px;
  line-height: 1.45;
}

.bsx-panel-design-notes p::before {
  position: absolute;
  top: 0.55em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0078c4;
  content: "";
}

.bsx-panel-width-sources {
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid rgba(0, 60, 113, 0.11);
}

.bsx-panel-width-sources strong {
  margin-right: 3px;
  color: #315977;
  font-size: 10px;
}

.bsx-panel-width-sources a {
  padding: 4px 7px;
  border: 1px solid rgba(0, 120, 196, 0.20);
  border-radius: 4px;
  color: #006db2;
  background: rgba(0, 120, 196, 0.05);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.bsx-panel-width-sources a:hover,
.bsx-panel-width-sources a:focus-visible {
  border-color: #0078c4;
  background: rgba(0, 120, 196, 0.10);
}

@media (max-width: 820px) {
  .bsx-panel-generator {
    align-items: center;
    flex-direction: row;
  }

  .bsx-panel-generate-action {
    width: auto;
  }

  .bsx-panel-view-modal {
    padding: 0;
  }

  .bsx-panel-view-sheet {
    width: 100vw;
    max-height: 100vh;
    padding: 18px 14px 28px;
    border: 0;
    border-radius: 0;
  }

  .bsx-panel-view-title p {
    display: none;
  }

  .bsx-panel-view-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsx-panel-view-summary > div + div {
    border-left: 0;
  }

  .bsx-panel-view-summary > div:nth-child(even) {
    border-left: 1px solid rgba(0, 60, 113, 0.10);
  }

  .bsx-panel-view-summary > div:nth-child(n + 3) {
    border-top: 1px solid rgba(0, 60, 113, 0.10);
  }

  .bsx-panel-power-flow {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .bsx-panel-power-flow > div {
    min-height: 52px;
  }

  .bsx-panel-power-flow > i {
    width: 2px;
    height: 12px;
    margin: 0 auto;
  }

  .bsx-panel-power-flow > i::after {
    top: auto;
    right: -3px;
    bottom: -1px;
    transform: rotate(135deg);
  }

  .bsx-din-board {
    padding: 12px 8px;
  }

  .bsx-panel-busbars,
  .bsx-panel-accessories {
    grid-template-columns: 1fr;
  }

  .bsx-panel-schedule-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 7px 10px;
  }

  .bsx-panel-schedule-role {
    grid-column: 2;
  }

  .bsx-panel-width-proof {
    grid-column: 2;
    justify-self: start;
  }

  .bsx-panel-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .bsx-panel-section-heading strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsx-panel-view-modal {
    animation: none;
  }

  .bsx-panel-generate-action,
  .bsx-panel-schedule-item {
    transition: none;
  }
}
