#sensor-app {
  margin: 0 auto;
  width: 100%;
  max-width: 1800px;
  padding: 10px;
  box-sizing: border-box;
  background-color: #4A4A4A;
}
#sensor-app .layout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
#sensor-app .canvas-area {
  position: relative;
  flex: 1 1 600px;
  max-width: 600px;
  background: transparent;
  box-sizing: border-box;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 300px;
}
#sensor-app .canvas-area canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#sensor-app .right-side {
  flex: 1 1 320px;
  max-width: 600px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#sensor-app #data-panel {
  background: #1f2937;
  color: white;
  border-radius: 6px;
  padding: 4px;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.2;
  overflow: visible;
  max-height: none;
  flex-shrink: 0;
}
#sensor-app table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1f2937;
  color: #e5e7eb;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  text-align: center;
}
#sensor-app thead th {
  background-color: #374151;
  color: #f9fafb;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
}
#sensor-app tbody td {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  vertical-align: middle;
  text-align: center;
}
#sensor-app tbody td:first-child {
  text-align: left;
  font-weight: bold;
}
#sensor-app #user-inputs {
  background-color: #1e293b;
  color: white;
  border-radius: 10px;
  padding: 14px;
  box-sizing: border-box;
  line-height: 1.4;
}
#sensor-app #user-inputs .input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 32px;
}
#sensor-app #user-inputs label {
  width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#sensor-app #user-inputs input[type="text"] {
  flex: 1;
  height: 32px;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background-color: #111827;
  color: white;
  font-size: 14px;
  box-sizing: border-box;
  line-height: 32px;
}
#sensor-app #user-inputs textarea {
  flex: 1;
  width: 100%;
  min-height: 32px;
  height: auto;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #111827;
  color: white;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
  resize: none;
}
#sensor-app .bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  color: white;
  text-align: center;
}
#sensor-app #button-panel {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
#sensor-app button {
  padding: 6px 14px;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#sensor-app .canvas-area.exporting {
  padding-right: 40px !important;
  overflow: visible !important;
}
#sensor-app button:hover {
  background: #1E40AF;
}
body:has(#sensor-app) #sensor-app .right-side { 
  gap: 6px;
}
body:has(#sensor-app) #sensor-app #data-panel {
  padding: 4px;
  font-size: 13px;
  line-height: 1.18;
}
body:has(#sensor-app) #sensor-app table { 
  font-size: 13.5px;
}
body:has(#sensor-app) #sensor-app thead th,
body:has(#sensor-app) #sensor-app tbody td { 
  padding: 8px 10px;
}
body:has(#sensor-app) #sensor-app #user-inputs { 
  padding: 12px;
}
body:has(#sensor-app) #sensor-app #user-inputs .input-row {
  margin-bottom: 5px;
  min-height: 30px;
}
body:has(#sensor-app) #sensor-app #user-inputs label { 
  width: 124px;
}
body:has(#sensor-app) #sensor-app #user-inputs input[type="text"] {
  height: 31px; 
  line-height: 31px; 
  padding: 3px 7px;
}
body:has(#sensor-app) #sensor-app #user-inputs textarea {
  min-height: 30px;
  padding: 3px 7px;
  line-height: 1.38;
  resize: none;
}
body:has(#sensor-app) #sensor-app .bottom-bar { 
  margin-top: 6px;
  gap: 6px;
}