*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #DBEAFE;
  color: #0F172A;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 0;
}

body.embed-mode {
  padding: 0;
  background: #DBEAFE;
}

.hub-shell {
  width: 378px;
  background: #DBEAFE;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

body.embed-mode .hub-shell {
  border-radius: 0;
  box-shadow: none;
}

.hub-header {
  position: relative;
  height: 150px;
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-tile {
  width: 128px;
  height: 128px;
  background: #FFFFFF;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-tile img {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: cover;
}

.build-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #1E3A8A;
  background: #DBEAFE;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  padding: 2px 7px;
  letter-spacing: 0.02em;
}

.hub-body {
  padding: 12px 14px 14px;
}

.sec1-card {
  background: #F5F4F0;
  border: 1px solid #D6D3CD;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E5E2DC;
}

.status-pill {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.status-pill.online {
  color: #15803D;
}

.status-pill.offline {
  color: #B91C1C;
}

.retry-btn {
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #1E3A8A;
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  border-radius: 4px;
  cursor: pointer;
}

.retry-btn:hover {
  background: #EFF6FF;
}

.field-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 8px;
}

.field-row label,
.split-col label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1E3A8A;
}

.field-row select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.field-row-label input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1.5px solid #94A3B8;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}

.field-row-label input::placeholder {
  font-weight: 600;
  color: #64748B;
  font-size: 13.5px;
}

.field-row-label input:focus,
.field-row select:focus,
.split-col select:focus {
  outline: none;
  border-color: #1D4ED8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.22);
}

.field-row-split {
  display: flex;
  align-items: center;
  gap: 10px;
}

.split-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.split-color {
  flex: 1;
}

.split-windows {
  flex: 0 0 auto;
}

.split-col select {
  height: 32px;
  padding: 0 6px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

.split-color select {
  width: 100%;
}

.split-windows select {
  width: 54px;
}

.sec-heading {
  margin: 13px 0 6px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0F172A;
}

.primary-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
}

.eng-btn {
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 8px;
  transition: filter 0.12s ease, transform 0.06s ease;
}

.eng-btn:hover {
  filter: brightness(1.06);
}

.eng-btn:active {
  transform: translateY(1px);
}

.chk-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  font-size: 12px;
  font-weight: 700;
  color: #1E3A8A;
  cursor: pointer;
  user-select: none;
}

.chk-row input {
  width: 15px;
  height: 15px;
  accent-color: #1E3A8A;
  margin: 0;
}

.launch-footer {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1E3A8A;
  min-height: 16px;
  text-align: center;
}

.launch-footer.error {
  color: #B91C1C;
}
