.thermoguard-summary {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
}

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

.thermoguard-base-area-grid {
  display: grid;
  grid-template-columns: minmax(112px, 0.9fr) minmax(120px, 1.1fr);
  gap: 8px 10px;
  align-items: center;
}

.thermoguard-property-grid {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}

.thermoguard-property-grid > label,
.thermoguard-property-grid > span,
.thermoguard-base-area-grid > label,
.thermoguard-base-area-grid > span {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.thermoguard-property-grid input[type="number"],
.thermoguard-base-area-grid input[type="number"] {
  width: 100%;
  min-width: 0;
  justify-self: end;
  text-align: right;
}

.thermoguard-property-grid input[type="number"] {
  width: 50%;
}

.thermoguard-rack-color-control {
  min-width: 0;
}

.thermoguard-base-area-lock {
  width: 18px;
  height: 18px;
  justify-self: end;
}

.thermoguard-base-area-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.thermoguard-field-hint {
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}

.thermoguard-width-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.thermoguard-width-options .btn {
  width: 100%;
  padding: 7px 8px;
}

.thermoguard-width-options .btn.is-active,
.thermoguard-width-options .btn.is-active:hover {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff;
}

.thermoguard-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.thermoguard-summary-grid label,
.thermoguard-summary-grid input {
  width: 100%;
}

.thermoguard-summary-grid .full {
  grid-column: 1 / -1;
}

.thermoguard-subtitle {
  margin: 12px 0 6px;
  font-weight: 700;
}

.thermoguard-table {
  display: grid;
  gap: 6px;
}

.thermoguard-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr)) auto;
  gap: 6px;
  align-items: center;
}

.thermoguard-row[data-side-element-id] {
  grid-template-columns: minmax(96px, 1.3fr) minmax(70px, 0.8fr) repeat(4, minmax(50px, 1fr)) auto;
}

.thermoguard-module-row {
  grid-template-columns: minmax(118px, 1.4fr) repeat(4, minmax(52px, 1fr)) auto;
}

.thermoguard-module-row.active {
  outline: 2px solid #6b7280;
  outline-offset: 2px;
  border-radius: 6px;
}

.thermoguard-row input,
.thermoguard-row select {
  min-width: 0;
}

#thermoGuardRackColorPicker .color-picker-toggle,
#thermoGuardRackColorPicker .color-picker-option {
  font-size: 12px;
}

.thermoguard-dimension-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.thermoguard-dimension-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  font-size: 13px;
}

.thermoguard-dimension-list strong {
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
}

.thermoguard-dimension-table {
  display: grid;
  grid-template-columns: minmax(96px, 1.4fr) minmax(42px, 0.6fr) repeat(2, minmax(58px, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #e5e7eb;
  font-size: 12px;
}

.thermoguard-dimension-table > div {
  min-width: 0;
  padding: 7px 8px;
  background: #ffffff;
}

.thermoguard-dimension-head {
  color: #374151;
  font-weight: 700;
  background: #f3f4f6 !important;
}

.thermoguard-plan-label {
  fill: #0f172a;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
